#816 Navigate with back/forward

open
Scintilla (356)
5
2011-05-29
2011-05-28
No

In regard of the issue "Possibility to navigate with back/forward - ID: 3299402".
I try to work on this feature.
I want to know whether this kind of implementation is suitable for you and Scintilla?
For now, this patch manages :
- backward/forward (of course)
- Undo/Redo

And not manage :
- Add new line/Remove line (bookmark shifts by one line)
- If bookmark is on same line and after the AddChar/DelChar , this bookmark also shifts.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2011-05-29

    The first step is to define how this should work and that may be best done by examining existing implementations such as Xcode, Qt Creator and Komodo Edit. I find all of these implementations poor but it will start the definition process. This should not be seen as something isolated to a single Scintilla instance as all of these implement history as spanning multiple files.

    Komodo Edit and Qt Creator are open source so the code can be examined to understand the design but the code is under different licences so cannot be copied. If the Komodo code is good then it is likely we can ask for it to be contributed under the Scintilla license.

    The implementation does not appear to take into account all changes to the document: if text is deleted before history positions, it looks like the positions will be wrong. If a new line is inserted it looks like the history is destroyed which is not the behaviour of Komodo or Qt Creator.

    Use of primarySelection in Editor appears wrong - it is only ever false on GTK+ so this will behave differently on Windows or OS X.

     
  • Neil Hodgson

    Neil Hodgson - 2011-05-29
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson

    Neil Hodgson - 2011-05-29

    If you produce a design, post it to the mailing list - the other members are much more likely to want an imperfect feature than I am.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks