qword 1.1.18 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,14 @@
1
+ 2026.09.08, v1.1.20
2
+
3
+ fix:
4
+ - 65eb967 indent after p
5
+
6
+ 2026.09.08, v1.1.19
7
+
8
+ fix:
9
+ - eb386eb client: indent after paste
10
+ - c3e8704 client: options: vim: correct selection not empty test assertion
11
+
1
12
  2026.09.07, v1.1.18
2
13
 
3
14
  feature:
package/client/create.js CHANGED
@@ -20,7 +20,6 @@ import {
20
20
  themeExtension,
21
21
  languageExtension,
22
22
  } from './options/options.js';
23
- import {normalizeVimPaste} from './options/vim/keep-indent-after-vim-paste.js';
24
23
  import {markField, lineField} from './decorations.js';
25
24
 
26
25
  export function createEditor(element, options = {}) {
@@ -59,7 +58,6 @@ export function createEditor(element, options = {}) {
59
58
  langCompartment.of(languageExtension(mode)),
60
59
  syntaxHighlighting(highlightStyle),
61
60
  indentOnInput(),
62
- normalizeVimPaste,
63
61
  indentUnit.of(' '),
64
62
  ...lineNumbers
65
63
  ? [
@@ -13,7 +13,6 @@ import {
13
13
  } from '@codemirror/commands';
14
14
 
15
15
  import {keepIndentAfterEnterVim} from './vim/keep-indent-after-enter-vim.js';
16
- import {normalizeVimPaste} from './vim/keep-indent-after-vim-paste.js';
17
16
 
18
17
  const enterKeepIndent = {
19
18
  key: 'Enter',
@@ -22,7 +21,7 @@ const enterKeepIndent = {
22
21
 
23
22
  export function keymapExtension(name) {
24
23
  if (name === 'vim')
25
- return [vim(), keepIndentAfterEnterVim, normalizeVimPaste];
24
+ return [vim(), keepIndentAfterEnterVim];
26
25
 
27
26
  if (name === 'emacs')
28
27
  return keymap.of([...emacsStyleKeymap, indentWithTab]);
@@ -30,7 +30,7 @@ export const keepIndentAfterEnterVim = EditorState.transactionFilter.of((tr) =>
30
30
  tr.changes.iterChanges((_fromA, _toA, _fromB, _toB, inserted) => {
31
31
  const text = inserted.toString();
32
32
 
33
- if (text.includes('\n'))
33
+ if (text === '\n')
34
34
  insertedNewline = true;
35
35
 
36
36
  if (text.endsWith(`\n${indent}`))