Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visual-line-mode navigation should move logical lines on up/down keys #6616

Closed
istathar opened this issue Jul 17, 2016 · 5 comments
Closed
Labels
- Bug tracker - Fixed in develop stale marked as a stale issue/pr (usually by a bot)

Comments

@istathar
Copy link

Description

At first I thought visual-line-mode didn't work; no matter how many times I toggled, manually invoked, etc, in a text document with long lines (aka paragraphs) the cursor kept jumping between paragraphs, not [visual] lines.

Then randomly it was working, and I couldn't figure out what the difference was... until I discovered that visual line mode works when vi keys are used (h,j,k,l) but doesn't work when arrow keys (up,down) are used.

Reproduction guide

  • Start Emacs
  • Edit a document with long lines (paragraphs)
  • Enable visual line mode with SPC t L
  • Move down with arrow keys and cursor jumps paragraphs. Use vi keys and it moves single (logical) lines correctly.

Expected behaviour:

I would expect navigation vertically across paragraphs in visual line mode to be by logical line regardless of whether navigating up/down via j/k or up/down.

Based on discussion in a few other issues #681 and #6177 it seems like the settings changed by toggling visual line mode might need to have Up and Down added. Hopefully it's that simple.

System Info

  • OS: gnu/linux
  • Emacs: 25.0.94.1
  • Spacemacs: 0.105.21
  • Spacemacs branch: master (rev. 0283f64)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion emacs-lisp git markdown spell-checking version-control intero)

AfC

@schuach
Copy link

schuach commented Jul 25, 2017

Please reopen this issue, as I am experiencing the same problem. As I am using a nonstandard keyboard layout, so h, j, k, l is no real option for me. Problem description same as above.

System Info

  • OS: gnu/linux
  • Emacs: 25.2.2
  • Spacemacs: 0.200.9
  • Editing style: vim
  • Completion: helm
  • Layers: (csv windows-scripts helm auto-competion finance emacs-lisp org markdown mu4e python themes-megapack spell-checking)

Thanks,
Stefan

@d12frosted
Copy link
Contributor

It is open, though inactive.

@duzaichuan
Copy link

+1

@smile13241324
Copy link
Collaborator

I have merged the fix from duianto, @afcowie would you mind checking whether this fixed your issue.

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Nov 3, 2020
@github-actions github-actions bot closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Fixed in develop stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

6 participants