Search results: open a dir under mouse pointer

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1264
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Search results: open a dir under mouse pointer

Post by *DrShark » 2019-01-02, 20:11 UTC

To find some dir on PC, I often use a search for a name of a file that I'm sure is exists in it or some of it's subfolders.
It's possible to use wdx plugins to find a dir this way, but I think it would be more convenient (and maybe even faster) to do following:
1) search for a file name in Find Files;
2) if we see desired dir name in search resuls, feed them to listbox;
3) put cursor on a path with our dir, move mouse pointer over the name of the dir, press hotkey/button:
the dir under mouse pointer will be opened in opposite panel.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
Gral
Power Member
Power Member
Posts: 715
Joined: 2005-01-26, 15:12 UTC

Re: Search results: open a dir under mouse pointer

Post by *Gral » 2019-01-02, 20:40 UTC

Correct me if I'm wrong, but this is not what CTRL+Arrow does?

User avatar
DrShark
Power Member
Power Member
Posts: 1264
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Search results: open a dir under mouse pointer

Post by *DrShark » 2019-01-02, 21:11 UTC

Ctrl+Arrow opens folder in which the file is located, but sometimes I need a some folder few levels above in a path.

As a some alternative to my suggestion I'd accept an addon (script/tool) that will take a path under cursor and a desired dir level number as parameters, and then it will execute cd <drive from path under cursor>:\<path to a level from a number>. For example, we have a path:
d:\dir1\dir2\dir3'\file.ext
under a cursor in search results.
So to open "dir2", I start a script and just enter its level number (e.g. 2 if we take d:\ as level 0).
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
petermad
Power Member
Power Member
Posts: 8467
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Search results: open a dir under mouse pointer

Post by *petermad » 2019-01-03, 02:28 UTC

2DrShark
If you transfer the dir with the file you found to opposite panel with Ctrl+arrow, then afterwards you can use the breadcrumb bar to click on the desired part of the path:

http://madsenworld.dk/tcmd/listbox-breadcrumb.png

.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b6 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

isidro
Junior Member
Junior Member
Posts: 64
Joined: 2006-03-21, 04:39 UTC
Location: argentina

Re: Search results: open a dir under mouse pointer

Post by *isidro » 2019-01-19, 14:32 UTC

But BreadCrumb doesn't open current path. Is there a way that BreadCrumb opens in current path (which would be more useful than current root opening)

User avatar
petermad
Power Member
Power Member
Posts: 8467
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Search results: open a dir under mouse pointer

Post by *petermad » 2019-01-19, 15:25 UTC

2isidro
If you hover the name of the current folder in the location bar, then the breadcrumb menu opens with that folder. If you set the parameter BreadcrumbDelayButton to a negative value the breadcrumb menu opens without you having to click the dropdown button.

Here are my settings for Breadcrumbs - IMHO it works more fluent than the default setings:
[Configuration]
BreadCrumbMaxWidth=300
BreadcrumbDelayButton=-250
BreadcrumbDelayVirtual=50
BreadcrumbDelayFtp=50
BreadcrumbdelayPlugin=50
BreadcrumbDelayDir=50
BreadcrumbSeparator=0
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b6 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

Olfert
Junior Member
Junior Member
Posts: 44
Joined: 2006-05-17, 10:55 UTC

Re: Search results: open a dir under mouse pointer

Post by *Olfert » 2019-01-19, 21:46 UTC

Why not just use CTRL-PgUp when standing in a specific subfolder - then you jump up one parent folder at a time...

User avatar
petermad
Power Member
Power Member
Posts: 8467
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Search results: open a dir under mouse pointer

Post by *petermad » 2019-01-20, 03:13 UTC

Olfert wrote:
2019-01-19, 21:46 UTC
Why not just use CTRL-PgUp when standing in a specific subfolder - then you jump up one parent folder at a time...
You can also just use BackCpace for that - but this not what DrShark asks for
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b6 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
DrShark
Power Member
Power Member
Posts: 1264
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Search results: open a dir under mouse pointer

