-
Notifications
You must be signed in to change notification settings - Fork 39
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
Allow selection of files #38
Comments
I'm a bit undecided on what What you suggest would be pretty useful, but the UI needs to be thought through carefully. One option that I have considered is to call xdg-open on files, which would conflict with this use case. Maybe What do you think? Can you come up with some other use case? (Note that I will be offline for the next couple of weeks so I might not be able to respond for a while) |
I would stick to the current working principle of printing the selection to stdout. Having a menu inside tere is an interesting idea but since it is not really required and is a larger problem to solve, I would not care about it in the beginning but maybe later (I also think that |
I also agree with this. It's easy for someone to create an alias for
right now Fish shell provides But
For context, when searching for a specific file type in a large folder I would just do this:
I can think of two use cases where
|
I also agree with this. Adding this feature would be great. Enter key press simply can print the selected file to |
This could be implemented, but what should the shell wrappers be then? Consider this: tere() {
local result=$(command tere "$@")
if [[ -d "$result" ]]; then # check if directory
cd "$result"
elif [[ -f "$result" ]]; then
# what goes here?
end
} Or, do we completely get rid of shell wrappers and instead recommend the usage to be Or if we broaden the scope of If the user has to decide at the time of launching Maybe this is an argument in favor of #46, but that has it's own list of papercuts as discussed there. |
I think it would be useful to allow file selection, too. E.g., with
less $(env tere)
one could read a selected file. I guess it makes sense to define a special shortcut for file selection, likeAlt-w
instead ofAlt-q
. UsingEnter
would also work, though if the caller passes a special argument when invokingtere
, like--allow-files
.The text was updated successfully, but these errors were encountered: