Skip to content

Commit

Permalink
Added key binding for menu items example.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalquark committed Jan 1, 2023
1 parent 2df975f commit ec29160
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ Here is a simple *~/.textadept/init.lua* for illustration:
textadept.editing.highlight_words = textadept.editing.HIGHLIGHT_CURRENT
textadept.editing.comment_string.ansi_c = '/*|*/'

-- Create a key binding to the "Edit > Preferences" menu item.
if not OSX and not CURSES then
keys['ctrl+,'] = textadept.menu.menubar[_L['Edit']][_L['Preferences']][2]
end

-- Load an external module and bind a key to it.
local ctags = require('ctags')
keys.f12 = ctags.goto_tag
Expand Down

0 comments on commit ec29160

Please sign in to comment.