nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.03k stars 134 forks source link

Allow using Tab for Folding and Ctrl-I for jumping forwards #474

Closed gerazov closed 8 months ago

gerazov commented 1 year ago

Does this feature exist in Emacs orgmode core?

N/A

Orgmode link

No response

Feature value

Using <Tab> for folding hijacks <C-i> for jumping forwards in the jumplist. This can be a hinderance when navigating large org files.

Since it's mapped to the same key in Terminal, one workaround is to check if there are forward jumps possible and then jump, and if none are available then folding can be applied like in thalesmello/tabfold.

Additional context

No response

Maltimore commented 8 months ago

This is fixed now with neovim adopting the kitty keyboard protocol: https://github.com/neovim/neovim/issues/14400

For this to work:

kristijanhusak commented 8 months ago

Hey @gerazov 👋🏻

You can either unmap it by setting org_cycle = false (https://github.com/nvim-orgmode/orgmode/blob/master/DOCS.md#org_cycle) or map it to something else.

gerazov commented 8 months ago

hey - I did remap to <Space><Space> for folding - it took a while to get used to it though :sweat_smile:

@Maltimore sounds good but I'm too dependant on tmux atm, maybe when I move to Zelij at some point in the future :+1: