@@ -27,14 +27,20 @@ types:
2727
2828- Hyphenated lists
2929* Star (or bullet) lists
30+ + Plus (also bullet) lists
3031- [ ] GFM markdown checkbox lists
31321. Numeric lists
32332) or this style of numeric lists
3334a. alphabetic lists
3435B) or this style of alphabetic
36+ i. Roman numeral lists
37+ II. or capitalized Roman numeral lists
3538\item latex item lists
3639**** Org mode headers
3740
41+ It supports nested (heirarchical) ordered lists/outlines using different types
42+ of bullet markers for each level.
43+
3844It also provides support for wrapped text in a bullet, allowing you to use the
3945`textwidth ` feature in Vim seamlessly.
4046
@@ -72,6 +78,30 @@ GENERAL COMMANDS *bullets-commands*
7278 visual selection. Right padding is initalized to the
7379 first found bullet.
7480
81+ *bullets-:RenumberList*
82+ :RenumberList Renumbers all of the bullet lines in the current list.
83+ A blank line before/after the first/last bullet denotes
84+ the end of the list.
85+
86+ *bullets-:BulletDemote*
87+ :BulletDemote Demotes the current bullet by indenting it and changing
88+ its bullet type to the next level defined in
89+ g:bullets_outline_levels. Mapped to <C-t> in INSERT
90+ mode and `>>` in NORMAL mode.
91+
92+ *bullets-:BulletPromote*
93+ :BulletPromote Promotes the current bullet by unindenting it and
94+ changing its bullet type to the next level defined in
95+ g:bullets_outline_levels. Mapped to <C-d> in INSERT
96+ mode and `<<` in NORMAL mode by default.
97+
98+ *bullets-:BulletDemoteVisual*
99+ :BulletDemoteVisual Demotes the currently selected bullet(s) in VISUAL
100+ mode. Mapped to `>` in VISUAL mode by default.
101+ *bullets-:BulletPromoteVisual*
102+ :BulletPromoteVisual Promotes the currently selected bullet(s) in VISUAL
103+ mode. Mapped to `>` in VISUAL mode by default.
104+
75105CONFIGURATION *bullets-configuration*
76106
77107File types
@@ -161,6 +191,38 @@ that using auto commands.
161191When changed to `0 ` this will disable alphabetic bullets altogether.
162192
163193
194+ Nested Outline Bullet Levels
195+ ----------------------------
196+ You can create heirarchically nested outlines using indentation and different
197+ bullet types for each level of indentation. Define the type of bullet used for
198+ each level using the following ordered list:
199+
200+ `let g:bullets_outline_levels = ['ROM', 'ABC', 'num' , 'abc' , 'rom' , 'std-',`
201+ ` \ 'std*', 'std+']`
202+
203+ Demoting a bullet ([I]<C-t> , [N] `>>` , [V]`>` ) will increase its indentation and use the
204+ next bullet level defined in this list. Similarly, promoting the bullet
205+ ([I]<C-d> , [N] `<<` , [V]`<` ) will decrease the bullet
206+ indentation and use the previous bullet level. Promoting a top-level bullet
207+ will remove the bullet and demoting a bottom-level bullet will indent, but not
208+ change the bullet marker.
209+
210+
211+ Renumber Bullets on Change
212+ --------------------------
213+ By default, inserting a new bullet or promoting/demoting an existing bullet in
214+ the middle of a list will cause all of the list items, including nested
215+ bullets, to be renumbered. You can disable renumbering using the following:
216+
217+ `let g:bullets_renumber_on_change = 0`
218+
219+ The current list is defined by blank lines surrounding the first/last bullet
220+ items, taking into consideration the setting in g:bullets_line_spacing.
221+
222+ You can always manually renumber the current list or visual selection using
223+ `gN` in NORMAL or VISUAL mode.
224+
225+
164226INSERTING BULLETS *bullets-insert-new-bullet*
165227
166228When a supported file type is opened (see | bullets-configuration | ) you can start
@@ -184,8 +246,6 @@ Vim comes built in with support for indenting and de-indenting in INSERT mode.
184246To indent the current bullet to the right: from insert mode press <CTRL-t> .
185247To indent the current bullet to the left: from insert mode press <CTRL-d> .
186248
187- Note: For <CTRL-d> to work properly you have to be at the end of the line.
188-
189249For more information `:h i_CTRL-T` and `:h i_CTRL-D`
190250
191251
@@ -213,18 +273,48 @@ INSERT MODE
213273 *bullets-i_<C-cr>*
214274<C-CR> Same as <CR> , in case you want to unmap <CR> in INSERT MODE.
215275
276+ *bullets-i_<C-d>*
277+ <C-D> Promotes the current bullet item by unindenting the line and
278+ changing the bullet to the previous type defined in
279+ g:bullets_outline_levels.
280+
281+ *bullets-i_<C-t>*
282+ <C-T> Demotes the current bullet item by indenting the line and changing
283+ the bullet to the next type defined in g:bullets_outline_levels.
284+
216285NORMAL MODE
217286
218287 *bullets-o*
219288o Inserts a new bullet list item. Same as <CR> in INSERT MODE.
220289
290+ *bullets-gN*
291+ gN Renumbers entire list containing the current cursor position.
292+
221293 *bullets-<leader>x*
222294<leader> x Toggles the checkbox on the current line.
223295
296+ *bullets->>*
297+ >> Promotes the current bullet item by unindenting the line and
298+ changing the bullet to the next type defined in
299+ g:bullets_outline_levels.
300+
301+ *bullets-<<*
302+ << Demotes the current bullet item by indenting the line and changing
303+ the bullet to the previous type defined in g:bullets_outline_levels.
304+
224305VISUAL MODE
225306
226307 *bullets-v_gN*
227308gN Renumbers selected bullet list items.
228309
310+ *bullets-v_>*
311+ > Promotes the currently selected bullet item(s) by unindenting the
312+ lines and changing the bullets to the next type defined in
313+ g:bullets_outline_levels.
314+
315+ *bullets-v_<*
316+ < Demotes the currently selected bullet item(s) by indenting the
317+ lines and changing the bullets to the previous type defined in
318+ g:bullets_outline_levels.
229319
230320vim:tw=78:et:ft=help:norl:
0 commit comments