Create an official Fig plugin and a oh-my-posh theme for sfdx/sf #2514
AllanOricil
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
I've haven't tried fig yet but they have official oclif plugin: have you tried it? I'm not sure if it still works (last commit was from ~2y ago). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@mshanemc @cromwellryan
obs: fig.io doesn't have a Windows version yet: https://fig.io/user-manual/windows
Now that Fig is free for everyone, I believe it would be nice if Salesforce could develop and maintain an official Fig plugin.
I found this one https://github.com/wadewegner/salesforce-cli-zsh-completion but it is outdated.
Oclif could maybe have a "fig.io" generator plugin, so that all CLIs built with it could automatically generate fig packages (Heroku, for instance). There could exist a new flag in oclif build command to output a fig package as well. During oclif builds, a fig plugin is generated and added to the root of the project.
Look how cool the terminal becomes
Screen.Recording.2023-10-07.at.17.41.09.mov
Enhanced
cd
plugin! 🥹You could also create a custom theme for Oh-my-posh that displays the default "org alias", and "group", the cli is configured with. This theme would display this information before the git branch
user > cwd -> (sf logo) org alias -> group -> branch
This theme can be activated automatically when opening projects with "sfdx-project.json" in the cwd
Look an example where the theme displays the Node version my project is currently configured to. The theme fetches this information from the project and then displays it if available. We could do the same in sfdx!
Beta Was this translation helpful? Give feedback.
All reactions