Commit Graph

324 Commits

Author SHA1 Message Date
Stephan Dilly
b34deddb0e split commitComponent to have generic reusable textInputComponent 2020-05-22 14:33:44 +02:00
Stephan Dilly
92d899023d enable cargo clippy 2020-05-22 12:39:23 +02:00
Stephan Dilly
3c5e86eee9
stashing support (#70) 2020-05-21 15:46:38 +02:00
Stephan Dilly
5936757538 output panics for simpler diagnosis 2020-05-21 12:16:33 +02:00
Stephan Dilly
35f4555b2d add some more safety checks in help rendering 2020-05-21 11:56:41 +02:00
Stephan Dilly
51b14400db log tab refreshes when head changes (closes #78) 2020-05-20 18:11:04 +02:00
Stephan Dilly
c2e08f629a make danger color specific 2020-05-20 11:48:58 +02:00
Stephan Dilly
f03a1ac611 make msgbox error msgs only for now 2020-05-20 11:29:11 +02:00
Stephan Dilly
25c07a839c warn if commit fails (like when no name is set) (#74) 2020-05-20 11:26:56 +02:00
Stephan Dilly
7c8b7bf998 fix missing commit in single commit repo (#75) 2020-05-20 09:54:40 +02:00
Stephan Dilly
da2ef9370b fix tab rendering style for light theme 2020-05-20 08:46:23 +02:00
Stephan Dilly
6c87fb478d rustfmt fix 2020-05-20 00:16:45 +02:00
Stephan Dilly
c86a51cba8 allow style to be readable on light themes aswell 2020-05-20 00:11:52 +02:00
Stephan Dilly
8ae3caa1b2 clippy fix 2020-05-19 23:55:10 +02:00
Stephan Dilly
0d1e709abf diff hunk marker returns
revert to old style
renames
some more style adjustments to the old
2020-05-19 23:54:10 +02:00
Stephan Dilly
1c03458de7 merge uses 2020-05-19 23:11:28 +02:00
Stephan Dilly
8a1c03f97d one less public symbol 2020-05-19 23:02:47 +02:00
Stephan Dilly
6c733ef82c remove necesity of a public custom Color type ColorDef 2020-05-19 21:44:31 +02:00
Stephan Dilly
5f8c333a24 pass theme as ref where possible 2020-05-19 20:38:56 +02:00
Mehran Kordi
4ec1a4e94b
Implement color themes #65 (closes #28) 2020-05-19 20:19:30 +02:00
Stephan Dilly
e73cdb67bc stop status from adding commands when not active 2020-05-19 18:16:05 +02:00
Stephan Dilly
dd49d68eab better scrolling in log view (#52) 2020-05-19 10:59:40 +02:00
Stephan Dilly
5a28c7b15b more doc 2020-05-16 23:27:02 +02:00
Stephan Dilly
78b31d046b fix crash in help popup (closes #63) 2020-05-16 23:26:53 +02:00
Stephan Dilly
8b096fb9e1
support multiple tags per commit (#62)
* support multiple tags per commit
* update changelog
* make sure clippy works in CI
2020-05-16 20:14:27 +02:00
Stephan Dilly
a5d5b3b916 allow longer messages in log view 2020-05-15 18:55:18 +02:00
Stephan Dilly
f8294dcb7b cleanup some result return types 2020-05-15 18:23:07 +02:00
Mehran Kordi
03505b9eb6
Replace unwrap calls in asyncgit with error handling - closes #53 2020-05-15 15:15:26 +02:00
Stephan Dilly
f2dd2b64b7 make space between commands use default bg (#28) 2020-05-14 17:38:25 +02:00
Stephan Dilly
43712a1a3e better error msg when run outside of a git repo (closese #56) 2020-05-14 14:24:04 +02:00
Stephan Dilly
478d321f26 fix typo 2020-05-14 13:55:38 +02:00
Stephan Dilly
e7f0db2941 simplify ctrl+c handling, its done first so no one can block it 2020-05-13 16:47:39 +02:00
Stephan Dilly
63630eb18d cleanup 2020-05-13 16:38:48 +02:00
Stephan Dilly
8e87bf2bd8 emphasize current tab rendering 2020-05-12 14:18:23 +02:00
Stephan Dilly
c44966c1a9 cleanup 2020-05-12 14:05:38 +02:00
Stephan Dilly
a367238e05 support page up/down in diff (#43) 2020-05-12 13:35:48 +02:00
Stephan Dilly
70e5201956 allow all draw calls to mutate self 2020-05-12 13:22:55 +02:00
Stephan Dilly
434c793d1c support page up/down in log (#43) 2020-05-12 01:21:32 +02:00
Stephan Dilly
0e9ba8aef6 Move status tab into its own component 2020-05-11 17:20:34 +02:00
Stephan Dilly
fa2aabfee0 support jumping to end in log (#43) 2020-05-11 14:34:10 +02:00
Stephan Dilly
061ad37dce support end button in file tree (#43) 2020-05-10 22:14:02 +02:00
Stephan Dilly
f5795d1fad support home button for commit log (#43)
clippy fix
2020-05-10 15:01:21 +02:00
Stephan Dilly
c42a421828 allow quitting (ctrl+c) everywhere 2020-05-10 14:51:31 +02:00
Stephan Dilly
c638eb0329 ignore ctrl+c in commit to allow quitting 2020-05-10 14:47:19 +02:00
Stephan Dilly
7e8e3a0bd5 show tab button in help and fix help for diff (fixes #48) 2020-05-10 14:37:49 +02:00
Stephan Dilly
16aa6f7c50 support showing tags in log, speed up log by cloning less (#47) 2020-05-10 14:23:24 +02:00
Stephan Dilly
ec6180af51 only quit gitui on Ctrl+c from now on 2020-05-10 13:27:46 +02:00
Stephan Dilly
d332e7e586 refactor key handling in diff 2020-05-10 13:24:54 +02:00
Stephan Dilly
e8204d5a6d clippy fixes 2020-05-10 13:19:40 +02:00
Stephan Dilly
5fc8d72ed6 fix home/end buttons on diff and add home button on file list (#43) 2020-05-10 13:12:06 +02:00
Stephan Dilly
5b25abace5 fix clippy warning 2020-05-10 10:10:15 +02:00
Stephan Dilly
8ef80945b0 better label 2020-05-09 22:58:09 +02:00
Stephan Dilly
6bb54cfa8c support home/end to jump up/down (#43) 2020-05-09 22:55:02 +02:00
Stephan Dilly
13979c1013 revert workaround (fixes #26) 2020-05-09 13:04:29 +02:00
Stephan Dilly
87d13f84d8 show diffed files path in title 2020-05-07 17:06:02 +02:00
Stephan Dilly
871f2cf2c3 commit error handling 2020-05-05 13:54:43 +02:00
Stephan Dilly
1db1f00302
Log view (#41) 2020-05-05 13:47:21 +02:00
Stephan Dilly
4df7704ef5 clippy fixes 2020-05-02 16:58:13 +02:00
Stephan Dilly
aa830963d4 file status indication and color for rename 2020-05-02 11:59:14 +02:00
Stephan Dilly
8f6a7bd330 fix rare showing of wrong diff 2020-05-01 22:24:18 +02:00
Stephan Dilly
66cb359e18 simplify code using macro 2020-04-30 13:48:12 +02:00
Stephan Dilly
5908d46d56 better wording 2020-04-30 12:25:18 +02:00
Stephan Dilly
5382ce7408 Improve navigation (#29)
* offer commit only when selecting staging area
* show quickbar cmd to switch between unstaged/staged
* adjust size of focused file tree
2020-04-30 12:22:38 +02:00
Stephan Dilly
12cef5fccd also use status fetching for spinner state 2020-04-29 23:33:44 +02:00
Stephan Dilly
f502c81187 spinner showing pending background work 2020-04-29 23:23:08 +02:00
Stephan Dilly
d48fdd2774 fix folder indenting when a file starting exactly like the folder exists next to it 2020-04-28 17:55:08 +02:00
Stephan Dilly
1ca04496cb Add folder actions unstage/stage/reset 2020-04-28 15:43:11 +02:00
Stephan Dilly
b0fdf5049c
Switch to a tree view for changed files list (#37) 2020-04-28 11:15:05 +02:00
Stephan Dilly
09df10cdbd fix new clippy warning
Fix ci clippy task
2020-04-24 07:41:48 +02:00
Stephan Dilly
39479c5d13 use xdg convention for log file location putting it in .cache (see #27) 2020-04-22 14:31:54 +02:00
Stephan Dilly
aa1c54d366 fix mix up in label for add/remove hunk 2020-04-21 22:31:15 +02:00
Stephan Dilly
72a1f94483 workaround crossterm bug: https://github.com/crossterm-rs/crossterm/issues/421 2020-04-21 18:02:27 +02:00
Stephan Dilly
258d1311cd cleanup 2020-04-18 22:58:39 +02:00
Stephan Dilly
952ea17c90 cleanup 2020-04-18 22:56:22 +02:00
Stephan Dilly
73c650174f fix staging removed files (fixes #24) 2020-04-18 11:25:03 +02:00
Stephan Dilly
69afc129c7 fix line ending drawing CRLF
(fixes #21)
2020-04-16 16:41:04 +02:00
Stephan Dilly
1b90436421 switch to tui clear new in 0.9 2020-04-16 15:12:32 +02:00
Stephan Dilly
e50f15f72b tui upgrade 2020-04-15 22:38:09 +02:00
Stephan Dilly
99a240da5f clippy fix 2020-04-13 01:38:13 +02:00
Stephan Dilly
6bcdee4d63 more clean update messaging 2020-04-13 01:22:09 +02:00
Stephan Dilly
de5cedb05a new update flags system 2020-04-13 00:29:36 +02:00
Stephan Dilly
c0f0883f1b cleanup 2020-04-12 19:45:37 +02:00
Stephan Dilly
e43ed300ed doc 2020-04-12 19:39:53 +02:00
Stephan Dilly
f2f278e9c0 docs 2020-04-12 14:24:21 +02:00
Stephan Dilly
71b113cbbb show version in help popup 2020-04-12 14:23:22 +02:00
Stephan Dilly
145bc90e4c little cleanup 2020-04-12 01:50:34 +02:00
Stephan Dilly
445b732522 improved popup drawing 2020-04-12 01:46:30 +02:00
Stephan Dilly
f3f6b92007 draw once before mainloop to appear more snappy 2020-04-12 01:34:53 +02:00
Stephan Dilly
1fe08a3f3d fix diff header coloring 2020-04-10 19:13:52 +02:00
Stephan Dilly
520456d0cd visualize commit-msg hook when failed 2020-04-10 14:02:24 +02:00
Stephan Dilly
acea66e829 render tabs in diff (closes #12) 2020-04-09 12:43:51 +02:00
Stephan Dilly
36ff0be9d1
support hooks: post-commit,commit-msg (#15)
* support hooks: post-commit and commit-msg
* some unittests
* exclude tests on windows for now
2020-04-09 09:23:59 +02:00
Stephan Dilly
936e965c17 fix: dont allow open revert dlg on [D] press while on staged file 2020-04-08 00:23:12 +02:00
Stephan Dilly
387b8748b1 better naming 2020-04-08 00:21:08 +02:00
Stephan Dilly
b71f39fbb3 Support stage/unstage hunk 2020-04-08 00:21:08 +02:00
Stephan Dilly
77719df650 fix quickbar not updating after switching focus 2020-04-05 15:32:07 +02:00
Stephan Dilly
e51609ed91 fix crash running outside of git repo 2020-04-03 23:32:17 +02:00
Stephan Dilly
923f7a46d6 confirm destive command: reset file 2020-04-03 23:16:49 +02:00
Stephan Dilly
0a91b749dd fix clippy 2020-04-03 22:18:20 +02:00
Stephan Dilly
9ac915212a fix diff staying blank 2020-04-03 22:16:31 +02:00
Stephan Dilly
ef4d3f7b56 introduce queue to get rid of event() return type 2020-04-03 17:52:41 +02:00
Stephan Dilly
176f2ee2fa naming 2020-04-03 17:09:59 +02:00
Stephan Dilly
b8debcf87f clippy fixes 2020-04-03 16:46:33 +02:00
Stephan Dilly
448b6927c3 better help sorting 2020-04-03 16:40:30 +02:00
Stephan Dilly
6001593a0a rename 2020-04-03 16:26:05 +02:00
Stephan Dilly
2282305e7c switch to new command texts 2020-04-03 16:24:52 +02:00
Stephan Dilly
ed5668c4c8 cmd help grouping and long desc 2020-04-03 14:48:41 +02:00
Stephan Dilly
bc85a86000 pedantic clippy 2020-04-02 23:45:50 +02:00
Stephan Dilly
77cafbd6b7 more clippy warnings 2020-04-02 21:25:51 +02:00
Stephan Dilly
25883f6070 sort commands in quickbar 2020-04-02 18:33:34 +02:00
Stephan Dilly
6c7c155cef better system for cmd propagation 2020-04-02 18:07:53 +02:00
Stephan Dilly
510400a784 clippy fix 2020-04-02 13:34:28 +02:00
Stephan Dilly
4bd9826666 move more into sub components 2020-04-02 13:29:25 +02:00
Stephan Dilly
8937f5f437 move more into downhirarchie components 2020-04-02 13:20:56 +02:00
Stephan Dilly
5e6e82c1c9 move help keys into help component 2020-04-02 12:18:24 +02:00
Stephan Dilly
cd4b9a07c0 placegholders 2020-04-02 01:53:05 +02:00
Stephan Dilly
e46ab3ac7b cleanup eventpump, generalization 2020-04-02 01:50:39 +02:00
Stephan Dilly
185a4830fb less colorful theme 2020-04-01 23:43:02 +02:00
Stephan Dilly
f8f05d6c31 remove all unsafe usage 2020-03-31 01:43:56 +02:00
Stephan Dilly
80b5a53662 fix clippy 2020-03-30 23:54:43 +02:00
Stephan Dilly
604598673f use crossbeam ticker channel to reduce threading usage 2020-03-30 23:45:54 +02:00
Stephan Dilly
b94d8bcf5c cleanup terminal creation 2020-03-30 23:20:56 +02:00
Stephan Dilly
525a1a53c4 fix showing scroll command everywhere 2020-03-30 20:00:29 +02:00
Stephan Dilly
6d8b9c3fb6 fix threadpool size to be big enough 2020-03-30 18:20:51 +02:00
Stephan Dilly
264be544c2 rename type 2020-03-30 16:47:49 +02:00
Stephan Dilly
3303003902 rename file 2020-03-30 16:46:45 +02:00
Stephan Dilly
d21ed0467b renames,cleanup 2020-03-30 16:43:37 +02:00
Stephan Dilly
74a86bae24 prevent panics to mess up your previous terminal session 2020-03-29 16:34:29 +02:00
Stephan Dilly
9282c360e8 note why forbid-unsafe does not work 2020-03-29 15:13:37 +02:00
Stephan Dilly
1aa4024721 better panic message 2020-03-28 14:14:03 +01:00
Stephan Dilly
41a52cfc8c more clean solution that does not need git cli
* make test run in parallel again
* better test structure
2020-03-28 13:45:19 +01:00
Stephan Dilly
2b45a039d1 fix clippy warning 2020-03-27 10:41:46 +01:00
Stephan Dilly
bfbde25116 fix diff at the end of file 2020-03-27 10:32:55 +01:00
Stephan Dilly
b1f8914cba clamp scroll position to valid range 2020-03-27 09:49:57 +01:00
Stephan Dilly
68d8d47c62 fix clippy warning 2020-03-27 01:15:00 +01:00
Stephan Dilly
8e7d2eb4a1 fix more clippy 2020-03-27 01:11:15 +01:00
Stephan Dilly
7df5b9b24a cleanup 2020-03-27 00:50:11 +01:00
Stephan Dilly
bc908ee049 fail on clippy warnings 2020-03-27 00:50:02 +01:00
Stephan Dilly
33e9013b72 more on clippy 2020-03-27 00:41:59 +01:00
Stephan Dilly
37da79233a fix tons of clippy warnings 2020-03-26 23:45:52 +01:00
Stephan Dilly
b2c44566f6 hunk based renderer 2020-03-26 18:35:21 +01:00
Stephan Dilly
82e0966a13 doc 2020-03-26 13:37:52 +01:00
Stephan Dilly
0dce256f80 stricter warning leves 2020-03-26 13:26:40 +01:00
Stephan Dilly
1d58365b33 use threadpool for all threads to be able to have unified panic handling 2020-03-26 10:05:50 +01:00
Stephan Dilly
314d76e0c2 rip out mouse support for now 2020-03-26 09:51:11 +01:00
Stephan Dilly
a60c3b2eb0 fetch file diff based on hunks 2020-03-25 23:47:39 +01:00
Stephan Dilly
63ec83f60d set rayon global thread panic handler 2020-03-25 23:37:00 +01:00
Stephan Dilly
d52308ea0a update diff if changed externally 2020-03-25 15:36:57 +01:00
Stephan Dilly
3d0926d279 fix: diff not correct when switching between same file in stage/unstaged 2020-03-24 20:45:47 +01:00
Stephan Dilly
adf925083d first test for a help popup 2020-03-24 14:39:00 +01:00