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

Pug: Pasting re-indents the whole template above #118

Open
someonewithpc opened this issue May 16, 2022 · 1 comment
Open

Pug: Pasting re-indents the whole template above #118

someonewithpc opened this issue May 16, 2022 · 1 comment

Comments

@someonewithpc
Copy link

someonewithpc commented May 16, 2022

When editing Vue template lang="pug", pasting/yanking causes the whole template to be messed up above point. Specifically, it looks like each line gets indented once

p
  | Foo
  a
p
  | Bar
  a

becomes

p
  | Foo
  a
    p
      | Bar
      a
      a

When point is at a and I press M-w RET C-y

This doesn't happen with M-y (helm-show-kill-ring)

Not sure if this is an issue with vue-mode, or pug-mode, but in just pug-mode, this issue doesn't happen.

C-h k C-y

C-y runs the command yank (found in global-map), which is an
interactive compiled Lisp function in ‘simple.el’.

C-h m

Enabled minor modes: Anzu Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Clean-Aindent Column-Number
Delete-Selection Electric-Indent File-Name-Shadow Flycheck Font-Lock
Global-Anzu Global-Eldoc Global-Flycheck Global-Font-Lock
Global-Undo-Tree Helm Helm-Minibuffer-History Line-Number Mmm
Mouse-Wheel Override-Global Projectile Shell-Dirtrack Show-Paren
Smartparens Smartparens-Global Tooltip Transient-Mark Undo-Tree
Volatile-Highlights Windmove Xterm-Mouse

(Information about these minor modes follows the major mode info.)

vue[Pug] mode defined in ‘pug-mode.el’:
Major mode for editing Pug files.

@someonewithpc
Copy link
Author

This also happens in the JavaScript portion

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

No branches or pull requests

1 participant