[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold 9be3f5b086 034/417: Update readme
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold 9be3f5b086 034/417: Update readme |
Date: |
Mon, 1 Jul 2024 10:02:08 -0400 (EDT) |
branch: elpa/treesit-fold
commit 9be3f5b08637956336d1f1155eae30a2774fe904
Author: JenChieh <jcs090218@gmail.com>
Commit: JenChieh <jcs090218@gmail.com>
Update readme
---
README.md | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/README.md b/README.md
index dcdd55d86c..7dd8be3886 100644
--- a/README.md
+++ b/README.md
@@ -2,3 +2,39 @@
[![CI](https://github.com/jcs090218/tree-sitter-fold/actions/workflows/test.yml/badge.svg)](https://github.com/jcs090218/tree-sitter-fold/actions/workflows/test.yml)
# tree-sitter-fold
+> Code-folding using tree-sitter
+
+tree-sitter-fold builds on top of
[elisp-tree-sitter](https://github.com/emacs-tree-sitter/elisp-tree-sitter)
+to provide code folding base on the tree-sitter syntax tree.
+
+## Installation
+
+#### Methods 1. with `straight.el` and `use-package`:
+
+```el
+(use-package tree-sitter-fold
+ :straight (host github repo "junyi-hou/tree-sitter-fold"))
+```
+
+#### Methods 2. Manual
+
+```sh
+git clone https://github.com/jcs090218/tree-sitter-fold /path/to/lib
+```
+
+then in Emacs:
+
+```el
+(add-to-list 'load-path "/path/to/lib")
+(require 'tree-sitter-fold)
+```
+
+## Usage
+
+ | Commands | Description
|
+
|-------------------------------------|-----------------------------------------------------------------------------|
+ | `tree-sitter-fold-close` | fold the current syntax node.
|
+ | `tree-sitter-fold-open` | open all folds inside the current
syntax node. |
+ | `tree-sitter-fold-open-recursively` | open the outmost fold of the current
syntax node. Keep the sub-folds close. |
+ | `tree-sitter-fold-close-all` | close all foldable syntax nodes in
the current buffer. |
+ | `tree-sitter-fold-open-all` | open all folded syntax nodes in the
current buffer. |
- [nongnu] elpa/treesit-fold 442118d40d 140/417: Update doc, (continued)
- [nongnu] elpa/treesit-fold 442118d40d 140/417: Update doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ee4c694b01 143/417: Add toc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 60984e49c8 144/417: Fix headers toc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1ea3f22f9a 145/417: Update mag, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bb757d3afb 021/417: Add keywords, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9695389e7e 020/417: Merge header, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 98d7f91173 028/417: Use markdown readme instead, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a826237d17 024/417: Add ignore, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 23558465b6 033/417: Fix docstring, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 4fbe88f721 032/417: Remove compiled, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9be3f5b086 034/417: Update readme,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 5986e9e3c9 035/417: Remove code block, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 10cd5dfc38 025/417: Add license, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ec4c14c7e2 029/417: Add makefile for CI, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold a6a1500445 040/417: Add c and c++ support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold bf295cd834 041/417: Add more details, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6bdfc84909 043/417: Add js, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 1abf9923ee 042/417: Add js, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 41b39499aa 047/417: Allow warnings, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6ea9943f9d 048/417: Place CI badge under, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 05d2b87611 056/417: Add offset, ELPA Syncer, 2024/07/01