Commit graph

79 commits

Author SHA1 Message Date
Stephan Dilly
546c7f3072
fix some potentials for errors to bubble up (#547)
* fix some potentials for errors to bubble up (#490)
* fix async diff failing panic
2021-02-24 21:54:27 +01:00
Stephan Dilly
bde8eb8a7b Revert "Support mouse scrolling (#306)"
This reverts commit 457f644f30.
2021-02-24 11:38:30 +01:00
Richard Menzies
457f644f30
Support mouse scrolling (#306)
Linked to #226
2021-02-23 11:03:50 +01:00
Stephan Dilly
337ebb6656 fix new https://rust-lang.github.io/rust-clippy/master/#unnecessary_wraps clippy warnigns in nightly 2020-12-08 00:59:14 +01:00
Stephan Dilly
bd00b3e4b8 fix scrollbar (#350) 2020-10-31 12:32:20 +01:00
Christoph Rüßler
04bd45e641 Use helper binary for clipboard access (#262)
Use `clip` on Windows, `pbcopy` on MacOX, `xclip` on Linux.

- Remove dependency on `clipboard`
- Remove feature `clipboard`
2020-10-10 23:31:40 +02:00
Richard Menzies
93168639fe
Bump tui: 0.9 -> 0.12 (#289) 2020-10-08 09:56:36 +02:00
Stephan Dilly
56959e6596 do not highlight selection in diff when not focused (closes #270) 2020-09-02 11:11:17 +02:00
Stephan Dilly
e5c38e8d4a
revert clipboard feature on linux to fix static linux binary build (#261) 2020-09-01 01:36:38 +02:00
Stephan Dilly
40e9194b5d fix wrong hunk highlighting after arrow-down at end of diff (closes #249) 2020-08-28 18:53:01 +02:00
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
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
Stephan Dilly
a54fbf7f63 visualize pending load of a diff (#160) 2020-07-18 12:21:18 +02:00
Stephan
4a442f3829 cleanup use 2020-06-29 12:30:10 +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
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
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
112b5c888c better scrolling in diff (closes #52) 2020-06-12 17:36:06 +02:00
Stephan Dilly
702415c40d
full commit detail popup (#113)
see #80
2020-06-09 13:30:17 +02:00
Stephan Dilly
f96343061c add clippy::nursery checks 2020-05-31 01:04:04 +02:00
Stephan Dilly
732690da1d improve performance on diffing giant files (#96) 2020-05-29 09:44:11 +02:00
Stephan Dilly
0bad5503bd fix error when showing diff of giant file - trading error for dog slow drawing (closes #96) 2020-05-29 09:32:59 +02:00
Mehran Kordi
4c17660956
anyhow integration (closes #77) 2020-05-23 17:12:38 +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
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
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
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
7e8e3a0bd5 show tab button in help and fix help for diff (fixes #48) 2020-05-10 14:37:49 +02:00
Stephan Dilly
d332e7e586 refactor key handling in diff 2020-05-10 13:24:54 +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
6bb54cfa8c support home/end to jump up/down (#43) 2020-05-09 22:55:02 +02:00
Stephan Dilly
87d13f84d8 show diffed files path in title 2020-05-07 17:06:02 +02:00
Stephan Dilly
aa1c54d366 fix mix up in label for add/remove hunk 2020-04-21 22:31:15 +02:00
Stephan Dilly
69afc129c7 fix line ending drawing CRLF
(fixes #21)
2020-04-16 16:41:04 +02:00