AdamNiederer / AdamNiederer/vue-mode

Pug: Pasting re-indents the whole template above

Aberta
#118 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Emacs Lisp
Estrelas
341
Forks
59
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Reproduce the M-w, RET, C-y sequence in vue[Pug] mode and compare it with standalone pug-mode, where the issue does not occur. Start with the vue[Pug] mode defined in pug-mode.el and the global-map C-y yank command; done means pasting no longer re-indents or duplicates the template above point.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
emacs, emacs-lisp
Domínio
tooling
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.