F4 on ..

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
astrotzky
Junior Member
Junior Member
Posts: 48
Joined: 2006-09-18, 10:37 UTC

F4 on ..

Post by *astrotzky »

1. Select some files
2. Move the cursor to ..
3. Press F4
===> "No files selected!"

It only works ok when the cursor is not on the ..
Please confirm.
Last edited by astrotzky on 2007-02-12, 20:56 UTC, edited 1 time in total.
Jqn
Member
Member
Posts: 171
Joined: 2003-02-26, 16:42 UTC
Location: Madrid (Spain)

Post by *Jqn »

Confirmed!.

But.. if you press F4, TC edits the file under cursor, and not the selected one.
Due to it, a warning takes place in the entry ".."

This is the desired behavior. (I think)
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Jqn wrote:This is the desired behavior. (I think)
Excactly :!: This is no bug but by design :!:

What file do you want to edit when Cursor is on ".." ?
The first marked, the first marked that starts with a L, etc....
Hoecker sie sind raus!
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Re: [BUG] F4 on ..

Post by *eugensyl »

astrotzky wrote:1. Select some files
2. Move the cursor to ..
3. Press F4
===> "No files selected!"

It only works ok when the cursor is not on the ..
Please confirm.

If you use external editor all selected files are opened in editor.

Normal, I think.


Best wishes,
My Best Wishes,

Eugen
astrotzky
Junior Member
Junior Member
Posts: 48
Joined: 2006-09-18, 10:37 UTC

Post by *astrotzky »

OK, I use ChoiseEditor and when I select mutiple files and press F4, ALL of them are opened into my editor (SciTE) each in it's own tab.
But when the cursor is on .. , I get that error when I was expecting the same behaviour: all the selected files to be opened.

After more investigation, it seems that Total Commander sends just the file under cursor to the configured editor (ChoiseEditor in my case), so ChoiseEditor must be doing something to get all the selected files.
So, yes this is not a bug...

But saying "No files selected!" after I just selected some, is confusing.


Maybe TC should send all the selected files to the editor by use of % parameters (you would configure the editor like you do the buttons).
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

astrotzky wrote:OK, I use ChoiseEditor and when I select mutiple files and press F4, ALL of them are opened into my editor (SciTE) each in it's own tab.
But when the cursor is on .. , I get that error when I was expecting the same behavior: all the selected files to be opened.

...
F4 on '..' is mean <<Edit Up Directory (or folder)>>.

Can you edit a directory?

It is correct behavior of TC. Exactly what is happened.

2Ghisler

Maybe, line 51 in LNG file can be something like this:
"The object of action is missing! Unfortunately, there are no FILES selected for this action."

This behavior is meet in several cases : archive, copy, move and so on.
The answer is correct everywhere. I have tested many years ago.
:) Of course, in Romanian language...

Even in computer world: "Nature isn't wrong, we are!" in most cases.


Best wishes,
My Best Wishes,

Eugen
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

eugensyl wrote: F4 on '..' is mean <<Edit Up Directory (or folder)>>.
I also see this as edition of the directory.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

The thing described above is a design issue.
But here is also a bug.
I have a message:

Code: Select all

[em_start_xmplay]
Menu=Start XMPlay with all selected files, also in subdirs
Cmd=%COMMANDER_PATH%\..\Tools\TotalEditor\TotalEditor
Param=-L %F --ignore-dirs=1 --recurse-subdirs=1 --no-default=1 -C \TE-Music.ini
When I select .. (and nothing more) TotaEditor is called with command line: I think it's quite incorrect...In such situation TC should send either
empty list or
a list with c:\path\ or
a list with c:\path\..
I prefer the second or the 3rd option.

Even when there's no list, the rest of parameters should be sent..or program shouldn't be started.
User avatar
walda
Junior Member
Junior Member
Posts: 31
Joined: 2006-12-30, 17:38 UTC
Location: Nähe Wien
Contact:

Re: [BUG] F4 on ..

Post by *walda »

eugensyl wrote:
astrotzky wrote:1. Select some files
2. Move the cursor to ..
3. Press F4
===> "No files selected!"

It only works ok when the cursor is not on the ..
Please confirm.

If you use external editor all selected files are opened in editor.

Normal, I think.


Best wishes,
In my case, only the one file under cursor is opened in editor. My Editor also supports multi-tabs but i dont think its an editor problem.

How can i send all marked files to the external editor?

Thanks
Walter
:)
Walter

#1561xx Personal Licence
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

You have to create an user-command. Menu Configuration/Misc. You choose F4 as shorcut key and when in Command combo-box, you click on lens button to open the list of internal commands. Very down in the left list, you click on "usercmd.ini" option.
You can see all your usercmds. Click on "New" button and enter "em_edit" for example as name of your new usercmd.
Now you have to enter the path of your editor.exe (browse if necessary) and enter "%P%S" in the parameter input box. Confirm.
Now, name of your new usercmd has filled the Command input box of the "Configuration" TC window.
Don't forget to click on te check button right to the lens button. Finally click on Confirm button.
That's all, folks.

With F4 you open now all the selected files.
User avatar
walda
Junior Member
Junior Member
Posts: 31
Joined: 2006-12-30, 17:38 UTC
Location: Nähe Wien
Contact:

Post by *walda »

Thanks a lot, jjk!
:)
Walter

#1561xx Personal Licence
Post Reply