Disable [Remove current dir] in hotlist

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Disable [Remove current dir] in hotlist

Post by *kesdoputr »

Now in wincmd.ini we can use RestrictInterface=32 can disable Directory hotlist change.

But now i need to diable [Remove current dir] which appear when in dirs that in the hotlist.

Because the hotkey is R,when i press ctrl+D→R,the dir will be remove,
and i need to reset the dir in the hotlist, if there is a option to disable this item will be better i think. :D
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

May be it is enough to changing the hotkey. This can be done by changing your WCMD_xxx.LNG (xxx stands for your language) entry with number 1147 from "&Remove current dir" to e.g. "Remove current dir &®".

WCMD_ENG.LNG can be found here.
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Or just to "Remove current dir" w/o any shortcut key. :)

BTW there is another workaround. If you add another item with shortcut key R then R won't execure 'Remove current dir' since there are more than one line with same shortcut - key will just move focus between lines that have it as shortcut.
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

Or just to "Remove current dir" w/o any shortcut key.
Unfortunately it doesn't work reliable because of automatic hotkeys. In that case there is a need for an entry with shortcut "R" too.
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Where do you see automatic hotkeys? TC has no such feature, and Windows can't assign them automatically. :) Maybe only with third-party software...
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

Windows can't assign them automatically
IIRC it is a Windows feature. Test it: change the wcmd_eng.lng and "CTRL+D R" removes the folder.
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, you're right, it seems that if no shortcut is assigned to item, its first letter is treated as its shortcut...
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2theosdikaios

In case you are using the built in English language, you don't need to download the complete "wcmd_eng.lng" file.
Just create a new file
wcmd_eng.lng wrote:English
1147="®emove current dir"
and select "English(wcmd_eng.lng)" from the language configuration.

Regards
Holger
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Post by *kesdoputr »

Thx for reply :D

I think i will don't assing any hotkey to this action and add anther dir whick hotkey is R.
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

what would be exactly the way to make "Remove current dir" (and also Add current dir) not appear at all?

My lng file looks like this right now:

English
1147="Remove current dir"
1148="Configure..."

If I just leave
1147=
There is a blank place where that entry would appear in the menu.

I'm trying to make as much space available as possible
thanks!
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

what would be exactly the way to make "Remove current dir" (and also Add current dir) not appear at all?
I guess you can't.
The wcmd_eng.lng files holds only the strings but not the menu structure.
I'm trying to make as much space available as possible
Organize your directory hot-list in categorized sub menus.

Regards
Holger
jmwap
Member
Member
Posts: 121
Joined: 2008-03-23, 12:40 UTC

Post by *jmwap »

HolgerK wrote:
what would be exactly the way to make "Remove current dir" (and also Add current dir) not appear at all?
I guess you can't.
The wcmd_eng.lng files holds only the strings but not the menu structure.
I'm trying to make as much space available as possible
Organize your directory hot-list in categorized sub menus.

Regards
Holger

ok thanks anyway
User avatar
Wojtek
Junior Member
Junior Member
Posts: 65
Joined: 2010-02-07, 11:58 UTC
Location: Germany

Post by *Wojtek »

Hi!

I cannot add *.lng files, just *.mnu

Is there any way in TC8.51a to change the [Remove current dir] Item?

P.S.:
Currently I solved it this way:
I added an item at the end of the list with the title "prevent &removing" and w/o command.

Thus, if i press [Ctrl]+[D]+[R] accidentally, this dummy item is selected end even if I confirm with [Enter], nothing happens.

Nevertheless it would be nice to change the "Remove current Dir"


EDIT: What about a confirmation dialog?
User avatar
Jon Lee
Junior Member
Junior Member
Posts: 2
Joined: 2004-05-24, 14:58 UTC

Post by *Jon Lee »

theosdikaios wrote:May be it is enough to changing the hotkey. This can be done by changing your WCMD_xxx.LNG (xxx stands for your language) entry with number 1147 from "&Remove current dir" to e.g. "Remove current dir &®".
HolgerK wrote:2theosdikaios
In case you are using the built in English language, you don't need to download the complete "wcmd_eng.lng" file.
Just create a new file
wcmd_eng.lng wrote:English
1147="®emove current dir"
and select "English(wcmd_eng.lng)" from the language configuration.
Thank you both for the input! I (as I'm sure many others do too) use Directory Hotlists *extensively* and the conflicts with Add/Remove/Configure are one of the few usability sore spots I run into with TC.

I really appreciate the tips! Cheers! :D
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re:

Post by *DrShark »

Vittorio wrote: 2015-08-22, 15:18 UTCWhat about a confirmation dialog?
I support the suggestion of this addition for "Remove current dir" action.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply