Commit Graph

324 Commits

Author SHA1 Message Date
Stephan
ce4f3af767 leave alternate screen when going into external editor (fixes #152) 2020-06-29 10:27:16 +02:00
Stephan Dilly
c856c23aef remove outdated commit method 2020-06-29 09:46:38 +02:00
Jon Grythe Stødle
477fdd303d Add support for external editor
Adds support for editing commit messages in an external editor. It read the GIT_EDITOR, VISUAL, EDITOR environment variables in turn (in the same order git does natively) and tries to launch the specified editor. If no editor is found, it falls back to "vi" (same as git). If vi is not available, it will fail with a message.
2020-06-26 00:50:39 +02:00
Stephan Dilly
8627d940f4 steamline some more command functions 2020-06-25 19:05:59 +02:00
Stephan Dilly
df338334e1 2% optimisation in revlog where amend was still run on each event 2020-06-25 18:35:16 +02:00
Stephan Dilly
895c013d10 fixed author column width (closes #148) 2020-06-25 10:27:07 +02:00
Stephan Dilly
0d84abd1c6 make draw take shared ref again 2020-06-23 11:03:02 +02:00
Stephan Dilly
19947a7ec0 fix state change bug introduced in last commit 2020-06-23 00:24:12 +02:00
Stephan Dilly
cb6fe05cd6 indicate whether input polling state in process of changing 2020-06-23 00:18:59 +02:00
Stephan Dilly
a98dea7825 clippy fix 2020-06-22 20:12:19 +02:00
Stephan Dilly
76e52cc7a2 show file size diff for binary files (#141) 2020-06-22 20:01:04 +02:00
Stephan Dilly
b8397ae285 make help headers more obvious (closes #131) 2020-06-22 16:42:16 +02:00
Stephan Dilly
afa6aad973 cleanup 2020-06-22 16:36:54 +02:00
Stephan Dilly
6199706a2f remove one indirection 2020-06-22 12:40:54 +02:00
Stephan Dilly
86fafbd47b clippy fixes 2020-06-22 12:32:01 +02:00
Stephan Dilly
b899751c2b share theme instead of copying it all over the place 2020-06-22 12:21:21 +02:00
Stephan Dilly
79b8bdfae2 rename 2020-06-22 09:36:56 +02:00
Stephan Dilly
4bcfa61087 allow input polling to be paused (#114) 2020-06-22 09:13:37 +02:00
Daniel Obermaier
9dcc445ab9 simple fix for arrow utf8 encoding in help window 2020-06-19 13:16:23 +02:00
Stephan Dilly
b4400dfe13 Use terminal blue as default selection background (closes #129) 2020-06-16 16:46:46 +02:00
Stephan Dilly
19db19b010 add test for untracked files in stash bug (#130) 2020-06-15 23:40:09 +02:00
Stephan Dilly
f119595128 fix clippy 2020-06-15 12:30:44 +02:00
Stephan Dilly
b4a466876e Fix textinput cursor was not reset after msg.clear 2020-06-15 12:09:22 +02:00
Stephan Dilly
c6eb066953 cache config path call 2020-06-15 02:22:10 +02:00
Jon Grythe Stødle
212ce86f49 Move config directory
This changes the config directory from the `dirs::cache_dir` to `dirs::config_dir`. It does however keep the cache directory as the default logging directory, as it seems a better fit.

It also adds a function, `migrate_config`, which is called at startup to move directory entries inside the "old" config directory to the "new" one (but it skips moving log files). The intention is that this function can be removed after a few releases when the likelihood of someone upgrading from 0.6.0 or earlier is fairly small.

Fixes #98
2020-06-15 01:36:13 +02:00
Stephan Dilly
602257f114 simplification and fix staging hunks in untracked file 2020-06-15 01:32:39 +02:00
Stephan Dilly
b3045b35bb rename 2020-06-14 23:37:46 +02:00
Stephan Dilly
d67a240bc7 fix reset hunk in untracked file 2020-06-14 23:34:54 +02:00
Stephan Dilly
24da2f200e
Reset individual hunks (#125)
closes #11
2020-06-14 10:46:25 +02:00
Stephan Dilly
0cdaabf9f8 clippy fix 2020-06-14 10:20:05 +02:00
Stephan Dilly
36d9d13df4 fix theme usage 2020-06-14 10:19:36 +02:00
Alistair Carscadden
fcb474b8a2 use is_char_boundary() to simplify logic 2020-06-14 09:55:54 +02:00
Alistair Carscadden
8c4d52d59e wrap TextInputComponent text 2020-06-14 09:54:50 +02:00
Stephan Dilly
c37fd56b3c rustfmt 2020-06-14 00:57:45 +02:00
A. Carscadden
09c3fe9cbb
Add cursor to TextInputComponent for better commit message support (#117)
see #46
2020-06-14 00:56:35 +02:00
Stephan Dilly
5a6e67cc7e inspect stash commit (closes #121) 2020-06-13 02:11:16 +02:00
Stephan Dilly
5185f1c4d4 support commit amend (#89) 2020-06-13 01:50:39 +02:00
Stephan Dilly
63e449fca9 indicate what branch we are on (closes #115) 2020-06-12 22:37:53 +02:00
Stephan Dilly
112b5c888c better scrolling in diff (closes #52) 2020-06-12 17:36:06 +02:00
Stephan Dilly
dd69d9b559 fix files loading text sometimes wrong (closes #119) 2020-06-12 16:59:36 +02:00
Stephan Dilly
b80df36cdf fix selection disappearing in tree sometimes (closes #120) 2020-06-12 16:39:06 +02:00
Stephan Dilly
6ebe717fb1 remove some duplication in reset 2020-06-12 14:41:37 +02:00
Stephan Dilly
9301574624 fix reset file when running gitui in subfolder (closes #118) 2020-06-12 11:46:45 +02:00
Stephan Dilly
0ec7552569 right arrow in file tree convenience 2020-06-10 09:35:27 +02:00
Stephan Dilly
8d38bd1862 clippy 2020-06-09 17:49:56 +02:00
Stephan Dilly
f91873da1b correct file number 2020-06-09 17:49:08 +02:00
Stephan Dilly
885accc271 more room for files 2020-06-09 17:33:30 +02:00
Stephan Dilly
9e1d8af264 request commit based diff async 2020-06-09 17:23:59 +02:00
Stephan Dilly
6a6fae9581 show cmds in new commit popup 2020-06-09 16:58:28 +02:00
Stephan Dilly
702415c40d
full commit detail popup (#113)
see #80
2020-06-09 13:30:17 +02:00