diff options
author | 2016-06-15 08:48:55 -0400 | |
---|---|---|
committer | 2016-06-15 08:48:55 -0400 | |
commit | 015e44861d1f7e9658783adfa71d0a14f176dd6b (patch) | |
tree | 0a4122448b07337477fafaadec533d873ef8e79f /modules | |
parent | 79dfb0d2f8e5b65b39a8ece94bc0bc1e5892ddbb (diff) | |
download | textadept-015e44861d1f7e9658783adfa71d0a14f176dd6b.tar.gz textadept-015e44861d1f7e9658783adfa71d0a14f176dd6b.zip |
Renamed "snapopen" to "quick open" in APIs and menus.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/keys.lua | 20 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 12 |
2 files changed, 16 insertions, 16 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 17f45df1..79ed95ea 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -93,10 +93,10 @@ local M = {} -- F2 |F2 |F2 |Next bookmark -- Shift+F2 |⇧F2 |F3 |Previous bookmark -- Alt+F2 |⌥F2 |F4 |Goto bookmark... --- Ctrl+U |⌘U |^U |Snapopen `_USERHOME` --- None |None |None |Snapopen `_HOME` --- Ctrl+Alt+Shift+O|^⌘⇧O |M-S-O |Snapopen current directory --- Ctrl+Alt+Shift+P|^⌘⇧P |M-^P |Snapopen current project +-- Ctrl+U |⌘U |^U |Quickly open `_USERHOME` +-- None |None |None |Quickly open `_HOME` +-- Ctrl+Alt+Shift+O|^⌘⇧O |M-S-O |Quickly open current directory +-- Ctrl+Alt+Shift+P|^⌘⇧P |M-^P |Quickly open current project -- Ctrl+I |⌘I |M-S-I |Show style -- **Buffer** | | | -- Ctrl+Tab |^⇥ |M-N |Next buffer @@ -402,13 +402,13 @@ keys[not OSX and (GUI and 'csf2' or 'f6') or 'msf2'] = textadept.bookmarks.clear keys.f2 = m_bookmark[_L['_Next Bookmark']][2] keys[GUI and 'sf2' or 'f3'] = m_bookmark[_L['_Previous Bookmark']][2] keys[GUI and 'af2' or 'f4'] = textadept.bookmarks.goto_mark --- Snapopen. -local m_snapopen = m_tools[_L['Snap_open']] -keys[not OSX and 'cu' or 'mu'] = m_snapopen[_L['Snapopen _User Home']][2] --- TODO: m_snapopen[_L['Snapopen _Textadept Home']][2] +-- Quick Open. +local m_quick_open = m_tools[_L['Quick _Open']] +keys[not OSX and 'cu' or 'mu'] = m_quick_open[_L['Quickly Open _User Home']][2] +-- TODO: m_quick_open[_L['Quickly Open _Textadept Home']][2] keys[not OSX and (GUI and 'caO' or 'mO') - or 'cmO'] = m_snapopen[_L['Snapopen _Current Directory']][2] -keys[not OSX and (GUI and 'caP' or 'cmp') or 'cmP'] = io.snapopen + or 'cmO'] = m_quick_open[_L['Quickly Open _Current Directory']][2] +keys[not OSX and (GUI and 'caP' or 'cmp') or 'cmP'] = io.quick_open -- Snippets. keys[not OSX and (GUI and 'ck' or 'mk') or 'a\t'] = textadept.snippets._select keys['\t'] = textadept.snippets._insert diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 440df9af..7c6692f9 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -220,15 +220,15 @@ local default_menubar = { {_L['_Goto Bookmark...'], textadept.bookmarks.goto_mark}, }, { - title = _L['Snap_open'], - {_L['Snapopen _User Home'], function() io.snapopen(_USERHOME) end}, - {_L['Snapopen _Textadept Home'], function() io.snapopen(_HOME) end}, - {_L['Snapopen _Current Directory'], function() + title = _L['Quick _Open'], + {_L['Quickly Open _User Home'], function() io.quick_open(_USERHOME) end}, + {_L['Quickly Open _Textadept Home'], function() io.quick_open(_HOME) end}, + {_L['Quickly Open _Current Directory'], function() if buffer.filename then - io.snapopen(buffer.filename:match('^(.+)[/\\]')) + io.quick_open(buffer.filename:match('^(.+)[/\\]')) end end}, - {_L['Snapopen Current _Project'], io.snapopen}, + {_L['Quickly Open Current _Project'], io.quick_open}, }, { title = _L['_Snippets'], |