@@ -488,6 +488,8 @@ impl MappableCommand {
488488 goto_prev_comment, "Goto previous comment" ,
489489 goto_next_test, "Goto next test" ,
490490 goto_prev_test, "Goto previous test" ,
491+ goto_next_entry, "Goto next pairing" ,
492+ goto_prev_entry, "Goto previous pairing" ,
491493 goto_next_paragraph, "Goto next paragraph" ,
492494 goto_prev_paragraph, "Goto previous paragraph" ,
493495 dap_launch, "Launch debug target" ,
@@ -5180,6 +5182,14 @@ fn goto_prev_test(cx: &mut Context) {
51805182 goto_ts_object_impl ( cx, "test" , Direction :: Backward )
51815183}
51825184
5185+ fn goto_next_entry ( cx : & mut Context ) {
5186+ goto_ts_object_impl ( cx, "entry" , Direction :: Forward )
5187+ }
5188+
5189+ fn goto_prev_entry ( cx : & mut Context ) {
5190+ goto_ts_object_impl ( cx, "entry" , Direction :: Backward )
5191+ }
5192+
51835193fn select_textobject_around ( cx : & mut Context ) {
51845194 select_textobject ( cx, textobject:: TextObject :: Around ) ;
51855195}
@@ -5244,6 +5254,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
52445254 'a' => textobject_treesitter ( "parameter" , range) ,
52455255 'c' => textobject_treesitter ( "comment" , range) ,
52465256 'T' => textobject_treesitter ( "test" , range) ,
5257+ 'e' => textobject_treesitter ( "entry" , range) ,
52475258 'p' => textobject:: textobject_paragraph ( text, range, objtype, count) ,
52485259 'i' => textobject:: textobject_indentation_level (
52495260 text,
@@ -5284,6 +5295,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
52845295 ( "a" , "Argument/parameter (tree-sitter)" ) ,
52855296 ( "c" , "Comment (tree-sitter)" ) ,
52865297 ( "T" , "Test (tree-sitter)" ) ,
5298+ ( "e" , "Data structure entry (tree-sitter)" ) ,
52875299 ( "m" , "Closest surrounding pair" ) ,
52885300 ( " " , "... or any character acting as a pair" ) ,
52895301 ] ;
0 commit comments