@@ -573,28 +573,6 @@ endfun
573
573
command ! -range =% RenumberSelection call <SID> renumber_selection ()
574
574
" --------------------------------------------------------- }}}
575
575
576
- " Bullets ------------------------------------------------- {{{
577
- fun ! s: find_bullet_position (lnum)
578
- let line_text = getline (a: lnum )
579
- return matchend (line_text, ' \v^\s*(\*|-)' )
580
- endfun
581
-
582
- fun ! s: select_bullet (inner)
583
- let lnum = getpos (' .' )[1 ]
584
- let bullet_col = s: find_bullet_position (lnum)
585
-
586
- if bullet_col
587
- " decide if we need to select with the bullet or without
588
- let offset = a: inner ? 2 : 0
589
- call setpos (' .' , [0 , lnum, bullet_col + offset])
590
- normal ! vg_
591
- endif
592
- endfun
593
-
594
- command ! SelectBulletText call <SID> select_bullet (1 )
595
- command ! SelectBullet call <SID> select_bullet (0 )
596
- " Bullets ------------------------------------------------- }}}
597
-
598
576
" Keyboard mappings --------------------------------------- {{{
599
577
fun ! s: add_local_mapping (mapping_type, mapping , action)
600
578
let l: file_types = join (g: bullets_enabled_file_types , ' ,' )
@@ -635,17 +613,6 @@ augroup TextBulletsMappings
635
613
636
614
" Toggle checkbox
637
615
call s: add_local_mapping (' nnoremap' , ' <leader>x' , ' :ToggleCheckbox<cr>' )
638
-
639
- " Text Objects -------------------------------------------- {{{
640
- " inner bullet (just the text)
641
- call s: add_local_mapping (' onoremap' , ' ib' , ' :SelectBulletText<cr>' )
642
- " a bullet including the bullet markup
643
- call s: add_local_mapping (' onoremap' , ' ab' , ' :SelectBullet<cr>' )
644
- " inside a checkbox
645
- call s: add_local_mapping (' onoremap' , ' ic' , ' :SelectCheckboxInside<cr>' )
646
- " a checkbox
647
- call s: add_local_mapping (' onoremap' , ' ac' , ' :SelectCheckbox<cr>' )
648
- " Text Objects -------------------------------------------- }}}
649
616
end
650
617
augroup END
651
618
" --------------------------------------------------------- }}}
0 commit comments