Set up 'mini.ai' to work like aaronik/treewalker.nvim. Use 'mini.diff' to stage hunks from MiniExtra.pickers.git_hunks
#1524
-
Contributing guidelines
Module(s)mini.ai QuestionHi echasnovski! Basically to sum up the functionality of this plugin, we can move up and down the tree and swap nodes. I also had one more question on git utilities. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
'mini.ai' is about textobjects, not movements or swaps. The best it can do here is to define specific textobjects with Swapping can be achieved with
Please ask unrelated questions in separate discussions. That way they can be labeled properly for easier future search. There is no In general, pickers are designed to list items and perform a single action on them (i.e. choose). In case of git hunks this action is navigation. Making either custom or "choose" action to staging hunks is possible (I think there is some example on the internet), but is out of scope for |
Beta Was this translation helpful? Give feedback.
'mini.ai' is about textobjects, not movements or swaps. The best it can do here is to define specific textobjects with
gen_spec.treesitter()
and useg[
andg]
to go to the edge of currenta
textobject. You can also create custom mappings withmove_cursor()
to move with "next" or "last" search method to go to next or last textobject.Swapping can be achieved with
exchange
operator from 'mini.operators'.