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 icons for git item #502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

johnr14
Copy link

@johnr14 johnr14 commented Apr 9, 2024

Add the possibility to enable and disable git icons for repository status.

Description

Wanted icons for gits that can be changed with variables.

  • add space before icon so they are not small
  • fix icon enabling and disabling with appropriate spacing if needed
  • will change style on tide configure re-run

Icons can be changed by changing following variables :

tide_git_icon
tide_git_icon_conflicted
tide_git_icon_dirty 
tide_git_icon_spacer
tide_git_icon_staged 
tide_git_icon_stash 
tide_git_icon_untracked 
tide_git_icon_upstream_ahead
tide_git_icon_upstream_behind

Motivation and Context

This is to enable replacing * ~ + ! ? with nerd fonts symbols 󱉰    󰩌
Note: Open to other symbols !

Closes #349
Edit: Closes #239

Screenshots (if appropriate)

image
Edit: no remote defined or github.com icon if remote is set to git@github.com
image

How Has This Been Tested

  • I have tested using Linux.
  • I have tested using MacOS.

Checklist

  • I am ready to update the wiki accordingly.
  • I have updated the tests accordingly.

@johnr14 johnr14 requested a review from IlanCosman as a code owner April 9, 2024 16:45
@johnr14
Copy link
Author

johnr14 commented Apr 9, 2024

Edit: To pass tests, original code is used when tide_git_icon_true is not set.

Thanks

- add space before icon so they are not small

- fix icon enabling and disabling with appropriate spacing if needed

- will change style on tide configure re-run
@johnr14
Copy link
Author

johnr14 commented Apr 12, 2024

Added icon for github.com remote.
Closes #239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant