Author Topic: Where shall newly created files go?  (Read 657 times)

ebbe

  • Community Member
  • Posts: 20
  • Hero Points: 2
Where shall newly created files go?
« on: November 05, 2020, 11:25:54 am »
Most of the time I work as a member of a project team where I am the only one who uses SE. Therefore I usually move the SE project files (*.vpw and *.vpj) to a separate subdirectory that has its own version control such that I do not "pollute" the proper project with files that only I use. I then change the project working directories such that they point to where the project files are located.

But...

Why on Earth does SE insist on using the directory where the *.vpj file is located as the default location for new files instead of putting them the Project Working Directory?

And why is there no way to change this behavior?

patrickkox

  • Senior Community Member
  • Posts: 117
  • Hero Points: 6
  • Debian GNU/Linux user
Re: Where shall newly created files go?
« Reply #1 on: November 05, 2020, 01:40:39 pm »
If you use git as the Version Control provider, you can use a simple .gitignore file like this:

The only downside is that if you use a Desktop and Laptop with git, these files will not sync so you might need to manually add a workspace/project on the other system (or copy these files over with a usb flashdrive)
Code: [Select]

# Created by https://www.toptal.com/developers/gitignore/api/slickedit
# Edit at https://www.toptal.com/developers/gitignore?templates=slickedit

### SlickEdit ###
# SlickEdit workspace and project files are ignored by default because
# typically they are considered to be developer-specific and not part of a
# project.
*.vpw
*.vpj

# SlickEdit workspace history and tag files always contain user-specific
# data so they should not be stored in a repository.
*.vpwhistu
*.vpwhist
*.vtg

# End of https://www.toptal.com/developers/gitignore/api/slickedit
« Last Edit: November 17, 2020, 05:14:21 pm by patrickkox »

b

  • Senior Community Member
  • Posts: 320
  • Hero Points: 26
Re: Where shall newly created files go?
« Reply #2 on: November 09, 2020, 10:28:36 pm »

Have you tried setting the Working Directory in the Project configuration (Directories tab)?





ebbe

  • Community Member
  • Posts: 20
  • Hero Points: 2
Re: Where shall newly created files go?
« Reply #3 on: November 17, 2020, 09:41:16 am »
Have you tried setting the Working Directory in the Project configuration (Directories tab)?

Um, yes. As I wrote in the original post:
Quote
I then change the project working directories such that they point to where the project files are located.

...meaning the project source files. But SE ignores this setting. Instead it defaults to the directory where the .vpj file is located.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2553
  • Hero Points: 141
Re: Where shall newly created files go?
« Reply #4 on: November 17, 2020, 11:15:16 am »
I'll file a feature request for this.

ebbe

  • Community Member
  • Posts: 20
  • Hero Points: 2
Re: Where shall newly created files go?
« Reply #5 on: November 17, 2020, 11:29:06 am »
I'll file a feature request for this.

Thanks. While you are at it, could you also look into why SE sometimes inserts the name of the directory that contains the .vpj file instead of the working directory in the %bd macro?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2553
  • Hero Points: 141
Re: Where shall newly created files go?
« Reply #6 on: November 17, 2020, 11:30:48 am »
I'll file a feature request for this.

Thanks. While you are at it, could you also look into why SE sometimes inserts the name of the directory that contains the .vpj file instead of the working directory in the %bd macro?

I'll pass this on to the developer who worked on it.

jc44

  • Senior Community Member
  • Posts: 286
  • Hero Points: 18
Re: Where shall newly created files go?
« Reply #7 on: November 17, 2020, 02:54:04 pm »
I'm in the same boat as ebbe - my default open dir seems to revert to my .vpw directory with annoying frequency. This has been the case for so long that I've just become accustomed to living with the annoyance but I'll definitely second the feature request to stop it happening.
I take the point about .gitignore but it has always somehow seemed cleaner to separate the editor control files from the source in the same way it is cleaner to build out of tree than in.  Also the large tag files end up on my fast local storage rather than the relatively slow network storage that the source files live on.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5768
  • Hero Points: 460
Re: Where shall newly created files go?
« Reply #8 on: December 07, 2020, 05:54:05 pm »
I added a hot fix so when you add files from the Project tool window it uses your working directory when it makes senses (a non-directory folder or the project).  No changes to %bd. Use %rw instead.