#20 closed defect (fixed)
Fix ProofScriptEditor to change symbols cleanly
Reported by: | Owned by: | David Aspinall | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | 1:pg-eclipse | Keywords: | |
Cc: |
Description
ProofScriptEditor should change symbols cleanly, ideally without editing the underlying document text. We should keep the underlying document text with/without symbols according to preference and the menubar toggle; saved documents on disk should always be without symbols.
Change History (4)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Unfortunately, when I looked at it last, Texlipse did not support symbols in this way at all, it just provided convenience mechanisms for inserting tokens into TeX documents.
I have made numerous fixes so document on disk is always tokenised. I've added a new SymbolisedDocument and added basiscs of mechanism to record edits for symbol replacement to create position maps (which can be used to get correct offset locations for searches). This is quite fiddly and will need further work and improvement later, e.g. to insert positions for symbols as they are entered in document edits.
comment:3 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed now; using positions which move with insertions and deletions preserves the command boundaries properly, so we can safely symbolise/desymbolise the active script. It still might be preferable to represent the symbolised document as a view on the underlying file text (rather than editing it), but this is currently tricky in Eclipse (viz, efforts to do word wrapping in the editor).
See Texlipse for details?