Skip to content
New issue

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

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

Already on GitHub? # to your account

block visual mode: literal tabs treated oddly #372

Open
1 of 2 tasks
fsiler opened this issue May 13, 2024 · 0 comments
Open
1 of 2 tasks

block visual mode: literal tabs treated oddly #372

fsiler opened this issue May 13, 2024 · 0 comments

Comments

@fsiler
Copy link

fsiler commented May 13, 2024

Is this a hackmd.io issue?

Read our Official tutorial

It's on https://hackmd.io/c/tutorials/

或是中文版 https://hackmd.io/c/tutorials-tw/

What's the problem

When in vim mode, Visual Block mode (ctrl+v) incorrectly manipulates tab characters as if they are of width one, rather than the width visually exposed.

Current behaviour

Screenshot (optional)
image

Provide steps to reproduce:

  1. Create a document, such as a table, consisting of both tabs and spaces
  |
\t|
  1. set to use Vim mode and enter command mode (esc)
  2. gg to go to the top
  3. ctrl+v to enter visual block mode
  4. G to go to the bottom row
  5. A to append. Notice that rather than a clean block selection, a jagged edge is selected.

example note

Expected behaviour

Tabs should be treated with their rendered width, not width one.

Environment

I use HackMD on:

Desktop

  • OS: macOS and Windows
  • Browser: Firefox
  • Browser Version: 125

Mobile
n/a

Additional context

n/a

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant