@@ -475,6 +475,8 @@ impl MappableCommand {
475475 goto_prev_comment, "Goto previous comment" ,
476476 goto_next_test, "Goto next test" ,
477477 goto_prev_test, "Goto previous test" ,
478+ goto_next_entry, "Goto next pairing" ,
479+ goto_prev_entry, "Goto previous pairing" ,
478480 goto_next_paragraph, "Goto next paragraph" ,
479481 goto_prev_paragraph, "Goto previous paragraph" ,
480482 dap_launch, "Launch debug target" ,
@@ -5167,6 +5169,14 @@ fn goto_prev_test(cx: &mut Context) {
51675169 goto_ts_object_impl ( cx, "test" , Direction :: Backward )
51685170}
51695171
5172+ fn goto_next_entry ( cx : & mut Context ) {
5173+ goto_ts_object_impl ( cx, "entry" , Direction :: Forward )
5174+ }
5175+
5176+ fn goto_prev_entry ( cx : & mut Context ) {
5177+ goto_ts_object_impl ( cx, "entry" , Direction :: Backward )
5178+ }
5179+
51705180fn select_textobject_around ( cx : & mut Context ) {
51715181 select_textobject ( cx, textobject:: TextObject :: Around ) ;
51725182}
@@ -5231,6 +5241,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
52315241 'a' => textobject_treesitter ( "parameter" , range) ,
52325242 'c' => textobject_treesitter ( "comment" , range) ,
52335243 'T' => textobject_treesitter ( "test" , range) ,
5244+ 'e' => textobject_treesitter ( "entry" , range) ,
52345245 'p' => textobject:: textobject_paragraph ( text, range, objtype, count) ,
52355246 'm' => textobject:: textobject_pair_surround_closest (
52365247 text, range, objtype, count,
@@ -5263,6 +5274,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
52635274 ( "a" , "Argument/parameter (tree-sitter)" ) ,
52645275 ( "c" , "Comment (tree-sitter)" ) ,
52655276 ( "T" , "Test (tree-sitter)" ) ,
5277+ ( "e" , "Data structure entry (tree-sitter)" ) ,
52665278 ( "m" , "Closest surrounding pair" ) ,
52675279 ( " " , "... or any character acting as a pair" ) ,
52685280 ] ;
0 commit comments