https://github.com/wsdjeg/mdctags.rs
https://github.com/wsdjeg/mdctags.rs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wsdjeg/mdctags.rs
- Owner: wsdjeg
- License: mit
- Created: 2020-03-15T09:06:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T03:02:31.000Z (over 3 years ago)
- Last Synced: 2025-02-28T08:33:41.490Z (3 months ago)
- Language: Shell
- Size: 39.1 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## mdctags
> tags for markdown file
- [Screenshot](#screenshot)
- [Installation](#installation)
- [Config mdctags for tagbar](#config-mdctags-for-tagbar)
- [Thanks](#thanks)
- [License](#license)### Screenshot

### Installation
```sh
git clone https://github.com/wsdjeg/mdctags.rs.git
cd ./mdctags.rs
cargo build --release
cp ./target/release/mdctags /path/to/your/bin
```If you have cross, you can cross-compile.
```sh
git clone https://github.com/wsdjeg/mdctags.rs.git
cd ./mdctags.rs
cargo install cross
cross build --release --target x86_64-pc-windows-gnu
# --> target/x86_64-pc-windows-gnu/release/mdctags.exe
```### Config mdctags for tagbar
```viml
let g:tagbar_type_markdown = {
\ 'ctagsbin' : 'mdctags',
\ 'ctagsargs' : '',
\ 'kinds' : [
\ 'a:h1:0:0',
\ 'b:h2:0:0',
\ 'c:h3:0:0',
\ 'd:h4:0:0',
\ 'e:h5:0:0',
\ 'f:h6:0:0',
\ ],
\ 'sro' : '::',
\ 'kind2scope' : {
\ 'a' : 'h1',
\ 'b' : 'h2',
\ 'c' : 'h3',
\ 'd' : 'h4',
\ 'e' : 'h5',
\ 'f' : 'h6',
\ },
\ 'scope2kind' : {
\ 'h1' : 'a',
\ 'h2' : 'b',
\ 'h3' : 'c',
\ 'h4' : 'd',
\ 'h5' : 'e',
\ 'h6' : 'f',
\}
\}
```### Thanks
- [tagbar-markdown](https://github.com/lvht/tagbar-markdown)
- [@kumarstack55](https://github.com/kumarstack55)### License
MIT