RepositoryEmacs LispCACanada
jamescherti

jamescherti/kirigami.el

kirigami.el, a unified method to fold and unfold text in Emacs: outline, outline-indent, org-mode, markdown-mode, gfm-mode, vdiff, hideshow, fold-this, ts-fold, treesit-fold, vimish-fold...

166stars
2forks
4issues
1views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: folding

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: code-folding

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: outlining

#1 Repository Của Tuần

🧩 kirigami.el: Gập và mở rộng văn bản thống nhất cho mọi chế độ trong Emacs

Một cách tiếp cận thống nhất để gập/mở rộng văn bản trong Emacs, hỗ trợ hơn 20 chế độ phổ biến.

kirigami.el là một gói Emacs Lisp cung cấp phương pháp thống nhất để gập và mở rộng văn bản trong Emacs, hỗ trợ đông đảo chế độ như outline-mode, org-mode, markdown-mode, vimish-fold, hideshow, treesit-fold... Tương thích với Emacs 26.3 trở lên.

✨ Điểm nổi bật

  • Lệnh thống nhất: Các lệnh như kirigami-open-fold, kirigami-close-fold, kirigami-toggle-fold hoạt động nhất quán ở mọi chế độ.
  • Chọn handler tự động: Kirigami tự động chọn phương pháp gập phù hợp theo chế độ hiện tại.
  • Danh sách gập mở rộng: Dễ dàng thêm hoặc tùy chỉnh phương pháp gập qua biến kirigami-fold-list.
  • Hỗ trợ đa nền tảng: Bao gồm outline-mode, org-mode, markdown-mode, ts-fold, vimish-fold, hide-ifdef-mode, và nhiều chế độ khác.
  • Ổn định cửa sổ: Giữ vị trí con trỏ không thay đổi khi gập/mở rộng.
  • Tăng cường org-mode: Hỗ trợ gập/mở rộng khối nguồn (#+begin_src), ngăn (drawer) và kết quả (#+RESULTS:) trong org-mode.
  • Giữ nguyễn heading: Khi gập outline, các heading cùng cấp vẫn hiển thị.
  • Hook tùy biến: kirigami-pre-action-predicates và kirigami-post-action-functions cho phép tùy chỉnh hành vi trước/sau khi gập.

💡 Vì sao đáng chú ý

Thay vì cần cấu hình phím gập riêng cho từng chế độ, kirigami giúp người dùng chỉ cần thiết lập một lần và sử dụng nhất quán ở mọi nơi. Đặc biệt, kirigami không chỉ là lớp bao đệm truyền thống — nó còn cải tiến hành vi gập trong các chế độ như outline, org-mode và markdown-mode, xử lý các trường hợp phức tạp như gập sâu hoặc mở rộng con trỏ.


#EmacsLisp #CodeFolding #org-mode #markdown-mode #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryEmacs Lisp
jamescherti/outline-indent.el

Outline-indent: Indentation based Folding for Emacs (Supersedes legacy packages such as origami.el and yafolding.el)

148
Oct 25, 2026
RepositoryEmacs Lisp
karthink/gptel

A simple, extensible LLM client for Emacs

3.6k
Oct 18, 2026
RepositoryEmacs Lisp
xenodium/chatgpt-shell

A multi-llm Emacs shell (ChatGPT, Claude, DeepSeek, Gemini, Kagi, Ollama, Perplexity) + editing integrations

1.2k
Sep 18, 2026
RepositoryJavaScript
200ok-ch/organice

An implementation of Org mode without the dependency of Emacs - built for mobile and desktop browsers

2.7k
Oct 10, 2026
RepositoryShell
lujun9972/emacs-document

translate emacs documents to Chinese for convenient reference

1.5k
Mar 21, 2025
RepositoryEmacs Lisp
syl20bnr/spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!

24.5k
Oct 26, 2026
RepositoryEmacs Lisp
doomemacs/core

An Emacs framework for the stubborn martian hacker

22.8k
Oct 2, 2026
RepositoryEmacs Lisp
bbatsov/prelude

Prelude is an enhanced Emacs 29.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.

5.3k
Oct 2, 2026
RepositoryEmacs Lisp
emacs-lsp/lsp-mode

Emacs client/library for the Language Server Protocol

5.1k
Oct 20, 2026