-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
A way to use broot as inline selector? #57
Comments
To do this you need to use the shell integration (see https://dystroy.org/broot/documentation/installation/#installation-completion-the-br-shell-function ) You could also define a function directly opening a file with a fuzzy name (calling It's very similar to what I do go to dirs with dcd: https://dystroy.org/broot/documentation/tricks/#dcd-deep-fuzzy-cd As for the chat link I'm surprised it doesn't work for you. There are already people discussing in https://miaou.dystroy.org/3490 |
Huh, apparently there is something going on with firefox, I was able to open chat with chromium, nevermind 👍 Thanks for the suggestions, dcd is so close to it, but there is a slight catch here I guess: I've defined following verb:
and triggered it via Or maybe I should ask something else. Can I assign "enter" to another verb? 😄 |
Do I correctly understand that the remaining problem is that you know have to type And that the problem wouldn't exist at all for you if you could configure the verb mapped to |
I am not sure what you mean by that, so I'll go with no :) I'll try again. What I wanted get from broot is: In some way, after I press enter on the selection window, it exits and prints the path of selected file to the stdout. Nothing more. I assume dcd would benefit from that also. Instead of "I'm feeling lucky" mode, you can run
Yes, this way I can map enter button to "echo {file}" so it should work anyway. Thanks for the patience 😄 |
This related issue might clarify things: #25 Note that the problem with termion might be solved in a near future as I'm currently rewriting broot to use crossterm instead of termion (and by the way allow windows compatibility). |
Aaah alright. That's exactly what I meant. I thought it should be trivial since its just printing a generated string to stdout, didn't realize a deeper library problem. I'll follow the other issue then, thanks! :) |
Hi and thanks for the app.
Sorry for the unclear title, but I'll try to explain. I added this to my .zshrc file:
So when I write a command like
vim myfile.py
and press the hotkey (in this case Alt-B), I wanted to runbroot --cmd myfile.py
automatically with "myfile.py" applied for fuzzy searching. After I select the file it should drop me to the terminal withvim full/path/to/myfile.py
instead of running br/broot everytime and supplying the mandatory verb after space.But since broot requires some terminal to display stuff (and I am a failed potato to redirect tty/pts) all I got is:
IO Error : "Inappropriate ioctl for device (os error 25)"
when I try this.Is there any way to accomplish this? Maybe with different way so we can already start using broot as generic fuzzy completion tool.
The text was updated successfully, but these errors were encountered: