Commit graph

44 commits

Author SHA1 Message Date
Aurélien Rainone 941739b1ad
Update README.md
Some checks failed
Test, Build and Publish / tests (macos-latest) (push) Has been cancelled
Test, Build and Publish / tests (ubuntu-latest) (push) Has been cancelled
Test, Build and Publish / Build and Publish (push) Has been cancelled
2026-02-17 09:43:13 +01:00
Copilot 6a169c649f
Fix flags_without_count option behavior for empty symbols (#136)
The flags_without_count option was not handling empty symbols correctly.
Previously, flags with empty symbols were completely hidden regardless of
the option value, but according to the intended behavior, they should show
counts when flags_without_count=false (default).
2025-08-10 17:38:21 +02:00
Aurélien Rainone a5c6f875cd
Update README.md (#130)
Fix #41
2025-07-31 11:01:51 +02:00
Copilot 5538825cd1
Add flags_without_count option to show git status icons without counts (#129)
* Initial plan

* Implement flags_without_count feature

Co-authored-by: arl <476650+arl@users.noreply.github.com>

* Update README.md to document flags_without_count option

Co-authored-by: arl <476650+arl@users.noreply.github.com>

* Fix README.md table alignment for flags_without_count option

Co-authored-by: arl <476650+arl@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arl <476650+arl@users.noreply.github.com>
2025-07-31 10:53:34 +02:00
Josh Medeski eac38a7200
Drop "tap" langauge for homebrew installation (#125) 2025-07-28 19:49:22 +02:00
Alejandro Rivera bb31d3084e
feat: trim branch from center (#116)
Co-authored-by: Aurélien Rainone <476650+arl@users.noreply.github.com>
2024-06-09 09:47:49 +02:00
Aurélien Rainone 0323aecf71
Feature/space between divergence (#117)
* feat: option to add space between behind & ahead upstream

Signed-off-by: marcoSven <me@marcosven.com>

* add tests and rename option

Signed-off-by: marcoSven <me@marcosven.com>

* .gitmux.yml: document new option

* Update README: reformat

* tmux: gofmt

* tmux: fix divergence-space and improve test cases

---------

Signed-off-by: marcoSven <me@marcosven.com>
Co-authored-by: marcoSven <me@marcosven.com>
2024-06-09 09:42:25 +02:00
Hassaan Khan 5479145cfc
Adding swap_divergence flag (#98)
* Add swap_divergence flag

* Update readme, improve style

* Add tests for swap_divergence option

* Add swap_divergence option to default gitmux.yml
2023-04-10 09:25:02 +02:00
Aurélien Rainone 3e552aaf8f
README.md: fix badges 2023-04-06 00:18:12 +02:00
Josh Medeski 395d66dcc3
feat: separate layout items with spaces (#91)
* feat: separate layout items with spaces

* docs: update layout example

* fix: add space after stash

* feat: add trailing space to stats component

* feat: add trailing space to clean section

* test: trailing spaces on all components

* Remove bytes.Buffer, status functions return strings

* Take care of elements spacing in format()

* Fix spacing in default config

---------

Co-authored-by: Aurélien Rainone <aurelien.rainone@gmail.com>
2023-03-22 14:08:19 +01:00
Josh Medeski 2d1c132ecf
feat: adds option to hide clean flag (#92)
* feat: adds option to hide clean flag

* test: hide clean option

* test: options true and false

* docs: add hide_clean to README

* fix: whitespace in yml example
2023-03-16 17:54:35 +01:00
Aurélien Rainone 595c9fde2f
Issue 82/comment default config (#87)
* Remove _ prefix to variables

* Update README.md: align with default config

* -printcfg shows commented configuration

* Remove unused formater.go

* Move config-related in config.go

* tmux: remove DefaultCfg variable

The default configuration is now defined in an embedded file
with comments.

Fixes #82
2023-02-18 02:39:56 +01:00
Aurélien Rainone 2f7b93a487
Issue 60/ellipsis (#85)
* Add Ellipsis option, defaults to …

* Modify Test_truncate

* Change default layout (remove .. between branch and remote)

* README.md format

* README.md: document ellipsis

Fixes #60

* Update golden file and fix tests

Since the default config has changed the golden file must be
updated.
2023-02-16 10:09:23 +01:00
Aurélien Rainone 1606e240f4
Issue 77/count insertions deletions (#83)
* tmux: cosmetics

* bump gitstatus to v0.6.0

* testscript: set TestWork to true

* Add Insertions/Deletions to Symbols and Styles

* Show insertions/deletions if 'stats' is in the layout

* Add Test_stats

* Update README.md
2023-02-15 23:27:15 +01:00
Aurélien Rainone 9dc9823172
Update README.md 2023-02-13 08:45:45 +01:00
Aurélien Rainone 936e72be38
Update README.md 2023-02-11 15:41:23 +01:00
Aurélien Rainone efd7cb90f1 Update README.md 2023-02-11 15:38:39 +01:00
Aurélien Rainone e76504fef7
Brew tap (#81)
* cd: use gorelease --clean instead of --rm-dist

* cd: check brew tap has been installed after a release

* README.md: update ci/cd workflow badges

* README.md: add brew tap to install section

Closes #52
2023-02-11 15:31:41 +01:00
Robin Candau bf5e8d22ef
Update README.md (#73)
Added the AUR packages installation info
2022-09-15 13:47:45 +02:00
Aurélien Rainone 070552e334
Update README.md 2022-09-04 20:37:25 +02:00
A2n 055e87f5eb
Update README.md (#70)
* Update README.md

Updated the README with clearer information: 

- an information about the refresh time -- I almost created a bug, because I'm a beginner on tmux and I didn't know this variable; so I think that an informative line about this can be useful
- a modification of an example that I didn't find necessarily clear because it didn't use the same context as the example given in the "Getting started" section

* Update README.md

Improve the line about status-interval
2022-09-04 19:48:02 +02:00
Julian Torres 9f9de9bb38
Update README for installing with Go (#68)
* Update README for installing with Go

On Go 1.17, `go get -u` as a method os installation locally was deprecated, and on 1.18 it completely fails to run. Switching to `go install github.com/arl/gitmux@latest` works as expected on 1.16+
2022-06-09 22:18:01 +02:00
Aurélien Rainone 7986e6b6d2
Update README.md 2022-01-23 17:40:04 +01:00
Aurélien Rainone e614142f54
Issue 58/trim branch name right or left (#59)
* Bump gopkg.in/yaml v2 -> v3

* Add branch_trim_direction (default to right)

* tmux: remove Formater.remote()

Formater.remote() is just remoteBranch() followed by divergence()

* tmux: implement and test branch_trim_direction (left|right)

* tmux: s/BranchTrimDirection/BranchTrim

* README.md: update and add branch_trim

* tmux: remove dependency to testify

* tmux: use io.Discard in test
2022-01-23 17:36:31 +01:00
Aurélien Rainone f0f9c7aa15 Update README.md: fix typo 2021-09-25 16:27:25 +02:00
Aurélien Rainone c43cc4ce04
Issue 53/divergence style (#54)
Print Divergence style before behind/ahead count

Fixes #53
2021-09-25 07:15:11 -07:00
Aurélien Rainone 9102751c0b
CI: replace travis with GitHub actions (#56)
Fixes #55

* .travis: run tests with go1.17.x

* go.{mod,sum}: bump dependencies

* .gitignore: add dist/

* ci: run test on github-action

* ci: goreleaser runs on github action
2021-09-25 16:07:49 +02:00
Aurélien Rainone 8703c0d545
Update README.md
Add link to solution solution without pane_current_path. 
Fixes #19
2021-08-07 11:49:39 +02:00
Blaok 3e537ea740
Update README.md (#46) 2020-09-21 07:31:36 +02:00
Aurélien Rainone 59b3b290a9
Update README.md 2020-08-12 17:53:23 +02:00
cdelledonne 75a5b9e615
Add option to truncate long branch names (#31)
* Add option to truncate long branch names

* Update unit tests
2020-07-28 07:48:12 +02:00
Aurélien Rainone d06ff11990 Update README 2020-06-09 19:11:25 +02:00
Aurélien Rainone e2693a76b3
Update README.md 2020-06-07 20:46:34 +02:00
Aurélien Rainone c0b7b03325
Breakdown remote component (#27)
* Cosmetics

* Add TestOutputNonRegression

This test ensures that new features do not change gitmux output
when used with a default configuration.
It loads a golden file ('testdata/default.output.golden') and
compares it with the actual output. -update updates the golden
file.

* format/tmux: breakdown `remote` into `remote-flags`+`divergence`

Currently the `remote` flags gets replaced by both the name of the
remote (e.g `origin`) and the divergence flags indicating whether the
local and the remote branch diverges and how much (e.g `↓·2↑·3`).

In order to allow user to skip the remote branch and to keep the
divergence flags, or the other way around, we add the `remote-branch` and
the `divergence` layout elements.

Also, to not break user configurations, we keep the 'remote' layout
element, and make it so that it's equivalent to setting `remote-flags`
and `divergence` consecutively.

Fixes #23

* format/tmux: replace `remote` with `branch+divergence` in default config

* Update README.md: improve the customizing section

Improve the Customizing section of the README
2020-06-07 20:07:02 +02:00
Salar Khan 9846b104da
allow flexible display for output format of git status (#21)
* changes from casonadams:
- added options in cfg file to show or hide remote information
- Consider possibility to choose/reorder/remove the info shown #14 fix
- updated test cases to accomidate changes to code base
- better docs, added second delm option, more flexible formatting
- fixed tests to run on travis CI
- fixed tests to run on travis CI
- adding README info for cfg options in dynamic layout output
- making display output not break if missing, plus making spacing strings more flexible
- adding usage in READ around display features
- fixed typo in README

* changes from salarkhan
- match string exactly, remove regexp
- don't call git, create a synthetic status to compare against
- use "Symbol-Thing" instead of the actual symbols, in case they change
- note that divergence is coupled to remote. maybe these should be split
- add empty test case
- no need to have a test for every single permutation, one example should suffice

* display -> layout

Co-authored-by: Cason Adams <casonadams@gmail.com>
2020-04-13 08:04:30 +02:00
Aurélien Rainone a2244005d4
Update README with "#{pane_current_path}" (#18)
Fixes #17
2020-02-12 22:44:24 +01:00
Aurélien Rainone d826bfc431
Update README.md (#13)
* .github: add ISSUE_TEMPLATE.md

* Update README.md

Fixes #3

* Improve README
2020-01-06 18:51:00 +01:00
Aurélien Rainone 590623c50c
Update README.md 2019-12-25 16:05:07 +01:00
Aurélien Rainone d9fc3d3d9e
Sensible defaults (#11)
* Change default options to more sensible ones

Remove `-quiet` and `-fmt` option, replace them with `-dbg` since they
were only meant to be used if something went wrong.

* In debug mod, prints errors on stderr

* cosmetics

* Keep -q -fmt deprecated/unused options

* Improve README.md
2019-12-24 01:05:17 +01:00
Aurélien Rainone d424275b8e Update README 2019-12-17 10:44:19 +01:00
Aurélien Rainone 5282f487a0
Issue 9/add git no optional lock (#10)
* Update README.md

s/GiTmux/Gitmux

* Bump gitstatus

By bumping gitstatus to v0.4.2 we're now calling git with
GIT_OPTIONAL_LOCKS set to 0, ensuring gitstatus does not lock the
working tree for its operations, effectively giving higher
priority to user-initiated operations. This is useful when gitmux
is run in the background.

Fixes #9
2019-12-17 10:12:45 +01:00
Aurélien Rainone 9fbf088b0a README: fix badges 2019-11-07 10:06:18 +01:00
Aurélien Rainone ffafab15e2 Update README.md 2019-11-06 23:13:46 +01:00
Aurélien Rainone c342dee476 Auto releases (#1)
* Add README.md

* Add gitmux -V option

* Setup travis-ci and goreleaser
2019-10-28 13:28:01 +01:00