Stephan Dilly
aa1bf4fded
fix "add hunk" using "revert hunk" key in command bar
2020-08-28 18:43:13 +02:00
Stephan Dilly
425963ca58
Scrollbar in diff ( #251 )
...
closes #204
2020-08-28 18:19:44 +02:00
Stephan Dilly
2401293b66
Rust1.46 and nightly ci ( #246 )
2020-08-28 10:52:24 +02:00
Stephan Dilly
80da95b6f5
cleanup commit message line encodings to fix rendering commit msg ( closes #245 )
2020-08-27 01:10:38 +02:00
Stephan Dilly
1a5a121b33
small cleanups
2020-08-26 18:53:50 +02:00
Antonio Yang
a95ffd7bcc
Customize key binds ( #234 )
...
* customizable key config
* provide example vim key config
* automatically show correct key binding in bottom cmd-bar
2020-08-26 18:23:53 +02:00
Christoph Rüßler
bc23270951
Add multiple selection in diff view ( #231 )
...
* Add multiple selection in diff view
* Copy selection to clipboard in diff view
* Show error message if copy to clipboard fails
- Draw `msg` after `inspect_commit_popup` to make sure the error message
is visible
- Move `try_or_popup!` to `utils`
2020-08-19 21:02:19 +02:00
Christoph Rüßler
1a90fd365f
Add scrolling to commit message in details
...
- Manually wrap commit message using `textwrap`
Closes #181
2020-08-08 19:42:02 +02:00
Stephan Dilly
0e81f062da
fix slection error after deleting last element in stash ( closes #223 )
2020-08-08 09:24:23 +02:00
Jon Grythe Stødle
8db6325777
Add support for spaces in file path
...
If the file path contained a space, the editor would be launched with an incomplete file path.
This also switches to using `OsStr` for the file path, which means that if the file name contains invalid UTF-8, it will not blow up because of gitui.
2020-07-29 21:10:45 +02:00
Stephan Dilly
f45af0e3cf
fix multiple tags not being seperated in details view ( fixes #212 )
2020-07-22 10:37:47 +02:00
Stephan Dilly
7e8df3ad28
simplify pending state by using the new one
2020-07-18 13:35:24 +02:00
Stephan Dilly
03cf23ad98
visualize pending load on status file list ( closes #160 )
2020-07-18 12:44:23 +02:00
Stephan Dilly
a54fbf7f63
visualize pending load of a diff ( #160 )
2020-07-18 12:21:18 +02:00
Stephan Dilly
0dd50b402e
upgrade to rust 1.45 and fix new clippy warnings
2020-07-17 11:54:12 +02:00
Christoph Rüßler
70423c5b83
Add command for tagging commit
2020-07-15 23:22:03 +02:00
Stephan Dilly
18f3bd981d
min rect size for commit popup ( fixes #179 )
2020-07-14 09:42:55 +02:00
Stephan Dilly
1afa91b144
show tags in commit details popup ( closes #193 )
2020-07-12 14:38:38 +02:00
Stephan Dilly
f4e2b7c6c0
update changes title right away
2020-07-12 14:38:18 +02:00
Stephan Dilly
315cf615e0
Async tag fetching ( #195 )
2020-07-12 13:21:34 +02:00
Stephan Dilly
cbd75110b7
add error handling on potential error in ignore ( #191 )
2020-07-10 09:08:36 +02:00
Stephan Dilly
4f731f6acc
fix opening relative paths in external edtiro ( closes #184 )
2020-07-09 17:47:38 +02:00
Stephan Dilly
540997c177
error if file to be opened in external editor will not be found ( #184 )
2020-07-08 19:47:25 +02:00
Stephan Dilly
a11713ee18
docs
2020-07-07 13:02:41 +02:00
Stephan Dilly
1cd74ad02e
fix messing up users terminal after opening file in vi (related to #173 )
2020-07-07 12:53:17 +02:00
Jon Grythe Stødle
52f31adb98
Add command to edit selected file in editor
...
Pressing `e` while looking at a file in the _Status_ view will launch an external editor with the current file opened. The editor chosen is determined by the default logic introduced in #114 .
An improvement to this in the future could be launching at the specific line at which the _Diff_ view is focused, but that seems to require a change in `FileDiff` which is a change bigger than this PR.
Fixes #166
2020-07-07 12:42:01 +02:00
Stephan Dilly
b9ec27d89c
fix newline visualization in commit msg editor ( closes #169 )
2020-07-07 12:33:32 +02:00
Stephan Dilly
de7f48f88e
show placeholder popup when waiting for external editor #157
2020-07-04 20:22:55 +02:00
Stephan Dilly
a33db8d3de
cache branchname lookup ( closes #159 )
2020-07-04 18:12:54 +02:00
Stephan Dilly
bfda870933
fix panic when cursor is OOB after closing editor with shorter msg
2020-07-04 15:44:24 +02:00
Stephan Dilly
313f5586b0
todo
2020-07-04 15:38:46 +02:00
Stephan Dilly
60759d7bec
open external editor from commit popup
...
this puts all commit logic into one 'view' and allows editing amend commit messages in the external editor aswell.
2020-07-04 15:36:12 +02:00
Stephan Dilly
c784c9e9b3
safety first
2020-06-30 09:49:27 +02:00
Agung Baptiso Sorlawan
3ec47ced67
Fix scrolling issues in staged/unstaged section ( fixes #144 ) ( #162 )
2020-06-30 09:45:18 +02:00
Stephan
4a442f3829
cleanup use
2020-06-29 12:30:10 +02:00
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
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
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
19db19b010
add test for untracked files in stash bug ( #130 )
2020-06-15 23:40:09 +02:00
Stephan Dilly
b4a466876e
Fix textinput cursor was not reset after msg.clear
2020-06-15 12:09:22 +02:00
Stephan Dilly
602257f114
simplification and fix staging hunks in untracked file
2020-06-15 01:32:39 +02:00