Skip to main content

Generates ctags-compatible output for the sections of a reStructuredText document.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rst2ctags-0.2.6.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

rst2ctags-0.2.6-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rst2ctags-0.2.6.tar.gz.

File metadata

  • Download URL: rst2ctags-0.2.6.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rst2ctags-0.2.6.tar.gz
Algorithm Hash digest
SHA256 3ed4c1a79ec062fe78b041ebc639b9ef566ef723d24d831c766751cda769c1af
MD5 5a485d4c701fbab922bbfdb9623470f3
BLAKE2b-256 844b9550b8ca765603ed90c7cf1d42f45e57b47a272671f862122e9f4236e532

See more details on using hashes here.

File details

Details for the file rst2ctags-0.2.6-py2.py3-none-any.whl.

File metadata

  • Download URL: rst2ctags-0.2.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for rst2ctags-0.2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 79f52df4acd3fe22d59cbbb0ccb75edc2d72aeed339373fc9ba4f8d47703d018
MD5 765cb0d6835d1f6e48aa8c5a9b350e51
BLAKE2b-256 9d93ded9142d9337337061d3b1ca8a4509e43f09b9c24a02b2cba36d3ee1858f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page