Closed ohcibi closed 5 years ago
Hey @ohcibi. Thank you for opening a PR to add extended git info! ๐ป
It appears this feature would be the spacefish equivalent to the following spaceship PR: https://github.com/denysdovhan/spaceship-prompt/pull/443 ๐
Since that PR is on hold while the team decides which sections should remain enabled by default (https://github.com/denysdovhan/spaceship-prompt/issues/492), we will be putting this PR on hold as well to maintain feature parity.
Hopefully discussions won't take too long. ๐
Apparently the other pr does exactly the same as mine so this one might as well be closed. One question/concern though:
git = create_subset git_commit git_branch
prompt_order = foo bar git
rprompt_order = git_info
Apparently the other pr does exactly the same as mine so this one might as well be closed.
That PR is on the spaceship ZSH project, which spacefish is a port of. Your PR is still needed as it will be used to port over the new feature when it is introduced to the other codebase. ๐
As I said whatโs more importantly needed than any default setting is the ability to change the order of each git subsection and to be able to put the subsection apart from each other. Is there any work/discussions going on regarding this?
Yes, there are conversations regarding git section modularity, which will also likely be introduced in the next major version of spaceship ZSH: https://github.com/denysdovhan/spaceship-prompt/issues/375 https://github.com/denysdovhan/spaceship-prompt/pull/391
There's a lot of work lined up for the coming months as spaceship ZSH prepares for the major 4.0.0 release (https://github.com/denysdovhan/spaceship-prompt/issues/491)
Closing this issue until a similar feature is implemented upstream.
Add option to display current commit id in git info prompt
Description
With the same semantic as for SPACEFISH_GITBRANCH* setup a commit id is displayed right next to the branch name. From my own experience of setting up a prompt git is likely to require its own "order" mechanism as PROMPT and RPROMPT already have in spacefish. This is not a matter of this PR but something to concern if this gets accepted as I might add other stuff regarding git as well. I have the status info string (i.e. the symbols for "staged", "delete", "modified", etc.) in my RPROMPT for example and I plan to modify spacefish's git module to support that.
Motivation and Context
Showing additional information about the git repository is good! ๐
Types of changes
Screenshots (if appropriate):
https://www.dropbox.com/s/g1d98o9crlkvaei/Screenshot%202019-01-11%2012.43.52.png?dl=0
How Has This Been Tested?
Checklist: