Commit graph

855 commits

Author SHA1 Message Date
extrawurst
2377924f9c use popup specific up/down cmds (fixes #1831) 2023-08-26 13:45:15 +02:00
extrawurst
7558d25e25 cleanup 2023-08-23 19:40:24 +02:00
extrawurst
a5b898c718 fix potential panic 2023-08-22 13:19:17 +02:00
extrawurst
9e69f251a8 do not show spacing selection in non-highlight 2023-08-22 13:19:06 +02:00
extrawurst
30211b2a6b allow visualizing enable state in text
this allows us to show whether the text inpout is currently selected in search popup
2023-08-22 13:01:50 +02:00
Ammar Abou Zor
306ff91afa
Search popup: allow navigation with non arrow keys (#1816) 2023-08-22 12:47:18 +02:00
extrawurst
77bb69a162 fix ci 2023-08-21 12:54:56 +02:00
extrawurst
0cf041bb98 fix backgrounding search thread 2023-08-21 12:19:07 +02:00
extrawurst
cde1c7f883
Search commits by author (#1822) 2023-08-21 12:11:53 +02:00
extrawurst
d253022f13 add missing command for new commit search in log 2023-08-21 11:29:02 +02:00
extrawurst
3c5131ad27
commit log filtering (#1800) 2023-08-18 17:19:18 +02:00
extrawurst
809281f1ab clippy fix 2023-08-16 12:43:41 +02:00
extrawurst
8437b76f99 fix nightly clippy 2023-08-12 18:50:19 +02:00
extrawurst
798f990cd3 changelog and notes for #1506 2023-08-12 18:45:16 +02:00
Kieran Siek
bf31f20657
Fix external editor delay. (#1579)
The default polling rate of 1 second causes a 1 second delay when
queuing the event to launch the external editor, causing latency.

However, a slower polling helps reduce CPU usage, so let's
have a short polling duration as long as there are input events, and
slow poll otherwise.

Since the external editor among other components (not tested) is always
launched in response to an input event, we reduce the latency to ~100ms,
which is the fast poll duration.

Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2023-08-12 18:28:59 +02:00
extrawurst
6ec647710d visualize empty line in diff better (closes #1359) 2023-08-11 16:44:50 +02:00
extrawurst
9eb8d470a4 optimize logfilter to not check stashes
logfilter using `get_commit_diff` on each entry lead to a lot of unneeded calls to `get_stashes` and `is_stash_commit` which should be not even needed for file history log entries. this is not happening now anymore
2023-08-11 11:38:21 +02:00
extrawurst
7400d5bc68 more logging/diagnostics when repo cant be opened 2023-08-10 15:39:39 +02:00
extrawurst
53988ba4e0
fix hunk edits with non standard diff options (#1803) 2023-08-10 14:48:36 +02:00
extrawurst
495d4d5da7 do shell expansion for commit.template
more error logging around commit-template loading
2023-08-09 19:02:24 +02:00
Niklas Dießner
403c5aabd9
Switch to bwrap (#1792)
* switch from textwrap to bwrap
2023-08-09 16:00:35 +02:00
extrawurst
a87f66c131
switch back to dirs (#1783)
* switch back to `dirs`
2023-07-30 10:44:49 +02:00
Niklas Dießner
104e5bf62e
1751 follow symlink for keybinding config (#1767) 2023-07-29 23:04:53 +02:00
domtac
dba5206e46
Feat 1757 add signoff option (#1758) 2023-07-29 22:11:36 +02:00
extrawurst
b935df59a1 fix nightly build 2023-07-18 09:45:05 +02:00
Ammar Abou Zor
4682a1b75b
Make fuzzy find popup scrollable (#1734)
* Added: Make fuzzy find popup scrollable
* Fuzzy_find: Add scrollbar to matches list
* Update CHANGELOG
2023-07-08 12:29:47 +02:00
extrawurst
cb9cf3ad0c fix nightly builds
* update proc-macro2
* fix new warnings
2023-07-07 15:46:32 +02:00
UG
b4450f9bc3
fixed wrong fuzzy-find highlight in long str (#1731)
* fixed wrong highlight in long str
* support multibyte characters
2023-07-06 21:15:08 +02:00
extrawurst
5c98e2fe76 print theme file path in log with mesages 2023-06-25 14:14:57 +02:00
Christoph Rüßler
3c9c266c01
Simplify theme overrides (#1652)
* Simplify theme overrides

Theme overrides are now loaded the same way key overrides are loaded.
The config file, `theme.ron`, does not have to contain a complete theme
anymore. Instead, it is possible to specify only the values that are
supposed to override their corresponding default values.

* Document breaking change in changelog
* Test that override differs from default
* Convert existing theme to patch
2023-06-25 14:09:40 +02:00
extrawurst
022b389146 fix char_count with utf8 chars (fixes #1726) 2023-06-20 18:04:27 +02:00
UG
e90e8dc536
FuzzyFindPopup for general use (#1672)
* replace BranchFindPopup with FuzzyFindPopup
* replace FileFindPopup with FuzzyFindPopup
2023-06-20 12:57:36 +02:00
hamflx
bfcf33fce4
feat: support 'n'/'p' key to move to the next/prev hunk. (#1723)
* feat: support 'n'/'p' key to move to the next/prev hunk.
* feat: auto scroll next/prev hunk into visible area.
* add unittest for VerticalScroll::move_area_to_visible.
2023-06-19 17:52:05 +02:00
kamillo
58e72cd22b
Add support for options handling in log and stashes views #1661 (#1675) 2023-06-19 15:40:26 +02:00
extrawurst
4f3be697d5 upgrade ratatui 2023-06-19 15:05:17 +02:00
extrawurst
7d5b7d2c38 clippy nightly fixes 2023-06-07 12:50:27 +02:00
pm100
2b3bc622d6 too many things skipped with !verify 2023-05-21 22:40:15 -05:00
pm100
aa4266cd1f fix double key input on windows due to crossterm 0.26 2023-05-14 14:01:25 -06:00
Christoph Rüßler
49cd7ea2db Fix file history for sizes <= 1200 entries 2023-05-04 15:49:21 +02:00
Christoph Rüßler
370aff5fcc
Default to tick-based updates (#1657)
* Default to tick-based updates

This commit reintroduces code that was previously removed in favor of a
notify-based update trigger. It turned out that notify-based updates can
cause issues in larger repositories, so tick-based updates seemed like a
safer default.

https://github.com/extrawurst/gitui/issues/1444
https://github.com/extrawurst/gitui/pull/1310

* Add FAQ entry for --watcher

* Remove --poll
2023-04-29 17:03:43 +02:00
UG
3a6f292bf5
add fuzzy finder in branch list (#1658)
* add branch_find_popup
* capital F for fetch in branchlist, f for find
* add command info of return

closes #1350
2023-04-21 23:03:35 +02:00
extrawurst
904885e001 tui -> ratatui
tui is not maintained anymore and it seems that ratatui is the successor: https://github.com/fdehau/tui-rs/issues/654
2023-04-19 14:46:09 +02:00
Christoph Rüßler
2554f04ace Don’t show upstream if commit is local branch head 2023-04-12 11:53:08 +02:00
Christoph Rüßler
3af256c75a Show remote branches in revlog 2023-04-12 11:53:08 +02:00
pm100
c1e3e978a2 fix test failure on nightly due to cef81dc 2023-04-12 06:39:53 +02:00
Remo Senekowitsch
63f230f0d1 fix freeze on copy with wl-copy 2023-03-07 18:50:09 +01:00
Louis Bourque
45bb8a71b5 Fix freeze on copy when xclip is installed on Linux 2023-03-05 12:44:01 +01:00
Antonio Yang
f8e1c26309
Fix dep struct patch (#1577) 2023-03-04 15:51:09 +01:00
extrawurst
01f6580125 Revert "Refactor key_list and remove key_list_file (#1511)"
This reverts commit 0fb1856d18.
2023-03-01 16:10:45 +01:00
extrawurst
2fa4c7932c fix race issue in revlog message fetching
sometimes messages appear empty because getting the revlog is so fast (empty repo) that no draw happened yet and so we do not know yet what size the view will have.
fixes #1473
2023-03-01 14:22:42 +01:00