I frequently have many files open at once for coding work. I also open and close many files while working.
It would be great to be able to either create a set of files that can all be opened together
or
optionally to have a command that would say put all open files at the top of the recently opened files list.
I often find that the files I've had open and edited all day are no longer on my recently opened files.
Enhancement: Opening multiple files at once
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Enhancement: Opening multiple files at once
To open multiple files:
- in the Open dialog, select multiple files
- drag and drop multiple files
To open sets of files, open all the files to be in the set.
Then go to File/Workspace/Save As to save the workspace.
To open the set next time, go to
File/Workspace/Open... or File/Workspace/(Recent Workspace List)
Recently opened files support up to 16 files (configure the number using Configure/Preferences/File and edit the number of recent files and recent workspaces).
The limitation to 16 is IIRC up to Microsoft.
Andreas
- in the Open dialog, select multiple files
- drag and drop multiple files
To open sets of files, open all the files to be in the set.
Then go to File/Workspace/Save As to save the workspace.
To open the set next time, go to
File/Workspace/Open... or File/Workspace/(Recent Workspace List)
Recently opened files support up to 16 files (configure the number using Configure/Preferences/File and edit the number of recent files and recent workspaces).
The limitation to 16 is IIRC up to Microsoft.
Andreas
Re: Enhancement: Opening multiple files at once
One extra tip: Make sure that "Allow multiple files on the command line" is checked off, in the General tab of the Preferences dialog box.
I wonder what the *dis* advantage to having this checked is...
I wonder what the *dis* advantage to having this checked is...
Re: Enhancement: Opening multiple files at once
The difference appears when you have unquoted file names with blanks in them.
If multiple files are allowed,
====================
textpad c:\program files\textpad\dummy.txt
will result in textpad trying to open the two files:
c:\program
files\textpad\dummy.txt
while
textpad file1.txt file2.txt
will result in textpad trying to open the two files:
file1.txt
file2.txt
if multiple files are not allowed,
=======================
textpad c:\program files\textpad\dummy.txt
will result in textpad trying to open the one file
c:\program files\textpad\dummy.txt
while
textpad file1.txt file2.txt
will result in textpad trying to open the one file:
file1.txt file2.txt
Andreas
If multiple files are allowed,
====================
textpad c:\program files\textpad\dummy.txt
will result in textpad trying to open the two files:
c:\program
files\textpad\dummy.txt
while
textpad file1.txt file2.txt
will result in textpad trying to open the two files:
file1.txt
file2.txt
if multiple files are not allowed,
=======================
textpad c:\program files\textpad\dummy.txt
will result in textpad trying to open the one file
c:\program files\textpad\dummy.txt
while
textpad file1.txt file2.txt
will result in textpad trying to open the one file:
file1.txt file2.txt
Andreas
Re: Enhancement: Opening multiple files at once
I see. That makes sense. However, I *think* there is a way around this:
In Folder Options --> File Types, select "Text Document" and then touch the "Edit" button. This pops open a new dialog box, called "Edit File Type".
In the list, double click "open". This pops a dialog box: "Editing action for type: Text Document". If you surround the %1 with double quotes, to "%1", this will put each file (will it) into quotes, so the spaces (in any single file name) are ignored.
This is truly a guess. I've not tested it. So if it doesn't work, don't kill me... :'/
I don't personally have a need to open multiple files at once. I use workspaces todo that.
In Folder Options --> File Types, select "Text Document" and then touch the "Edit" button. This pops open a new dialog box, called "Edit File Type".
In the list, double click "open". This pops a dialog box: "Editing action for type: Text Document". If you surround the %1 with double quotes, to "%1", this will put each file (will it) into quotes, so the spaces (in any single file name) are ignored.
This is truly a guess. I've not tested it. So if it doesn't work, don't kill me... :'/
I don't personally have a need to open multiple files at once. I use workspaces todo that.
Re: Enhancement: Opening multiple files at once
Hello,
To avoid problems, you can also use quotes:
if multiple files are or are not allowed,
textpad "c:\program files\textpad\dummy.txt"
will result in textpad trying to open the one file
c:\program files\textpad\dummy.txt
while
textpad "file1.txt" "file2.txt"
will result in textpad trying to open the two files:
file1.txt
file2.txt
Regards,
Luoji.
To avoid problems, you can also use quotes:
if multiple files are or are not allowed,
textpad "c:\program files\textpad\dummy.txt"
will result in textpad trying to open the one file
c:\program files\textpad\dummy.txt
while
textpad "file1.txt" "file2.txt"
will result in textpad trying to open the two files:
file1.txt
file2.txt
Regards,
Luoji.
Re: Enhancement: Opening multiple files at once
Problem is you don't always have control whether you can use quotes.
E.g. when notepad (which is really txplink) is called by some tool where you have no sourcecode.
Andreas
E.g. when notepad (which is really txplink) is called by some tool where you have no sourcecode.
Andreas