Comments (5)
Thank you for the very clear description; reproduced. 46f411c should fix it.
In retrospect, auto-transmute is quite dangerous because in some cases it is impossible to know what the desired change was. I am considering adding a mapping to trigger it instead.
from vim-matchup.
I agree, it can be dangerous. Still, I find it useful and will continue to use it.
in some cases it is impossible to know what the desired change was
Could the plugin identify such cases? If so it could prompt for directions or hold the change with a warning.
from vim-matchup.
Unfortunately this issue still happens with different XML test input.
<variable>x</variable>
<action>a ''</action>
which is
00000000: 0a20 2020 2020 2020 203c 7661 7269 6162 . <variab
00000010: 6c65 3e78 3c2f 7661 7269 6162 6c65 3e0a le>x</variable>.
00000020: 2020 2020 2020 2020 0a20 2020 2020 2020 .
00000030: 203c 6163 7469 6f6e 3e61 2027 273c 2f61 <action>a ''</a
00000040: 6374 696f 6e3e 0a0a ction>..
To reproduce you need to place the cursor on the first "a" of <variable>
then press j
d
d
to end up with
<variable>x</action>
<action>a ''</action>
Sorry for keeping you busy on this.
from vim-matchup.
Thanks! ef17dcb should do it, hopefully it is not too careful now to miss actually useful text changes.
Could the plugin identify such cases?
I think it is likely possible with text-properties, which is a new feature in vim 8.1.0694, but still being worked on. However, if I go down this route, I won't be able to support old vim.
from vim-matchup.
This fix looks good here. Thank you!
from vim-matchup.
Related Issues (20)
- Buggy interaction with Vimspector HOT 5
- Virtual text obscures the statusline HOT 2
- Inconsistent highlighting in insert mode HOT 5
- Add quotes (' ") support
- match of macro definition shows a false match HOT 2
- html self closing tag matches with wrong closing tag HOT 9
- Offscreen matchup always visible HOT 1
- Add `do ... end` blocks to Lua Treesitter queries
- How to ignore tokens in comments HOT 3
- Add support for django template tags HOT 2
- Plugin broken after latest changes from upstream neovim HOT 4
- Covers statusline if using Neovim's `set cmdheight=0` option HOT 5
- Why does jumping not work for construct do / end in language elixir? HOT 2
- Matches braces inside comment with brace outside comment HOT 5
- JavaScript: function return matched incorrectly
- Under nvim 0.8: `attempt to call ... a nil value` when cursor on any matchup start/end HOT 2
- Show relative line number on matchup offscreen popup HOT 4
- some pairing syntax for the language systemverilog *.sv HOT 6
- Treesitter won't start with terraform files when vim-matchup is an added plugin to AstroNvim HOT 3
- Horizontal misalignment when nowrap and text is beyond left window border HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-matchup.