Michael Muré
44d7587940
lamport: match wikipedia algorithm
2021-02-14 12:14:34 +01:00
Michael Muré
4ef2c11040
repo: finish RepoStorage move
2020-12-08 13:07:51 +01:00
Zdenek Crha
999e61224c
Fix 'no description' readability in terminal with bright background
...
The rendering of color for 'No description provided' text is broken on
bright terminals - it sets black background which together with default
black forground color renders opaque rectangle.
The GreyBold color alias is broken too - name suggests bold gray
forground color, but actually sets bold default fg color with black
bacground.
First make color alias consistent. Rename it to BlackBold and have it
set bold black fg color (same as similar *Bold aliases).
Second, update all places which use it to render text to also use white
background to prevent it from disappering in terminals with black
background color.
2020-09-27 09:22:34 +02:00
Michael Muré
3cf31fc404
repository: merge git.Hash in for one less /util package
2020-07-01 19:39:02 +02:00
Michael Muré
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
...
- allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
- generalize the memory-only and persisted Lamport clocks behind a common interface
- rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
- test previously untested components with those new tests
Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
2020-06-26 19:14:22 +02:00
Michael Muré
f72a9dc62b
switch to go-term-text to fix bad underflow for label rendering
2019-11-03 14:00:35 +01:00
Michael Muré
c4accf5525
interrupt: also protect cancel with the mutex
2019-08-31 12:58:37 +02:00
Michael Muré
cb204411a2
interrupt: allow to cancel a cleaner
2019-08-30 12:17:29 +02:00
Michael Muré
67a3752e17
bug,entity: use a dedicated type to store IDs
2019-08-11 14:08:03 +02:00
Michael Muré
c7abac388a
repo: refactor how test repo are created/cleaned
2019-05-27 21:14:55 +02:00
Michael Muré
606a66dd6d
text: fix escape sequence disapearing at the end of a line
2019-05-10 00:45:36 +02:00
Amine Hilaly
2e17f37175
Add unicode control characters test case
...
Move `cleanupText` to utils/text/transform.go
`text.Cleanup`: removing unicode control characters except for those allowed by `text.Safe`
Add golang.org/x/text dependencies
fix text.Cleanup
Fix import panic
2019-05-05 18:16:10 +02:00
Michael Muré
c235d89d36
commands: show the last modification time in "user"
2019-03-01 22:52:54 +01:00
Michael Muré
475b7b4c49
a round of cleanup
2019-03-01 22:52:53 +01:00
Michael Muré
cd7ed7ff9e
identity: add more test for serialisation and push/pull/merge + fixes
2019-03-01 22:40:24 +01:00
Michael Muré
d10c76469d
identity: somewhat getting closer !
2019-03-01 22:40:21 +01:00
Michael Muré
feab9412df
WIP identity in git
2019-03-01 22:35:36 +01:00
Yang Zhang
8ea5c6b41d
Fix handling of long words
2019-01-08 09:55:32 +08:00
Yang Zhang
2feb4ec21b
Fix bad names in text.go
2019-01-07 21:30:46 +08:00
Yang Zhang
309e6892c3
Remove redundant init in text package
2019-01-02 23:32:56 +08:00
Yang Zhang
5cf7b19dcc
Make runewidth treat ambiguous rune as short and fix ui display
2019-01-01 21:52:05 +08:00
Yang Zhang
d4fd895579
Add tests for critical internal functions in text.go
2018-12-31 13:16:53 +08:00
Yang Zhang
7c1df91d53
Refactor text.go to improve clearity
2018-12-31 11:00:05 +08:00
Yang Zhang
99bc0c140a
Fix megacheck warnings
2018-12-31 09:02:35 +08:00
Yang Zhang
a0ae5fc534
Fix incorrect wrap of mixed wide and ascii chars
2018-12-31 08:53:11 +08:00
Yang Zhang
f22f9b7083
Implement a new wrap algorithm and pass all text tests
2018-12-31 01:57:10 +08:00
Yang Zhang
467ab5b68e
Fix tests in left_padded
2018-12-30 08:38:31 +08:00
Yang Zhang
c0ce41540e
Add back removed text functions
2018-12-30 08:38:31 +08:00
Yang Zhang
5241916535
Use ASCII ellipsis to workaround inaccurate width of unicode ellipsis
2018-12-30 08:38:31 +08:00
Yang Zhang
d31891504d
Implement almost full CJK support.
...
Display of CJK contents are supported. Adding CJK tags are problematic.
2018-12-26 23:05:58 +08:00
Yang Zhang
3fa2d15fb8
Implement displaying CJK contents
2018-12-26 22:55:16 +08:00
Michael Muré
32b3e263fc
text: fix handling of wide characters
2018-12-25 21:17:11 +01:00
Michael Muré
94b28b68e5
termui: display an explicit placeholder for empty messages
2018-12-23 21:46:47 +01:00
Michael Muré
7454b9505a
text: more chinese related fixes
2018-12-23 20:47:18 +01:00
Michael Muré
261aa61711
text: fix a wrapping bug leading to line longer than they should
2018-12-23 20:13:14 +01:00
Michael Muré
f9fc85ac82
text: hopefuly fix the handling of chinese
2018-12-23 19:00:51 +01:00
Michael Muré
5e74489126
text: fix broken truncate with unicode and use the ellipsis character in LeftPadMaxLine
2018-12-01 15:17:16 +01:00
Michael Muré
5653ae98e0
interrupt: minor cleaning
2018-10-27 11:51:50 +02:00
Rafael Passos
31cbddd35b
Iverted order, moved print, and new tests
2018-10-25 18:07:02 -03:00
Rafael Passos
8f012e2cab
RegisterCleaner now uses Variadic input + tests
2018-10-24 19:06:10 -03:00
Rafael Passos
85032d4cdc
Inverted boolean check
2018-10-24 18:55:02 -03:00
Rafael Passos
f72b18496b
moved cleaner function to util/interrupt
2018-10-24 18:36:39 -03:00
Michael Muré
8ab2f173e7
util: handle both sha1 and sha256 git hashes
2018-09-26 22:04:41 +02:00
Michael Muré
5d7c3a76af
bug: add the optional field AvatarUrl to Person
2018-09-25 17:55:20 +02:00
Michael Muré
c3a5213f82
repo: more documentation
2018-09-24 12:46:39 +02:00
Michael Muré
bfb5e96aab
commands: git bug comment now show the comments of a bug
2018-09-15 20:30:31 +02:00
Michael Muré
7bec0b1f13
bug: add a data validation process to avoid merging incorrect operations
2018-09-15 13:15:00 +02:00
Michael Muré
bf11c08f5a
lamport: better perf by ensuring that the folder is created only once
2018-09-13 16:05:27 +02:00
Michael Muré
3605887345
reorganize package for a more idomatic go
2018-09-11 22:14:46 +02:00
Michael Muré
6d7dc465d8
cache: lock the repo with a pid file; automatic cleaning
2018-08-21 19:13:08 +02:00