CSS Table of Contents
A Sublime Text 3 plugin for css TOC creation
Details
Installs
- Total 2K
- Win 2K
- Mac 340
- Linux 205
Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
CSS Table of Contents
Version: 1.1.1
License: LGPL (GNU Lesser General Public License)
License URI: https://www.gnu.org/copyleft/lesser.html
Contributors: Alexey-T
A Sublime Text 3 plugin that helps you with creating neat table of contents on the beginning of your .css file
Add sections, subsections and sub-subsections to your .css file with ease. The plugin keeps track of your cursor and selection when creating section markup. You can add your desired subsections and sub-subsections after you've already add some in. If you don't name your sections, it's done automatically.
How to install
Via Package Control
Open your command palette -> Package Control: Install Package -> CSS Table of Contents
Manual
Go to your packages folder(Preferences -> Browse Packages)
# clone this repo
git clone https://github.com/dingo-d/CSS-Table-of-Contents 'CSS Table of Contents'
Or download the leatest release
and unzip it in a folder named CSS Table of Contents
How to use it
You can right click on the contents of your .css file and add them from the menu 'CSS Table of Contents', from Tools > CSS Table of Contents submenu, or by using hotkeys
ctrl+t, g
for section
ctrl+t, h
for subsection
ctrl+t, j
for subsubsection
ctrl+t, t
for table of contents creation
To do
Navigation through the sections, subsections and sub-subsections.
Changing the Table of contents title in the settings.
And what ever somebody suggests. Please test it and report any bugs or issues, it will be appreciated :)
Revision History
v 1.0.0 Initial release
v 1.1.0 Update
- Bugfix - If ToC already exists, when creating a new one, the old one remained. Now you can create sections after you've created a ToC, and it will be updated.
- Bugfix - Heapq sort using lexicographical order, so the ordering was wrong. Changed the sort according to the answer by Kasramvd
- Update - After creating section, the section name will be selected for easier changing of the section title (section/subsection/sub subsection), suggestion by henriquearthur.
- Update - Refactored the code (PR by Alexey-T), so that the definitions are in a separate file.
v 1.1.1 Update
- Update - Selection view added to a variable
- Update - Added docstrings to css_toc_definitions.py file
- Fix - Minor linter fixes