Search results: open a dir under mouse pointer

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

Search results: open a dir under mouse pointer

Post by *DrShark »

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.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Search results: open a dir under mouse pointer

Post by *Gral »

Correct me if I'm wrong, but this is not what CTRL+Arrow does?
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Search results: open a dir under mouse pointer

Post by *DrShark »

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).
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search results: open a dir under mouse pointer

Post by *petermad »

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 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
isidro
Junior Member
Junior Member
Posts: 96
Joined: 2006-03-21, 04:39 UTC
Location: argentina

Re: Search results: open a dir under mouse pointer

Post by *isidro »

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: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search results: open a dir under mouse pointer

Post by *petermad »

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 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Olfert
Junior Member
Junior Member
Posts: 61
Joined: 2006-05-17, 10:55 UTC

Re: Search results: open a dir under mouse pointer

Post by *Olfert »

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: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search results: open a dir under mouse pointer

Post by *petermad »

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 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Search results: open a dir under mouse pointer

Post by *DrShark »

petermad wrote: 2019-01-03, 02:28 UTCtransfer 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.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: Search results: open a dir under mouse pointer

Post by *tuska »

DrShark wrote: 2019-02-24, 16:06 UTC
petermad wrote: 2019-01-03, 02:28 UTCtransfer 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: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Search results: open a dir under mouse pointer

Post by *DrShark »

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.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: Search results: open a dir under mouse pointer

Post by *tuska »

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: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Search results: open a dir under mouse pointer

Post by *DrShark »

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.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: Search results: open a dir under mouse pointer

Post by *tuska »

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