Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7263
    Mike
    Member

    Using ctrl+tab switches between tabs in some kind of last used order. I want to switch to the left or right as they are appear in the tabs.

    Also I have added alt+left/right as keyboard shortcut but that only switches between two documents.

    #7264
    Mike
    Member

    Duh, ok I have made my first javascript, :-( , to solve it.
    But I still would not mind if this was a “native” option.

    // Move to right
    var docs = new Enumerator(editor.Documents);
    var current = editor.ActiveDocument;
    var first = null;
    var doc = null;

    for(; !docs.atEnd(); docs.moveNext() ){
    doc = docs.item();
    if (first == null) first = doc;

    if (doc == current) {
    docs.moveNext();
    doc = docs.item();
    if (doc == null) doc = first;
    break;
    }
    }
    if (doc != null) doc.Activate();

    // Move to left
    var docs = new Enumerator(editor.Documents);
    var current = editor.ActiveDocument;
    var last = null;
    var doc = null;
    for(; !docs.atEnd(); docs.moveNext() ){
    doc = docs.item();
    if (doc == current && last != null) break;
    last = doc;
    }
    if (last != null) last.Activate();

    #7267
    Yutaka Emura
    Keymaster

    Mike wrote:
    Using ctrl+tab switches between tabs in some kind of last used order. I want to switch to the left or right as they are appear in the tabs.

    Also I have added alt+left/right as keyboard shortcut but that only switches between two documents.

    Please read this:
    http://www.emeditor.com/modules/xoopsfaq/index.php?cat_id=9#q102
    “Is there a way to make EmEditor move through document tabs in sequential order from left to right?”

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.