Skip to content

Instantly share code, notes, and snippets.

@refaim
Created March 26, 2013 23:38

Revisions

  1. Roman Kharitonov created this gist Mar 26, 2013.
    40 changes: 40 additions & 0 deletions Panel.PgUp.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    Macro {
    area="Shell";
    key="PgUp";
    flags="DisableOutput";
    description="Scroll console buffer up if panels hidden";
    action = function()
    if not APanel.Visible and not PPanel.Visible then
    Keys('CtrlAltPgUp')
    else
    Keys('PgUp')
    end
    end;
    }

    Macro {
    area="Shell";
    key="PgDn";
    flags="DisableOutput";
    description="Scroll console buffer down if panels hidden";
    action = function()
    if not APanel.Visible and not PPanel.Visible then
    Keys('CtrlAltPgDn')
    else
    Keys('PgDn')
    end
    end;
    }

    Macro {
    area="Shell";
    key="CtrlO";
    flags="DisableOutput";
    description="Scroll console buffer to bottom before panel showing";
    action = function()
    if not APanel.Visible and not PPanel.Visible then
    Keys('CtrlAltEnd')
    end
    Keys('CtrlO')
    end;
    }