Skip to main content

rst2ctags

This application generates ctags-compatible output for the sections of a reStructuredText document. It does not use the docutils engine since docutils is far too slow for my needs.

The motivation was to have a tool fast enough to use with the TagBar plugin in Vim.

Using with TagBar

To use this tool with TagBar, add the following into your ~/.vimrc:

" Add support for reStructuredText files in tagbar.
let g:tagbar_type_rst = {
    \ 'ctagstype': 'rst',
    \ 'ctagsbin' : '/path/to/rst2ctags.py',
    \ 'ctagsargs' : '-f - --sort=yes --sro=»',
    \ 'kinds' : [
        \ 's:sections',
        \ 'i:images'
    \ ],
    \ 'sro' : '»',
    \ 'kind2scope' : {
        \ 's' : 'section',
    \ },
    \ 'sort': 0,
\ }

License

This tool is licensed under a Simplified BSD license. See LICENSE.txt for details.

Release files for rst2ctags 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rst2ctags 0.2.6
File Size Uploaded
rst2ctags-0.2.6.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rst2ctags 0.2.6
File Interpreter ABI Platform
rst2ctags-0.2.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.1 kB

Release files / rst2ctags-0.2.6.tar.gz

Download URL rst2ctags-0.2.6.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3ed4c1a79ec062fe78b041ebc639b9ef566ef723d24d831c766751cda769c1af
BLAKE2b-256 checksum
How to use checksums
844b9550b8ca765603ed90c7cf1d42f45e57b47a272671f862122e9f4236e532
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release files / rst2ctags-0.2.6-py2.py3-none-any.whl

Download URL rst2ctags-0.2.6-py2.py3-none-any.whl
Size 6.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
79f52df4acd3fe22d59cbbb0ccb75edc2d72aeed339373fc9ba4f8d47703d018
BLAKE2b-256 checksum
How to use checksums
9d93ded9142d9337337061d3b1ca8a4509e43f09b9c24a02b2cba36d3ee1858f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page