Use shift+k and shift+j to select prev/next of same kind#113
Use shift+k and shift+j to select prev/next of same kind#113pheki wants to merge 1 commit intoarxanas:mainfrom
Conversation
015cc71 to
285cd69
Compare
|
This seems like a good idea to me. In fact, we should probably deprecate page up and page down and add shift up / down as well. I think this PR needs two things before we can merge it:
Let's not remove page up and page down yet, but would you also add shift up and shift down keybinds? |
285cd69 to
e442a22
Compare
|
Ok, so there's a bit of a challenge here, if we just leave all 3 of them the line ends waaay too big (and if the terminal screen is too narrow for the dialog, it panics with: So I removed PgDn/PgUp from the dialog and it's smaller (although still bigger than other lines). There are alternatives, like separating next/prev (a bit less consistent with the rest of the menu), etc. Also, I just realized, is there a reason scroll is at PS.: I had no idea there was a help dialogue, when mentioned I tried |
|
There's actually another PR open to add a Help menu item to make it easier to find the help dialogue. I'll have to play around with this to see how easy it is to trigger a panic. Shortening the dialogue sounds reasonable to me. Maybe we should even just remove the page up / page down keybindings, but I guess we can hold off on it since we aren't planning to repurpose them. RE: ^y/^e, I'm not sure. Something to think about for sure. |
This would also fix jj-vcs/jj#5867
My workflow is basically:
f)j/l/shift+right/shift+l)Fn+Down/Fn+Upandspace(this is wherePageDown/PageUpare located on my keyboard)shift+hideally, but I was usingshift+rightbecause it wasn't working, see Fix shift+h and shift+l #112)f)j)It's all very messy, moving the hand all the time and switching between Fn and Shift gets very confusing
With this my workflow becomes:
f)j/l/shift+l)shift+j/shift+kandspaceshift+h)f)j)A lot simpler! Just
shiftand the main keyboard keys.I opened it separately from #112 as that one is just a bugfix, probably easier to be reviewed and merged than this one.