Page 1 of 1

Search results: open a dir under mouse pointer

Posted: 2019-01-02, 20:11 UTC
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.

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-02, 20:40 UTC
by Gral
Correct me if I'm wrong, but this is not what CTRL+Arrow does?

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-02, 21:11 UTC
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).

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-03, 02:28 UTC
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

.

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-19, 14:32 UTC
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)

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-19, 15:25 UTC
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

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-19, 21:46 UTC
by Olfert
Why not just use CTRL-PgUp when standing in a specific subfolder - then you jump up one parent folder at a time...

Re: Search results: open a dir under mouse pointer

Posted: 2019-01-20, 03:13 UTC
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

Re: Search results: open a dir under mouse pointer

Posted: 2019-02-24, 16:06 UTC
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.

Re: Search results: open a dir under mouse pointer

Posted: 2019-02-24, 16:48 UTC
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...

Re: Search results: open a dir under mouse pointer

Posted: 2019-02-25, 08:34 UTC
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.

Re: Search results: open a dir under mouse pointer

Posted: 2019-02-25, 10:45 UTC
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

Re: Search results: open a dir under mouse pointer

Posted: 2019-02-26, 07:15 UTC
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.

Re: Search results: open a dir under mouse pointer

Posted: 2019-02-26, 11:48 UTC
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.