Pass to editor full file name

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Pass to editor full file name

Post by *MVV »

Hi to all. I want to say about one old 'bug' and to make a suggestion. :)

Problem occurs when you use multi-file editor (such as Notepad++) and it is already open. Try to create and edit a file in TC panel with Shift+F4. TC creates file and passes its name to editor. But editor has another active directory and it creates another file with same name but in another place.

I suggest to pass to editor full file name with path always. So, editor will correctly get a path to a file.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48113
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will consider that, thanks for your suggestion.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thanks for TC. :)
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Not confirmed

Post by *roentgen »

If it matters, I can't confirm MVV's observations.

With TC7.04a and Notepad++ 5.03 the file is created in the right folder.

I even tried creating a new file in a different partition and also with the N++ setting "Remember the last operation directory" activated.
TC for Linux please!
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Not confirmed

Post by *HolgerK »

roentgen wrote:...
I even tried creating a new file in a different partition and also with the N++ setting "Remember the last operation directory" activated.
Settings->Preferences->Global: [x] Remember the last operation directory
For some unknown reason :roll:, this is exactly the setting which must be set in notepad++ to make it work together with TC.

Regards,
Holger
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Strange behaviour...

I have opened Notepad++ with a file from one folder. In TC I try to create new file in another folder. And:

I try to create a file .reg - Notepad asks to create it in its current folder.
I try to create a file .txt - Notepad opens valid file...

Gotcha! If I try to create a file with spaces in its name, Notepad++ determines its path incorrectly... I don't know why. TC sends a file name in quotes... Anyway, my suggestion fixes the situation. :)
Post Reply