-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManager.Common.lua
92 lines (72 loc) · 2.23 KB
/
Manager.Common.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
--[[ Common macros ]]--
----------------------------------------
--[[ description:
-- Macros for common areas.
-- Макросы для разных областей.
--]]
----------------------------------------
--[[ uses:
nil.
-- group: Macros/Manager.
--]]
--------------------------------------------------------------------------------
----------------------------------------
local far = far
local F = far.Flags
----------------------------------------
--[[
local debugs = require "context.utils.useDebugs"
local logShow = debugs.Show
--]]
--------------------------------------------------------------------------------
--local unit = {}
----------------------------------------
local Macro = Macro or function () end
----------------------------------------
local IsDlgEdit = function ()
return not Area.Dialog or
Area.Dialog and Dlg.ItemType == F.DI_EDIT
end -- IsDlgEdit
---------------------------------------- Common
Macro {
area = "Common",
key = "RCtrlRAltShiftF9",
flags = "",
description = "All: Video mode",
action = function () return Keys"AltF9" end, ---
} ---
---------------------------------------- Escape
Macro {
area = "Shell Info QView Tree",
key = "Esc",
flags = "EmptyCommandLine",
description = "All: Esc - Panels on/off",
action = function () return Keys"CtrlO" end, ---
} ---
---------------------------------------- XLat
Macro {
area = "Shell Info QView Tree Editor Dialog",
key = "LCtrlLAltX",
flags = "",
description = "All: XLat",
condition = IsDlgEdit,
action = function () return Keys"XLat" end, ---
} ---
---------------------------------------- File name
-- "'" - Active Panel (changed from used "F").
-- ";" - Passive Panel (used by default configs).
Macro {
area = "Shell Info QView Tree",
key = "LCtrl'",
flags = "",
description = "All: Full name on AP",
action = function () return Keys"CtrlF" end, ---
} ---
Macro {
area = "Shell Info QView Tree",
key = "LCtrlLAlt'",
flags = "",
description = "All: Network name on AP",
action = function () return Keys"CtrlAltF" end, ---
} ---
--------------------------------------------------------------------------------