-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Feature request: consider adding a $fish_theme_path
variable to support multiple directories for themes
#9456
Comments
The issue with a $fish_theme_path variable is that it won't be available to the web interface, and getting it in there is awkward. Couldn't fisher just symlink the theme files? (tbh I'm not entirely clear on what $fisher_path is and why one would want to set it to something different from the default, so I'm probably just lacking context here) |
The current solution is to just use symlinks, yes. But that's different than how functions, completions, and conf.d are handled.
The idea isn't unique to Fisher. It's simply to separate configs you write from configs others write. Essentially keeping your personal config separate (and thus less cluttered). Fisher makes use of set -q fisher_path || set -U fisher_path $__fish_config_dir/.fisher
set fish_function_path $fish_function_path[1] $fisher_path/functions $fish_function_path[2..]
set fish_complete_path $fish_complete_path[1] $fisher_path/completions $fish_complete_path[2..]
If the thought is that this needs supported on the web interface, can you confirm it's supposed to work that way now (ie: is there a problem on my end, or a Fish bug)? If the intended behavior is what I'm experiencing (only default themes show in the web interface of EDIT: apparently I had XDG_CONFIG_HOME set, but not exported ( |
It does work like that on my end, yes, and I wrote it like that. |
Also, I'm still scratching my head a bit on the web interface not understanding a |
It does that by asking fish to enumerate the functions (by running |
Thank you for the added context. It's really helpful. Let me do some more digging and see if there's a solution that makes sense given these constraints. One other simple alternative to accomplish getting themes from multiple places - allow subdirectories in |
Similar to
fish_function_path
andfish_complete_path
, it would be helpful to have afish_theme_path
variable. This variable would be a list indicating wherefish_config theme <cmd>
would find its*.theme
files.This would allow Fish theme authors (like dracula and TokyoNight) to more easily migrate to using
*.theme
files. Fisher, a very popular fish plugin manager, now supports themes, but with limitations due to the lack of this functionality.The text was updated successfully, but these errors were encountered: