Skip to content
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

lf -selection-path does not update the file on Windows #1342

Closed
AddictArts opened this issue Jul 12, 2023 · 3 comments
Closed

lf -selection-path does not update the file on Windows #1342

AddictArts opened this issue Jul 12, 2023 · 3 comments

Comments

@AddictArts
Copy link

AddictArts commented Jul 12, 2023

Windows 10
PowerShell latest 7.3.5

lf -selection-path foo
# or
lf -selection-path=.\foo
# or
lf -selection-path=./foo
# or
lf -selection-path=foo

Use the spacebar to select files. Used toggle to select files. Use "q" to quit.

bat foo

foo is empty.

@AddictArts
Copy link
Author

AddictArts commented Jul 12, 2023

Oddly -last-dir-path=foo will write a file with the last dir.

@joelim-work
Copy link
Collaborator

For -selection-path, after you select some files, you have to use open (press lon any file) instead of quit.

lf/main.go

Lines 251 to 254 in a3127a2

flag.StringVar(&gSelectionPath,
"selection-path",
"",
"path to the file to write selected files on open (to use as open file dialog)")

@AddictArts
Copy link
Author

Thanks @joelim-work yes that worked. In a video I can't see the key press, then I hunted around here and no discussion on exactly how to activate. While it does say it in the usage, I could not make sense of "file dialog", sounded like a GUI non terminal thing, so it didn't help me. Now I see what it implies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants