iswap.nvim
iswap.nvim copied to clipboard
Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
With highlights obviously. Is this worth trying? The lower line can presumably block some of the lower text, or we can squeeze something somehow maybe.
Either add on to existing queries or add support for new languages. Relevant queries can be found using [playground](https://github.com/nvim-treesitter/playground). See existing queries for examples (Rust is a good example).
Would be cool to see a feature where you could sort the items rather than doing it manually.
It would be nice if the GIF showed keypresses. I think we'd have to use something other than asciicast for that to work.
I'm rewriting the git history to remove the `assets/` folder, which contained a nontrivially-sized video and GIFs. The fix should simply to **delete the plugin folder and install again**; nothing...
This branch is based on #81 so that should be merged first. - [x] expand_key - [x] ISwap, ISwapWith - [x] ISwapNodeWith - ~ISwapNode~ already can select arbitrary nesting -...
``` local blah = { { 2, 1, 6 }, { 3, 4, 6 }, { 3, 4, 6 }, } ``` If i have nested lists like this, I...
I think it just makes sense, and I have found myself wanted to swap lines of code sometimes. Could also fallback `ISwap -> ISwapNode` and `ISwapWith -> ISwapNodeWith` instead but...