Commits
- Commit:
a6d37facd3db72c084380ebec6d6160ad8ee4763
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add C-g/backspace key map to abort compound cmds
Problem reported by stsp: 9999j would tie up tog till completed. While here,
trim trailing whitespace in tog.1 and make C-g alias existing backspace abort
key map for search and G in log view.
ok op@ and stsp@
- Commit:
49b24ee54927319519e1a84959f9f4040f4dc16e
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: expand horizontal split support to all views
With this, hsplits are now available to the same parent/child view combinations
as vsplits. Includes OB1 log truncation fix from op@ that was reported by stsp.
ok stsp@
- Commit:
f0032ce63b4f4f035e5f7894a406a96931f99f3f
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: remove count prefix timeout and bold output
Suggested by naddy. block till non-numeric input is entered, and don't echo in
bold.
ok naddy@ op@ and stsp@
- Commit:
76364b2d0d2a4cbd30e348da2a4330a2137ee86e
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
unconditionally set x/y pointers in view_get_split()
suggested by and ok op@
- Commit:
917d79a766c47414055c6901624816a41f13597b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make the diff algorithm used by 'tog diff' and 'tog blame' configurable
ok jamsek
- Commit:
4b752015b5208a96c2d1b6c1c6b8589884b8b2b6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch 'tog diff' and 'tog blame' to Myers diff for speed
Make the choice of diff algorithm configurable by diff API users.
The got and gotweb programs keep using Patience diffs which are
prettier than Myers. But tog should be as fast as possible since
it is being used interactively. If performance of Patience diff
gets improved later we can consider switching tog back over to it.
ok tracey jamsek
- Commit:
0dca135e7628142c56b3f71c3b5eb875f4fe6c7f
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: fix C-d and G log view keymaps in horizontal split
Account for the border so we don't scroll offscreen, and don't unset the
load_all flag till all commits have been loaded so we take the correct path
in log_move_cursor_down().
ok stsp@
- Commit:
24b9cfdc78b2ec3ec3025ac9a63370ef72ff63fb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix fullscreen / split-screen toggle in tog
ok jamsek
- Commit:
e6e73e5504113b6c75f1b2e3dec3e22af8f41996
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
move remaining got_opentemp's out of blame. ok op@
- Commit:
9b058f456d15d60a89334ce3e7f0a7c22e182c55
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: implement support for horizontal splitscreens
Enable all main views to open primary child views in a horizontal split:
log -> diff
tree -> blame
blame -> diff
ref -> log
Support is yet to be expanded to nested child views and key maps for
manipulating split type and size.
ok op@ and stsp@
- Commit:
b880cc75ed8a91d3ed8ddb051aa4ea4e2b7314c0
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: refactor log cursor movement in prep for hsplit
Simplify the log input handler by moving (page)up/down and home/end logic
into helper routines as we need to perform some checks on these cases when
navigating the log view in horizontal splits.
ok op@ and stsp@
- Commit:
c71ed39a66ed8e3aeaa13e76fce179b7bf6efec6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix split-screen issue in tog when moving focus from child view to parent view
Reported by jamsek:
$ tog # term wide enough to vsplit
return # open commit
f # fullscreen commit
tab # should go to fullscreen log, but it splits the screen
fix ok jamsek
- Commit:
4dd27a7290cd557f7db7d0b5d647d00157e7f82f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix recent regression in tog where split view was not restored after resize
ok jamesk
- Commit:
f9d376997dd2e84bf84c3c9a4da842d1b5565e9d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move got_opentempfd() out of lib/diff.c again
ok tracey
- Commit:
1b484788fec38ce9936267c176e77f653d749b8d
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
move got_opentempfd out of blame_open ok stsp@ jrick@
- Commit:
eb81bc23c735e8aa9eaee796a230c7d7c76657ba
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
move got_opentempfd out of open_blob. ok stsp@
- Commit:
c301e4ed7f25d48be4d36d791f90cac50b0be419
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: echo count prefix when entering compound key maps
like less(1), echo the digits as they're typed.
suggested by and ok op@ stsp@
- Commit:
8469d82143a591d423c000c47c63bababe6f5716
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
always show commit or tree IDs in diff header, in order to help 'got patch'
The idea is that got patch can simply look for a line such as:
commit - abcde1234567...
to find the merge base commit ID to show in diff3 conflict markers.
got log -p now displays commit IDs in its diff header, instead ofl
tree or blob IDs.
ok op@
- Commit:
336075a42a5ae0fa322db734c481d21998e82bb8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
build with -Wmissing-prototypes
ok stsp@
- Commit:
640cd7ff31ef05df4f6394c8792925b7dd0b8c7c
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: prefix mvmt keymaps with count modifier like vi(1)
Enable compound commands for all movement keymaps (e.g., hjkl, bfdu). The
optional prefixed count determines how many times the movement is performed;
for example, '123j' (move 123 lines down) or '4f' (scroll 4 pages down).
Counts are ignored if preceding non-movement and some singular movement
operations (e.g., 't', 'r', 'ret', '/', '$', 'G', 'g').
ok stsp@
- Commit:
63ba1a3a6f40953d1636e718c0e0000a3d626159
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix `limit' accounting in draw_commit
if the child view is fullscreen we don't need to subtract one, because
no vborder is drawn.
ok Mark Jamsek
- Commit:
48bb96f04b6f67bbc78ae9526830dbf20e84ef7d
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
tog: make SPACE page down in all views
ok op@, Mark Jamsek
- Commit:
6131ff18e81056001a823f913094a92c10580cba
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
fix fullscreen view regression introduced in 0dbbbe90fd
When cycling from a child view in fullscreen, the parent view is opened in
a splitscreen with no border instead of fullscreen. Check the view mode when
cycling between views and resize parent dimensions accordingly.
ok op@
- Commit:
6141756554c6ee1a8a23728658279ef5e16262a0
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
alias C-b/C-f to scroll page back/forward with b/f
Suggested by naddy. Remap 'f'ullscreen to 'F', and blame view key maps 'b' and
'B' to 'c' and 'C', respectively, per stsp's and naddy's suggestion. While
here, remove trailing whitespace.
ok naddy@
- Commit:
f704b35c7dbaaf8f3d4c7ee8b219e027d00816f2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
small grammar and accuracy fixes in a comment