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

Add user defined options #865

Merged
merged 1 commit into from
Oct 15, 2022
Merged

Add user defined options #865

merged 1 commit into from
Oct 15, 2022

Conversation

laktak
Copy link
Contributor

@laktak laktak commented Jul 4, 2022

This PR adds user defined options that can be used to store state in user scripts.

I'm using it with #864 to toggle a preview in a non-terminal popup.

@laktak
Copy link
Contributor Author

laktak commented Oct 10, 2022

Responding to #950 - lf allows the user to extend it by adding commands. A "user option" give the extension the ability to toggle flags.

For example I have a preview for media files in a gui popup. The preview is usually off and I only want to turn it on for one lf instance. I can do this by setting a user option.

@gokcehan
Copy link
Owner

@laktak Thanks for the patch.

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

Successfully merging this pull request may close these issues.

2 participants