-
Notifications
You must be signed in to change notification settings - Fork 328
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
question: Is there a way i can output the last-dir-path to STDOUT #472
Comments
How about: lfcat () {
tmp="$(mktemp)"
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
cat "$tmp"
rm -f "$tmp"
fi
} |
no. i want direct output to |
@qlcom you can't view the path this way but it does work in a script lf -last-dir-path="/dev/stdout" "$@" |
can't it have a option to just print it to |
@qlcom it could but it doesn't at the moment. You probably want to change this into a feature request and try to convince someone to do it. |
This comment has been minimized.
This comment has been minimized.
@qlcom The reason this is missing is that In any case, I'm not strictly against adding such an option, though I think we should figure out a way to prevent the use of shell commands with such an option. If you like to see this feature, feel free to reopen this issue to track it, and I can mark it as enhancement. It's probably a good idea to drop the angry customer attitude though. |
yeah, i was a little angry. Thank you for your answer. |
Yet another workaround is to have a command like the following:
|
@gokcehan a note if you decide to work on this: my option in #472 (comment) would work as expected if the screen was closed before writing the directory path. |
No description provided.
The text was updated successfully, but these errors were encountered: