Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

How to let IntelliJ IDEA's Local History ignore Plugins' temporary change and restore to document?

$
0
0

I am writing a IntelliJ IDEA plugin at here like AceJump, which is used for fast move caret in IDE.

like following, by apply TextAttributes to all 'i' occurrences, and give each 'i' an index char.

enter image description here

 

after user press 'H', the caret will move to 'i' in the "private". then change all Markup chars to original 'i'

PROBLEMS

  1. This action will change the Document contents during jump. so there will be a history change like below. Is there a way to ignore the changes in Local History management?

  2. After press Cmd-z, there is a dialog says "Cannot Undo". how to avoid this?

enter image description here

enter image description here

 

 

Thanks


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>