-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to press a key in tmux to invoke path-extractor to select the paths of files in console? #2
Comments
Hi, thanks for opening this issue, always good when an open-source project gets its first issue, it means that someone wants to get things done with it. Regarding your issue, I'm not sure that what you want to do needs You can do that exactly with fzf :
and then, answer yes for the question "Do you want to add key bindings". If you restart your shell, you will have keybindings "Ctrl+T" to do exactly the same. You can then create your own binding that will open vim for a file : you can look at the keybinding files to see how to do it : https://github.com/junegunn/fzf/tree/master/shell Path extractor is a more "dumb" pipe because it will only convert the input into a list of possible paths. Did that help ? |
Hi Edi,
Is there any way to achive this? Thank you very much! |
Here is how to do that in bash : Add this to your bashrc :
And then you can do |
You could also put |
Hi Edi, Best regards, P/S:
|
I guess that you can mix https://github.com/tmux-plugins/tmux-fpp/blob/master/fpp.tmux and replace fpp by the snippet I put before. I will be integrating this my self tomorrow, and will be posting the full code snippet if you haven't already find out |
Create a file in ~/scripts/tmux-path-extractor.sh
and add
at the end of your tmux.conf If you press f, you will get to choose your filepath. Did that work for you ? |
Hi Edi, However, your script is still useful to me. I create an alias and
And bind key to that alias in bash, and now it works well for me 💃
Thank you very much! Have a nice weekend. P/S: you can create tmux plugin for path-extractor, I think it is useful. :D |
I don't exactly see the point of creating a tmux plugin for this. Shouldn't I just put your script into the readme, so that others can use it ? I find it much simpler to have just those two lines, so that you can edit them the way you want if you need it |
Hi,
I am trying path-extractor. My question is if it is possible to press a key in tmux to invoke path-extractor to select the paths of files in console? (like the tmux-plugins/tmux-fpp )
Thank you very much!
Cheers,
Khon
P/S: I really like the path-extractor feature
The text was updated successfully, but these errors were encountered: