gotbletu / shownotes

notes for videos from my youtube channel
https://www.youtube.com/user/gotbletu
GNU General Public License v3.0
919 stars 171 forks source link

Search directories with ranger/fzf #11

Closed j-degreef closed 7 years ago

j-degreef commented 7 years ago

Hi,

On your page about integration of fzf and ranger, in the fzf_select command you wrote "With a prefix argument select only directories." Can you clarify on what should be and how to enter this prefix ?

Thanks in advance, Jérôme

gotbletu commented 7 years ago

seems thats just the comment/description of what the code does, that the author wrote.

j-degreef commented 7 years ago

I've found the answer :) The prefix is what is called a quantifier. From the Ranger man page :

map key command Assign the key combination to the given command. Whenever you type the key/keys, the command will be executed. Additionally, if you use a quantifier when typing the key, like 5j, it will be passed to the command as the attribute "self.quantifier".

In our case the quantifier is any key before pressing the fzf_select keybinding. [https://github.com/gotbletu/shownotes/blob/master/ranger_file_locate_fzf.md)]

gotbletu commented 7 years ago

oh thats some deep research, i only just copy paste lols

j-degreef commented 7 years ago

Well, just a research to understand how to make it work ;) Maybe you can add this information to the relevant page, that will make people stop scratching their head as I did a few days ago :)

gotbletu commented 7 years ago

sure i can update that