AdamNiederer / AdamNiederer/vue-mode

Pug: Pasting re-indents the whole template above

Aperta
#118 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Emacs Lisp
Stelle
341
Fork
59
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.