Post by *DrShark » 2019-02-24, 16:06 UTC

petermad wrote:
2019-01-03, 02:28 UTC
transfer the dir with the file you found to opposite panel with Ctrl+arrow
It seems there is no internal command command for that action? It would be helpful with automation of whole task.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
tuska
Power Member
Power Member
Posts: 1545
Joined: 2007-05-21, 12:17 UTC

Re: Search results: open a dir under mouse pointer

Post by *tuska » 2019-02-24, 16:48 UTC

DrShark wrote:
2019-02-24, 16:06 UTC
petermad wrote:
2019-01-03, 02:28 UTC
transfer the dir with the file you found to opposite panel with Ctrl+arrow
It seems there is no internal command command for that action?

Code: Select all

cm_TransferLeft		2024	Transfer dir under cursor to left window
cm_TransferRight	2025	Transfer dir under cursor to right window
The file is marked in the other window.

A button with command:
cm_TransferRight,cm_FocusTrg would additionally set the focus to the right window.
cm_TransferLeft,cm_FocusTrg would additionally set the focus on the left window.
(See: cm_CommandBrowser … Filter: Focus)

Breadcrumb bar...

User avatar
DrShark
Power Member
Power Member
Posts: 1264
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Search results: open a dir under mouse pointer

Post by *DrShark » 2019-02-25, 08:34 UTC

2tuska
Thanks, I filtered for "open" and "target" in a CommandBrowser, that's why I couldn't find it.
2ghisler(Author)
I suggest to add a similar cm_TransferTrg command which will do exactly what Ctrl+(Left OR Right)-Arrow is doing.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
tuska
Power Member
Power Member
Posts: 1545
Joined: 2007-05-21, 12:17 UTC

Re: Search results: open a dir under mouse pointer

Post by *tuska » 2019-02-25, 10:45 UTC

DrShark wrote:
2019-02-25, 08:34 UTC
2ghisler(Author)
I suggest to add a similar cm_TransferTrg command which will do exactly what Ctrl+(Left OR Right)-Arrow is doing.
Do you mean something like this?

Code: Select all

cm_TransferLeft		2024	Transfer dir under cursor to left window  )			>
cm_TransferRight	2025	Transfer dir under cursor to right window )  + cm_FocusTrg   	>  =  cm_TransferTrg
If so, the following could be saved:
- A button
- An em_command for a shortcut

User avatar
DrShark
Power Member
Power Member
Posts: 1264
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: Search results: open a dir under mouse pointer

Post by *DrShark » 2019-02-26, 07:15 UTC

2tuska
I'm not sure what exactly an em_ command you suggested should do.
The point of my suggestion for cm_TransferTrg command is:
with left active panel, it should transfer a dir under cursor in left panel to right panel, and
with right panel currently active, it should transfer a dir under cursor in right panel to left panel.

2ghisler(Author)
Returning to a suggestion of click on desired dir in path with mouse.
In active panel with "Search results" or "Branch view", I suggest to show behind "Current directory" a similar address bar with path to a dir or file under cursor. For more convenience, this additional address bar may have breadcrumbs acive by default.
Android 4.3.1 no root, kernel 08.09.2016; Vista Home Premium SP2 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right

User avatar
tuska
Power Member
Power Member
Posts: 1545
Joined: 2007-05-21, 12:17 UTC

Re: Search results: open a dir under mouse pointer

Post by *tuska » 2019-02-26, 11:48 UTC

DrShark wrote:I'm not sure what exactly an em_ command you suggested should do.
An em_command is only required if you want to redefine a hotkey.
2 commands (cm_TransferLeft, cm_TransferRight) with shortcuts = 2 em_Kommandos required ...
DrShark wrote:The point of my suggestion for cm_TransferTrg command is:
with left active panel, it should transfer a dir under cursor in left panel to right panel, and
with right panel currently active, it should transfer a dir under cursor in right panel to left panel.
If that would be implemented, then I would be able to save 1 Button + 1 em_Kommando.
Currently I use 2 buttons and 2 em_commands.

Post Reply