comparison tests/test-commit-interactive-curses.t @ 40253:682f73fa924a

crecord: make enter move cursor down to the next item of the same type Let's replace experimental.spacemovesdown with a separate key: Enter, since it wasn't used for anything in crecord. Not sure if '\n' works on Windows though. nextsametype() strictly only moves to items of the same type as the current item. This, for example, allows to go over individual lines in a diff and skip hunk and file headers (which would toggle multiple lines).
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 13 Oct 2018 11:52:30 +0200
parents 5abc47d4ca6b
children 1d99c9a5ccb0
comparison
equal deleted inserted replaced
40252:090e5f3900b7 40253:682f73fa924a
325 $ hg cat -r . x 325 $ hg cat -r . x
326 foo 326 foo
327 hello world 327 hello world
328 lower 328 lower
329 329
330 Check spacemovesdown
331
332 $ cat <<EOF >> $HGRCPATH
333 > [experimental]
334 > spacemovesdown = true
335 > EOF
336 $ cat <<EOF >testModeCommands
337 > TOGGLE
338 > TOGGLE
339 > X
340 > EOF
341 $ hg status -q
342 M b
343 M x
344 $ hg commit -i -m "nothing to commit?" -d "0 0"
345 no changes to record
346 [1]
347
348 Check ui.interface logic for the chunkselector 330 Check ui.interface logic for the chunkselector
349 331
350 The default interface is text 332 The default interface is text
351 $ cp $HGRCPATH.pretest $HGRCPATH 333 $ cp $HGRCPATH.pretest $HGRCPATH
352 $ chunkselectorinterface() { 334 $ chunkselectorinterface() {