forked from FarGroup/FarManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request FarGroup#853 from MKadaner/mzk/swap-hscroll-direction
Set of macros to swap horizontal scroll direction in Viewer, Menus, and Shell.
- Loading branch information
Showing
7 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
local function LeftToRight() | ||
Keys(mf.akey(1,1):gsub("Left", "Right"):gsub("Num4", "Num6")) | ||
end | ||
|
||
local function RightToLeft() | ||
Keys(mf.akey(1,1):gsub("Right", "Left"):gsub("Num6", "Num4")) | ||
end | ||
|
||
Macro { | ||
area="Viewer"; | ||
description="Swap horizontal scroll direction"; | ||
key= | ||
"Left Num4 ShiftNum4" -- Horizontal scroll in Text and Hex modes | ||
.. " CtrlLeft CtrlNum4" -- Horizontal scroll by 20 in Text mode; roll the contents in Dump and Hex modes | ||
.. " MsWheelLeft AltMsWheelLeft"; -- Translates to "Left" repeated as necessary | ||
action = LeftToRight; | ||
} | ||
|
||
Macro { | ||
area="Viewer"; | ||
description="Swap horizontal scroll direction"; | ||
key= | ||
"Right Num6 ShiftNum6" -- Horizontal scroll in Text and Hex modes | ||
.. " CtrlRight CtrlNum6" -- Horizontal scroll by 20 in Text mode; roll the contents in Dump and Hex modes | ||
.. " MsWheelRight AltMsWheelRight"; -- Translates to "Right" repeated as necessary | ||
action = RightToLeft; | ||
} | ||
|
||
Macro { | ||
area="Menu"; | ||
description="Swap horizontal scroll direction"; | ||
key= | ||
"AltLeft AltNum4 MsWheelLeft" -- Horizontal scroll all items by 1 position | ||
.. " CtrlAltLeft CtrlAltNum4 CtrlMsWheelLeft" -- Horizontal scroll all items by 20 positions | ||
.. " AltShiftLeft AltShiftNum4" -- Horizontal scroll the current item by 1 position | ||
.. " CtrlShiftLeft CtrlShiftNum4"; -- Horizontal scroll the current item by 20 positions | ||
action = LeftToRight; | ||
} | ||
|
||
Macro { | ||
area="Menu"; | ||
description="Swap horizontal scroll direction"; | ||
key= | ||
"AltRight AltNum6 MsWheelRight" -- Horizontal scroll all items by 1 position | ||
.. " CtrlAltRight CtrlAltNum6 CtrlMsWheelRight" -- Horizontal scroll all items by 20 positions | ||
.. " AltShiftRight AltShiftNum6" -- Horizontal scroll the current item by 1 position | ||
.. " CtrlShiftRight CtrlShiftNum6"; -- Horizontal scroll the current item by 20 positions | ||
action = RightToLeft; | ||
} | ||
|
||
Macro { | ||
area="Shell"; | ||
description="Swap horizontal scroll direction"; | ||
flags="EmptyCommandLine"; | ||
key= "AltLeft"; -- Horizontal scroll of file names and descriptions | ||
action = LeftToRight; | ||
} | ||
|
||
Macro { | ||
area="Shell"; | ||
description="Swap horizontal scroll direction"; | ||
flags="EmptyCommandLine"; | ||
key= "AltRight"; -- Horizontal scroll of file names and descriptions | ||
action = RightToLeft; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters