[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typst-ts-mode 4b36b9088d 177/246: fix: return on item node
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typst-ts-mode 4b36b9088d 177/246: fix: return on item node who has more than 2 children |
Date: |
Fri, 14 Feb 2025 16:55:13 -0500 (EST) |
branch: elpa/typst-ts-mode
commit 4b36b9088d514b276094a26c40b16c686c3a3093
Author: Meow King <mr.meowking@anche.no>
Commit: Meow King <mr.meowking@anche.no>
fix: return on item node who has more than 2 children
---
typst-ts-editing.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/typst-ts-editing.el b/typst-ts-editing.el
index d9fc4365a7..827c6cd23f 100644
--- a/typst-ts-editing.el
+++ b/typst-ts-editing.el
@@ -17,6 +17,9 @@
;;; Commentary:
+;; For item node, it's recommended to use `+' rather than `<num>.'. Operations
+;; for `<num>.' may not be implemented comprehensively.
+
;;; Code:
(require 'outline)
@@ -122,7 +125,7 @@ When prefix ARG is non-nil, call global return function."
((and (eolp)
(setq node
(typst-ts-core-get-parent-of-node-at-bol-nonwhite))
(equal (treesit-node-type node) "item")
- (not (string= (typst-ts-core-node-get node '((child -1 nil)
(type))) "linebreak")))
+ (length= (treesit-node-children node) 2))
(if (> (treesit-node-child-count node) 1)
(typst-ts-mode-insert--item node)
;; no text means delete the item on current line
- [nongnu] elpa/typst-ts-mode 364d32c37d 119/246: refactor: Typst watch is now a minor mode., (continued)
- [nongnu] elpa/typst-ts-mode 364d32c37d 119/246: refactor: Typst watch is now a minor mode., ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode f24e51271d 121/246: chore: doc, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode b18c2a9f3b 126/246: refactor!: change some customizable options' name for `typst-ts-watch-mode`, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 3bb24d0990 133/246: doc: Added block editing to README.md, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 6d94bb6efb 137/246: feat: add edit-indirect support, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 430f0b8d64 143/246: fix: called-interactively-p misses one argument, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode f5de7d33d1 151/246: feat: tinymist eglot support, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 57616b137b 165/246: fix: corfu completion issue, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 60ae3bf967 166/246: doc: fix a nitpick, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode b3f0a9e8a0 170/246: feat: add `typst-ts-mc-export-to-markdown` command, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 4b36b9088d 177/246: fix: return on item node who has more than 2 children,
ELPA Syncer <=
- [nongnu] elpa/typst-ts-mode fab310f9a0 183/246: refactor: remove autoload on functions that depend on typst-ts-mode, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2a3fb8e577 184/246: fix: maarkup-extended font feature, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode aee8ff090c 244/246: doc: add Contribute information on README, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 96d82bc4ba 149/246: refactor: separate editing commands into another file, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode d8c64a99f4 150/246: docs: fix typo, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode ed22e9ddc3 164/246: doc(README): update co-maintainer information, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2132974643 169/246: chore: remove unneeded functions, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 6a1ff662e1 194/246: fix(editing): typst-ts-mode-return on item newline issue, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 075b450e44 199/246: chore, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode a6e6940956 202/246: refactor: do not `kill-line` because it will be in kill-ring, ELPA Syncer, 2025/02/14