Commit Briefs

634cb45445 Thomas Adam

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@


444d532558 Thomas Adam

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@


fa502711bb Thomas Adam

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@


244157854d Thomas Adam

unconditionally set x/y pointers in view_get_split()

suggested by and ok op@


adf4c9e089 Thomas Adam

make the diff algorithm used by 'tog diff' and 'tog blame' configurable

ok jamsek


25ec70067d Thomas Adam

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


068ab281f5 Thomas Adam

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@


e44940c3e5 Thomas Adam

fix fullscreen / split-screen toggle in tog

ok jamsek


9117a7b739 Thomas Adam

move remaining got_opentemp's out of blame. ok op@


a5d43cac4c Thomas Adam

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@


b31f89ff09 Thomas Adam

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@


1827fdb750 Thomas Adam

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


4918811ff2 Thomas Adam

fix recent regression in tog where split view was not restored after resize

ok jamesk


19a6a6b5ee Thomas Adam

move got_opentempfd() out of lib/diff.c again

ok tracey



f4ae6ddb59 Thomas Adam

move got_opentempfd out of open_blob. ok stsp@


4d27f68044 Thomas Adam

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@


9b4458b410 Thomas Adam

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@


ef20f54204 Thomas Adam

build with -Wmissing-prototypes

ok stsp@


07b0611c84 Thomas Adam

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@


748b46b9f4 Thomas Adam

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


4c2d69cb28 Thomas Adam

tog: make SPACE page down in all views

ok op@, Mark Jamsek


b65b3ea056 Thomas Adam

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@


1c5e5faa63 Thomas Adam

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@


1f4d51624c Thomas Adam

small grammar and accuracy fixes in a comment