-
-
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
Print selected path to stdout #25
Comments
There are already discussions around this problem which isn't as easy as it seems, hence the shell function (which could be extended to other use cases than just See for example https://gitlab.redox-os.org/redox-os/termion/issues/163 for more insight on the problem Note that there's a command, |
Thanks for your follow-up. So that's why |
It's no more a termion problem but a crossterm one (I dropped termion and now use crossterm in order to allow windows compatibility). |
It's still unclear to me how to support file selection via
I don't care whether Note also that ideally I wouldn't have to pollute my config file (the location of which I apparently can't overwrite), because then I wouldn't be able to use |
If I follow you, what you want is solved with the following scenario:
or
In this scenario the configuration file was used to ensure you can select a file with the enter key. In similar scenarios I specify colors to remember me I'm not in a standard broot. See Use broot and meld to diff before commit. Please tell me how I answered your question. If it's positive, I may add this as a "trick" in the documentation. |
Yes, your use case should be equivalent. Ahh, yes, I just tried it out in my workflow and it works perfectly. Thank you! :) |
In order to use
broot
as a CLI tool (the Unix philosophy!), we would need an option to makebroot
print the selected path into stdout, rather than simply opening it as a Desktop application. (I think it should be a default behavior)Please see fzf for an example.
The text was updated successfully, but these errors were encountered: