#132 MV's cloned windows

TK Soh

This is a port of Max Vohlken's window cloning patch,
which is part of his original patch for NEdit 5.0.2.

Use the menu Windows->Clone Tab to create a new window,
which is a clone of the invoking tab. Split panes will
also be cloned.

The tabs, window and icon titles will reflect the clone
status with an additional "<#>" appended to the
filenames, with # being the index of the clone.

As of v1.0, you can't move or detach a clone, but we
may expect this to change in the future version.

Have fun!


<< < 1 2 (Page 2 of 2)
  • TK Soh

    TK Soh - 2005-04-25

    Logged In: YES

    uploaded v2.2:

    1. fixed codedump when closing clones with matching marker
    on display.

  • TK Soh

    TK Soh - 2005-04-25

    patch v2.2: fixed coredump when closing clone

  • Tony Balinski

    Tony Balinski - 2005-04-28

    Logged In: YES

    A couple of buglets and a bit of design criticism

    - when you clone, you lose the cursor position and any
    current selection
    - if you close a clone with an active selection, that same
    selection in the original window cannot be pasted in another

    I would have more individual window properties:
    - locking: if you clone just to consult, you may lock the
    clone but wish to modify the original
    - indent style: ths could be linked to language mode; since
    you can apply different languages to clones, they should
    also have independent indent style
    - overstrike: you're potentially in two places at the same
    time for different reasons - you may want overstrike in one
    clone, insert in another
    - wrap mode: no wrap in one clone, continuous in another
    could be useful

    I would also consider tab size, but I think that might be
    just too difficult, given that the shared textBuf rectangle
    operations depend in it.

    I am now using this as a regular patch. I had no difficulty
    adding it to my other patches. I use the functionality
    often. I have had rare crashes (one involved a tab
    drag-n-drop, provided by another patch; I don't know the
    reasons for the others); it really seems pretty stable.

    I am not sure how to address adding more operations to the
    macro menu than just the "clone_document" action procedure
    and the $clone_index variable. These may be enough. I would
    like to see focus_window/raise_window behave slightly
    differently: the viewable clone these select should be the
    most recently accessed by default. Similarly, when closing a
    window, the document window previously accessed should be
    raised (whether as a tab in a multitab window or brought
    forward and focused if in a separate window, and you're not
    using click-for-keyboard-focus). These are fairly minor
    issues however.

    Anybody else try this out? It really is excellent! More
    thoughts would be welcome too.

  • TK Soh

    TK Soh - 2005-05-02

    Logged In: YES

    v2.3 has the bugfix on the selection. It also fixed a rare
    BadWindow error on Solaris 2.6 when cloning.

    Those suggestion are valid enhancement, but right now I am
    more concerned with the stability of the patch. So, I'd
    suggest look at them in the later stage when more people
    have tried out the patch.

    Admittedly, the macro support is quite primitive, but I
    really don't have much idea now. Macros changes are tricky,
    so we need to be more careful with the design before
    implementing it.

  • TK Soh

    TK Soh - 2005-05-02

    patch v2.3: fixed selection and BadWindow bugs

<< < 1 2 (Page 2 of 2)

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

Sign up for the SourceForge newsletter:

No, thanks