map glob-select

23 views
Skip to first unread message

Stephan Chedlivili

unread,
Sep 21, 2021, 3:44:48 AM9/21/21
to LF file manager

Hi,

I am trying to have the glob-select command mapped to a key. But then I cannot seem to find how to pass an argument to it

something like :

map gs :glob-select <ARGUMENT>

Does that make sense ?

Or alternatively, what would be the best way to mark/select all files with a similar pattern.

-Stephan

Gokcehan Kara

unread,
Oct 9, 2021, 1:52:50 PM10/9/21
to Stephan Chedlivili, LF file manager
Hello Stephan,

Sorry for the late reply. I don't know if you are still interested in this but below are a few ideas.

`glob-select` already takes an argument so you should be able to map it as in your example:

map gs glob-select *.txt

If you don't want to map a predefined pattern, maybe you can use the `push` command to set the prompt for the command to avoid typing as follows:

map gs push :glob-select<space>

Alternatively, you might also be able to define a shell command to prompt for an argument and then call `glob-select` as a remote command.

Hope this helps,
Gokcehan

--
You received this message because you are subscribed to the Google Groups "LF file manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lf-fm+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lf-fm/048edaaa-c3ed-488b-aa4a-d58ffa5a45f7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages