[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typst-ts-mode 78e6ec9921 207/246: fix: #15 heading inserti
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typst-ts-mode 78e6ec9921 207/246: fix: #15 heading inserting should still work |
Date: |
Fri, 14 Feb 2025 16:55:32 -0500 (EST) |
branch: elpa/typst-ts-mode
commit 78e6ec9921f4dcc82c15b51e7a5c82b14a1def50
Author: Huan Nguyen <nguyenthieuhuan@gmail.com>
Commit: Huan Nguyen <nguyenthieuhuan@gmail.com>
fix: #15 heading inserting should still work
---
typst-ts-editing.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/typst-ts-editing.el b/typst-ts-editing.el
index 1cb3c75884..3af680df9c 100644
--- a/typst-ts-editing.el
+++ b/typst-ts-editing.el
@@ -92,14 +92,15 @@ the `GLOBAL-MAP' (example: `right-word')."
The new heading is created after the ending of current heading.
Using ARG argument will ignore the context and it will insert a heading
instead."
(interactive "P")
- (let ((node (treesit-parent-until
- (treesit-node-at (line-beginning-position))
- (lambda (node)
- (string= "item" (treesit-node-type node))))))
+ (let ((item-node (treesit-parent-until
+ (treesit-node-at (line-beginning-position))
+ (lambda (node)
+ (string= "item" (treesit-node-type node)))))
+ (node (typst-ts-core-get-parent-of-node-at-bol-nonwhite)))
(cond
(arg (typst-ts-mode-insert--heading nil))
- (node
- (typst-ts-mode-insert--item node))
+ (item-node
+ (typst-ts-mode-insert--item item-node))
(t
(typst-ts-mode-insert--heading node)))))
- [nongnu] elpa/typst-ts-mode 3d373bba6f 095/246: fix: fix outline recognization error when section indent offset is not nil, (continued)
- [nongnu] elpa/typst-ts-mode 3d373bba6f 095/246: fix: fix outline recognization error when section indent offset is not nil, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2d25a0ac3f 097/246: refactor: `typst-ts-mode-insert--item`, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 893430dc14 100/246: merge `develop` branch, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode d8d36ba3e9 110/246: doc: update README.md, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 42c080fa64 122/246: fix(compabiilty): Emacs29 treesit-lparser-list -> typst-ts-utils-parser-list, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode dc45e44e38 153/246: doc: update README, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode d614af3433 163/246: fix: don't add lsp configuration by default to respect user's custom configuration, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 6b54ff7084 175/246: refactor: remove `typst-ts-mode--item-on-line-p` function, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode e2309a468c 191/246: fix: typst-ts-mode-cycle, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode eb988ca372 187/246: fix: multiline item indentation issue, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 78e6ec9921 207/246: fix: #15 heading inserting should still work,
ELPA Syncer <=
- [nongnu] elpa/typst-ts-mode 322b52e3cd 209/246: fix: typst-ts-mode-return delete new added line, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode b1deb2d667 214/246: feat: #16 code for reordering list items, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 619acd01e2 220/246: Merge branch 'feat-16/list-item-reordering' into develop, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode a451dcaa67 223/246: chore, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 131c404ee0 232/246: Bound `C-c C-C` to `typst-ts-compile-and-preview`, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 07c6de2c46 240/246: doc: clarify with comment what this is #33, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode f0e8633147 152/246: add notice for the migration (from sourcehut to codeberg), ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 93f93c85cb 167/246: feat: update raw block language tags, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 0d2b61f320 173/246: feat: make `url` fontification inside `markup-standard` feature, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 3394ec08dc 179/246: chore, ELPA Syncer, 2025/02/14