Comments (22)
please pip install again for a minor update for the alignment
actually the status
(both the color and the edit status) is part of branch
rn. I need to separate them later
from gita.
v0.16.6.4 has stash status implemented
from gita.
thanks @tinder-cfuller I didn't know about this spaceship prompt. They indeed put a lot of thought into this
I think it may be good to make gita more customizable, then everyone can have his/her favorite visualizations
from gita.
v0.16.4 is available via pip3 install -U gita
from gita.
It seems spaceship doesn't cover all the status gita covers now. For example, local is in sync with remote, local doesn't have remote
from gita.
please try 0.16.6
also, you would have to revert spaceship_status
to branch
13:15 (clone-g) gita-wt3 $ cat ~/.config/gita/info.csv
branch,commit_msg,commit_time
If you want to customize the symbols, see https://github.com/nosarthur/gita#customize-information-displayed-by-the-gita-ll-command
from gita.
If you prefer not altering the current symbols, I am wondering if you could support two new info
columns: branch_name
and spaceship
. Then the info.csv
could be set to branch_name,spaceship,commit_msg,commit_time
.
branch_name
would obviously be the branch name only
from gita.
Relating to #223 the symbols could be customizable as well.
from gita.
v0.16.4 is available via
pip3 install -U gita
@nosarthur Installed! 👍
A couple things I took note of:
- The brackets should expand to the width of the one that has the most number of symbols
- The symbols should be moved to a dedicated column so they are all vertically aligned
See the example I shared in my first message (above) that demonstrates this.
Thank you!! ❤️
from gita.
Full alignment would require us to get status for all repos first. It would cause the terminal to be frozen if there are hundreds of repos (I don't know why ppl do that ... but there are often requests related to such usage cases)
Maybe I can do fixed width with space fillings on the branch name, say 10 characters, it would resolve most cases unless one has very long branch names. What do you think?
from gita.
Full alignment would require us to get status for all repos first. It would cause the terminal to be frozen if there are hundreds of repos (I don't know why ppl do that ... but there are often requests related to such usage cases)
Oh, that makes sense. Thanks for the explanation. 👍
Maybe I can do fixed width with space fillings on the branch name, say 10 characters, it would resolve most cases unless one has very long branch names. What do you think?
Might it help to move the symbols to their own column separate from the branch? So at least the opening brackets may all be aligned. The result could be the following:
$ gita ll
blog master [!?] minor changes (2 weeks ago)
dotfiles master [!] update mac colmak ah json (31 minutes ago)
gita master update CN readme and image (35 minutes ago)
repol feature1 add readme (50 minutes ago)
worklog refactor Update onboard-desmond.m (7 months ago)
☝️ Then the info
columns would be branch,status,commit_msg,commit_time
from gita.
Sounds great. Thank you! 👍
from gita.
These changes are looking great so far. Are you planning to add all of the symbols in #245 (comment)?
E.g. I notice that when a repo is behind main, the colour changes but there are no symbols in the brackets []
.
from gita.
yeah, that's the plan; I need to do some refactoring first
from gita.
please try 0.16.5
after pip install, replace branch by spaceship_status for the gita info setting
23:58 (grid-force *) 4th-wt $ cat ~/.config/gita/info.csv
spaceship_status,commit_msg,commit_time
from gita.
Nice thanks! Although it would be even nicer to have both the colours and the spaceship symbols. 🚀
from gita.
I can surely add that
from gita.
Beautiful thankyou! 👏
from gita.
@nosarthur Thank you for making these changes! ❤️ This is great!
There are a couple additional items I would kindly suggest:
- Include
$
symbol when there are stashed changes - Change the output order of the symbols to
in_sync,no_remote,local_ahead,remote_ahead,diverged,stashed,dirty,staged,untracked
or allow order customization - Omit the brackets when no symbols are present, meaning never output an empty
[]
May you please re-open this issue? Or would you prefer I create new separate issues?
from gita.
I just noticed that gita ll --help
prints a handy list of status and colour meanings. However, it's a little out of date for untracked (it has changed to ?
I think?) and stash $
is missing:
$ gita ll --help
usage: gita ll [-h] [-C] [-g] [{all}]
status symbols:
+: staged changes
*: unstaged changes
_: untracked files/folders
branch colors:
white: local has no remote
green: local is the same as remote
red: local has diverged from remote
purple: local is ahead of remote (good for push)
yellow: local is behind remote (good for merge)
from gita.
thanks @yellowtailfan I have updated the help message in v0.16.6.5
from gita.
Much better now, thanks @nosarthur!
from gita.
Related Issues (20)
- CI does not test recent Python versions
- Color printing does not work with Python 3.11 HOT 1
- dynamic groups based on status HOT 3
- problem displaying repo status properly HOT 12
- Number of modified files
- show status as words as well as colour in `gita ll` HOT 4
- long listing version of `gita ll` that lists modified filenames for each repo HOT 4
- gita ll - nothing happend HOT 2
- Gita clone -g should create group if not exists. HOT 2
- Adding groups doesn't work as in readme example HOT 3
- Suggestion: gita super based on a branch
- Request: Ability to run shell commands asynchronously. Also custom commands do not seem to work properly if the command does not start with "git <custom_args>". HOT 6
- Limit `gita ll` column widths HOT 2
- support git worktrees in gita freeze
- using gita to move and sync repo structure between workspaces HOT 5
- add more meta data in `gita freeze`
- `gita super diff` not working HOT 2
- failure with many repositories on MacOS HOT 2
- ModuleNotFoundError: No module named 'pkg_resources' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gita.