Cursor moves to awkward position after enable visual-line-navigation
in orgmode
#16858
-
Description
After enable Reproduction guide 🪲
Observed behaviour: 👀 💔 Expected behaviour: ❤️ 😄 It's also okay to prevent moving right of System Info 💻
((auto-completion :variables auto-completion-enable-snippets-in-popup nil auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t)
better-defaults git treemacs
(org :variables org-enable-hugo-support t org-startup-indented t org-enable-sticky-header t)
osx multiple-cursors org
(shell :variables shell-default-height 30 shell-default-position 'bottom)
(spell-checking :variables spell-checking-enable-auto-dictionary t)
treemacs)
Backtrace 🐾
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hi @bebound, in my case I can use "h" to move to the left, but I have to press it twice. Have you tried to set inside the
The docs for this variable says that it defines "Whether movement commands respect ‘visual-line-mode’." This does not feel like spacemacs bug though, probably you may refer to the evil-org-mode package and search for similar issues reported there with regard of visual-line mode behaviour or create a new one. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
ok, in another buffer I could reproduce what you observe. Previously I was not able to get the cursor at the very end of the line, but when it is there it is indeed stuck and I can not use "h". I tried to switch to the emacs keybinding (C-z) and this problem does not exist there, only in evil-mode. Upd.: in |
Beta Was this translation helpful? Give feedback.
-
@bebound @alexey0308 can you give me a hint how you managed to get your cursor right of the ... in normal mode? I am really trying to but my cursor stops before the elipsis except when I switch to insert mode however when I switch back to normal mode and my cursor is right of the elipsis it automatically jumps to the left of it. With this behaviour this bug should not longer occur at all. Can you still reproduce the issue? If not it may have been fixed somewhere in between. |
Beta Was this translation helpful? Give feedback.
-
I cannot reproduce this either with up-to-date Emacs, org and evil. |
Beta Was this translation helpful? Give feedback.
-
Hi @smile13241324, I've just updated the packages and pulled the recent devel: |
Beta Was this translation helpful? Give feedback.
-
@alexey0308 Thank you! I can now reproduce the following:
But I cannot reproduce the original issue where h did not work at all before pressing l. In any case this seems to be caused by evil. Setting either |
Beta Was this translation helpful? Give feedback.
-
Than @alexey0308 and @fnussbaum I can finally reproduce your issue. However I think this is a configuration issue rather than a coding one. If someone activates visual line mode also evil-move-beyond-eol and evil-cross-lines as well as evil-respect-visual-line-mode can be activated though they impair a performance penalty which not all users will want to accept. I'll move this ticket to the FAQ session for others to find but would not change our code to always activate those settings. |
Beta Was this translation helpful? Give feedback.
Than @alexey0308 and @fnussbaum I can finally reproduce your issue. However I think this is a configuration issue rather than a coding one.
If someone activates visual line mode also evil-move-beyond-eol and evil-cross-lines as well as evil-respect-visual-line-mode can be activated though they impair a performance penalty which not all users will want to accept.
I'll move this ticket to the FAQ session for others to find but would not change our code to always activate those settings.