not able to toggle hide/show line numbers for all views #232
Replies: 1 comment
-
You could put the following in your *~/.textadept/init.lua*:
local margin_widths = {}
local function toggle_margins()
for i = 1, view.margins do
if view.margin_width_n[i] > 0 then
margin_widths[i] = view.margin_width_n[i]
view.margin_width_n[i] = 0
else
view.margin_width_n[i] = margin_widths[i] or 0
end
end
end
Then bind a key to it like `keys['ctrl+alt+m'] = toggle_margins`
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jmario74
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
needed for small screens; is there a way to toggle hide/show for all views with same keys?
Beta Was this translation helpful? Give feedback.
All reactions