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

enhancement: Custom file previews #294

Open
BlueFalconHD opened this issue Jul 13, 2024 · 0 comments
Open

enhancement: Custom file previews #294

BlueFalconHD opened this issue Jul 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@BlueFalconHD
Copy link

The part you want to Enhancement
There is currently limited file preview support. One way to help everyone get what they need without forcing something on them is to make it configurable. What if you could simply specify a pattern to match and a command to run in your Superfile config to show a preview. It is a universal solution.

[previews]
"*.plist" = "ppl <filepath>" # Patterns that come first override the ones that come after.
"*" = "bat <filepath>" # <filepath> gets replaced with the full path of the file

Several other replacements could be possible, including:

  • <extension> File extension, if it exists
  • <filename> Short name of the file, for /tmp/123.txt, it would be 123.txt
  • <filepath> Full path to the file

Why it is necessary to enhancement
Because not being able to preview specific files then requires exiting Superfile, using another tool to preview any necessary files, then continuing on.

@BlueFalconHD BlueFalconHD added the enhancement New feature or request label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Feature
Development

No branches or pull requests

1 participant