Skip to content

Commit

Permalink
add more std bullets (std> and std#)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Stojanovic committed May 2, 2021
1 parent 486f97d commit ad9f610
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let g:bullets_max_alpha_characters = 1
Nested outline bullet levels:

```vim
let g:bullets_outline_levels = ['ROM', 'ABC', 'num', 'abc', 'rom', 'std-', 'std*', 'std+'] " default
let g:bullets_outline_levels = ['ROM', 'ABC', 'num', 'abc', 'rom', 'std-', 'std*', 'std+', 'std>', 'std#'] " default
" Ordered list containing the heirarchical bullet levels, starting from the outer most level.
" Available bullet level options (cannot use the same marker more than once)
" ROM/rom = upper/lower case Roman numerals (e.g., I, II, III, IV)
Expand Down
2 changes: 1 addition & 1 deletion doc/bullets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ bullet types for each level of indentation. Define the type of bullet used for
each level using the following ordered list:

`let g:bullets_outline_levels = ['ROM', 'ABC', 'num', 'abc', 'rom', 'std-',`
` \ 'std*', 'std+']`
` \ 'std*', 'std+', 'std>', 'std#']`

Demoting a bullet ([I]<C-t>, [N]`>>`, [V]`>`) will increase its indentation and use the
next bullet level defined in this list. Similarly, promoting the bullet
Expand Down
4 changes: 2 additions & 2 deletions plugin/bullets.vim
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ endwhile
if !exists('g:bullets_outline_levels')
" Capitalization matters: all caps will make the symbol caps, lower = lower
" Standard bullets should include the marker symbol after 'std'
let g:bullets_outline_levels = ['ROM', 'ABC', 'num', 'abc', 'rom', 'std-', 'std*', 'std+']
let g:bullets_outline_levels = ['ROM', 'ABC', 'num', 'abc', 'rom', 'std-', 'std*', 'std+', 'std>', 'std#']
endif

if !exists('g:bullets_renumber_on_change')
Expand Down Expand Up @@ -248,7 +248,7 @@ fun! s:match_checkbox_bullet_item(input_text)
endfun

fun! s:match_bullet_list_item(input_text)
let l:std_bullet_regex = '\v(^(\s*)(-|\*+|\.+|#\.|\+|\\item)(\s+))(.*)'
let l:std_bullet_regex = '\v(^(\s*)(-|\*+|\.+|#\.|\+|\>|\#|\\item)(\s+))(.*)'
let l:matches = matchlist(a:input_text, l:std_bullet_regex)

if empty(l:matches)
Expand Down

0 comments on commit ad9f610

Please sign in to comment.