Multiple files open
Moderators: Hacker, petermad, Stefan2, white
Multiple files open
hello,
I open files with external text editor(notepad++) very often.
I do it one by one.
how can i open several files in one action ?
i mean mark files and then open them(F4).
Is it possible ?
I open files with external text editor(notepad++) very often.
I do it one by one.
how can i open several files in one action ?
i mean mark files and then open them(F4).
Is it possible ?
The easier way to achieve this is:
1. create new user command and assign it to F4 hotkey:
Configuration - Options - Misc.
choose F4 from combobox,
click button with magnifier (loupe),
on left side of window scroll down to and click usercmd.ini,
click "New" button,
type name for new command (e.g. em_open_with_notepad++),
click "OK",
fill fields:
Command: e.g.
(You must use real pathname, existing in your system, you can use "Change" button and "Insert file name..." command from menu to navigate to notepad++.exe)
Parameters:
Start path:(you can leave empty)
Icon file: e.g. (the same one as in command field)
Icon:(select one)
Tooltip: (or any other, as you wish)
OK,OK,OK
Other possibilities:
2. use one of the edit redirectors e.g. F4Menu - http://www.ghisler.ch/board/viewtopic.php?t=17003
3. button on toolbar with %P%S parameters - no F4 shortcut though.
1. create new user command and assign it to F4 hotkey:
Configuration - Options - Misc.
choose F4 from combobox,
click button with magnifier (loupe),
on left side of window scroll down to and click usercmd.ini,
click "New" button,
type name for new command (e.g. em_open_with_notepad++),
click "OK",
fill fields:
Command: e.g.
Code: Select all
"C:\Program Files\Notepad++\Notepad++.exe"
Parameters:
Code: Select all
%P%S
Icon file: e.g.
Code: Select all
"C:\Program Files\Notepad++\Notepad++.exe"
Icon:(select one)
Tooltip:
Code: Select all
Open with Notepad++
OK,OK,OK
Other possibilities:
2. use one of the edit redirectors e.g. F4Menu - http://www.ghisler.ch/board/viewtopic.php?t=17003
3. button on toolbar with %P%S parameters - no F4 shortcut though.
thanks for detailed manual !
one thing you had missed in first method
works fine for files that located on computer but for ftp files dont work =(
p.s. for text files located on ftp - notead++ opens empty file.
one thing you had missed in first method
Before last "OK" you need to press green check button to apply command. after that press final OKOK,OK,OK

works fine for files that located on computer but for ftp files dont work =(
p.s. for text files located on ftp - notead++ opens empty file.

var0na,
You can try some tool like F4Menu. It allows opening multiple selected files at once and chosing editor to open files.
You can try some tool like F4Menu. It allows opening multiple selected files at once and chosing editor to open files.
again.. it works only for local files and dont for ftp files.MVV wrote: You can try some tool like F4Menu
plus not convenient pup-up menu on start..
how can i do this ?3. button on toolbar with %P%S parameters - no F4 shortcut though.
and what does mean %p%s parameters ?
trying to change topic...
How can i open several txt files from ftp for editing ? in one action.
Navigate to "notepad++" directory, drag "notepad++.exe" and drop on the toolbar.
Now rightclick on just created button (call context menu) and choose "Change..."
You'll see "Change single button" dialog window, with fields:
Command:
Parameters:(empty - here type:)
Start path:
Icon file:
Tooltip:
If you want know meaning of parameters just press F1 (or "Help" button) on dialog window, then you'll see:
"%P%S insert the names of all selected files into the command line, with full path."
Now rightclick on just created button (call context menu) and choose "Change..."
You'll see "Change single button" dialog window, with fields:
Command:
Code: Select all
"C:\Program Files\Notepad++\notepad++.exe"
Code: Select all
%P%S
Code: Select all
C:\Program Files\Notepad++\
Code: Select all
C:\Program Files\Notepad++\notepad++.exe
Code: Select all
notepad++
"%P%S insert the names of all selected files into the command line, with full path."
%P%S won't help in case of FTP, it will pass just relative-to-root remote paths which are useless for local editor.

It is a feature that allows chosing editor for unknown files. If you type list of extensions for some editor, F4Menu will use it silently w/o any menu. For me it silently opens selected files in their associated editors by F4, but I press Win+F4 when I want to choose specific editor (e.g. hex or resource editor for executables, some image editors for graphics etc). Even UPX unpacker is registered as editor.plus not convenient pup-up menu on start..

Gral,
thanks for great guide, but result - same.
For ftp file notepad++ opens empty file, for local files works fine.
MVV,
for ftp files F4Menu opens only last one of marked files.
for local works fine.
Any editor that works with TC uses temp directory. Selected file is copying to directory like this - c:\Users\username\AppData\Local\Temp\_tc\ and after editing and saving file uploads back to ftp and local copy will be deleted.
Maybe exists some trick with paraments that can use temp directories.
If not - topic closed. =)
thanks for great guide, but result - same.
For ftp file notepad++ opens empty file, for local files works fine.
MVV,
for ftp files F4Menu opens only last one of marked files.
for local works fine.
Any editor that works with TC uses temp directory. Selected file is copying to directory like this - c:\Users\username\AppData\Local\Temp\_tc\ and after editing and saving file uploads back to ftp and local copy will be deleted.
Maybe exists some trick with paraments that can use temp directories.
If not - topic closed. =)