Skip to content

Instantly share code, notes, and snippets.

@Maximus5
Last active January 30, 2018 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maximus5/c27ff6282cf43a8fe8e26f39fb4e5011 to your computer and use it in GitHub Desktop.
Save Maximus5/c27ff6282cf43a8fe8e26f39fb4e5011 to your computer and use it in GitHub Desktop.
Macro
{
area="Shell Info QView Tree";
key="Esc";
flags="EmptyCommandLine";
description="Use Esc to toggle panels on/off";
action = function()
-- Yes, we can switch to 'Desktop' screen, but it does not have command line
-- Keys("F12 0")
-- Hide keybar
if not (APanel.Visible or PPanel.Visible) then Far.KeyBar_Show(1) end
-- Toggle panels
Keys("CtrlO")
-- Show keybar
if not (APanel.Visible or PPanel.Visible) then
Far.KeyBar_Show(2)
else
-- Force ConEmu to update BG image
Plugin.Call("4b675d80-1d4a-4ea9-8436-fdc23f2fc14b", 99)
end
end;
}
Macro
{
area="Other";
key="Esc";
description="Use Esc to toggle panels on/off";
action = function()
Keys("F12 1")
-- Force ConEmu to update BG image
Plugin.Call("4b675d80-1d4a-4ea9-8436-fdc23f2fc14b", 99)
end;
}
Macro
{
description="Scroll Panels or UserScreen";
area="Shell";
key="MsWheelUp";
action=function()
if Area.Shell and (APanel.Visible or PPanel.Visible) then Keys("MsWheelUp") else Far.Window_Scroll(-3) end
end;
}
Macro
{
description="Scroll Panels or UserScreen";
area="Shell";
key="MsWheelDown";
action=function()
if Area.Shell and (APanel.Visible or PPanel.Visible) then Keys("MsWheelDown") else Far.Window_Scroll(3) end
end;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment