diff options
author | 2013-03-25 01:48:47 -0400 | |
---|---|---|
committer | 2013-03-25 01:48:47 -0400 | |
commit | 2fb60bd197071eb6c1da78e65e00aaaa374bdce1 (patch) | |
tree | 7e62cb5c41e97d5879e2c54487403e44a682a8fc /modules/textadept/keys.lua | |
parent | 8b8737ea7eab958fe5a9459f02471d6b6efa7021 (diff) | |
download | textadept-2fb60bd197071eb6c1da78e65e00aaaa374bdce1.tar.gz textadept-2fb60bd197071eb6c1da78e65e00aaaa374bdce1.zip |
Added lfs.dir_foreach() for allowing Find in Files to have a filter.
Also moved snapopen module into core as io.snapopen().
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r-- | modules/textadept/keys.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 2951c2b3..a11f09b4 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -224,9 +224,7 @@ M.utils = { end, select_command = function() _M.textadept.menu.select_command() end, snapopen_filedir = function() - if buffer.filename then - _M.textadept.snapopen.open(buffer.filename:match('^(.+)[/\\]')) - end + if buffer.filename then io.snapopen(buffer.filename:match('^(.+)[/\\]')) end end, show_style = function() local buffer = buffer @@ -494,8 +492,8 @@ keys.f2 = m_bookmarks.goto_next keys[not NCURSES and 'sf2' or 'f3'] = m_bookmarks.goto_prev keys[not NCURSES and 'af2' or 'f4'] = m_bookmarks.goto_bookmark -- Snapopen. -keys[not OSX and 'cu' or 'mu'] = {m_textadept.snapopen.open, _USERHOME} --- TODO: {m_textadept.snapopen.open, _HOME} +keys[not OSX and 'cu' or 'mu'] = {io.snapopen, _USERHOME} +-- TODO: {io.snapopen, _HOME} keys[not OSX and (not NCURSES and 'caO' or 'mO') or 'cmO'] = utils.snapopen_filedir if not NCURSES then keys[not OSX and 'ci' or 'mi'] = utils.show_style end |