Commits
- Commit:
2525dccb913c5e7f293cfcad103af7a761d32b34
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: fix sticky "loading..." status in log view hsplit
Don't request commits if the log has completed loading all commits. While here,
ensure the correct parent/child view requests commits when resizing a hsplit.
Reported by stsp:
$ tog
S # switch into hsplit mode
G # move to bottom and load all commits
Enter # open a diff showing the initial import commit
- # shrink the diff view by one line; alternatively use + to grow it
*log status stuck with "loading..." in the header*
ok stsp@
- Commit:
27187d45e7a2f096a06777e5ffde690e3c049490
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: only request commits when child hsplit increases
Fix bug introduced in 3c1dfe12b3 that fails to properly populate child log
views due to incorrect request_log_commits() calls: (1) when increasing the
bottom hsplit in a ref/log splitscreen; and (2) when reopening a child log
view after closing a resized child log view:
$ TOG_VIEW_SPLIT_MODE=h tog ref
return # open log view in bottom split
4+ # increase log (child/bottom) split
*new log lines are not populated*
q # close log view
return
*commits are not loaded*
ok stsp@
- Commit:
d9a7ab538a90fea0c81ac4c31fd196123baf4fd4
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: adjust view line offset when resizing hsplit
Squish bug that can move the selection cursor offscreen when resizing
horizontal splits due to bogus offset:
$ TOG_VIEW_SPLIT_MODE=h tog # 80x24
22j
return # open diff view in a hsplit
tab # focus log (top) split
10+ # increase top split by 10 lines
22j
return # open diff view in a hsplit
F # toggle fullscreen diff view
tab # focus log (parent) view in fullscreen
*selection cursor will be off the bottom of the screen*
ok stsp@
- Commit:
c0f61fa4e4ee942c16faa19eddc4b5362287b12c
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: enable moving to prev/next blame line in diff view
Blame/diff view counterpart of log/diff <,.> key maps to traverse commits
corresponding to each line of the annotated file from the diff view. Includes
fix from stsp@ to work while the file is still annotating.
ok stsp@
- Commit:
7532ccdaec478d70fa5e613b9cda974c132faa6d
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: make 'S' switch split mode irrespective of the view
Always switch internal split state and redraw view according to the
constraints of the new mode.
suggested by and ok stsp@
- Commit:
5629093afb1a64a305b4f4fd4b47a18eb05c1480
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'tog log' error out in shallow Git repositories instead of hanging
ok op@
- Commit:
3c1dfe12b3f3eae6dc7ef4762772e849794296c5
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: implement +/- keymaps to resize the focussed split
Increase/decrease the currently active split. New dimensions persist for the
tog session, irrespective of subsequent closures and new child views.
suggested by and ok stsp@
- Commit:
d2366e29426c9d2c88244cf41683f6574928caff
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: implement global 'S' key map to switch split mode
If in a vertical (horizontal) split, switch to horizontal (vertical), and make
new split mode persist.
ok op@
- 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@