diff options
author | 2012-06-04 17:44:02 -0400 | |
---|---|---|
committer | 2012-06-04 17:44:02 -0400 | |
commit | 31ffa135f8e786156d214687437939dcb2586f4c (patch) | |
tree | 9d3f71ef9c1eafd4845fbaf702fc9cb24ca4964b /modules/textadept | |
parent | a55e233c3129493edf9bfcf5f737f84d26cbc991 (diff) | |
download | textadept-31ffa135f8e786156d214687437939dcb2586f4c.tar.gz textadept-31ffa135f8e786156d214687437939dcb2586f4c.zip |
Added ncurses Find/Replace dialog.
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/find.lua | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 399eda46..1a9d2cfb 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -50,16 +50,17 @@ local find = gui.find module('gui.find')]] local _L = _L -find.find_label_text = _L['_Find:'] -find.replace_label_text = _L['R_eplace:'] -find.find_next_button_text = _L['Find _Next'] -find.find_prev_button_text = _L['Find _Prev'] -find.replace_button_text = _L['_Replace'] -find.replace_all_button_text = _L['Replace _All'] -find.match_case_label_text = _L['_Match case'] -find.whole_word_label_text = _L['_Whole word'] -find.lua_pattern_label_text = _L['_Lua pattern'] -find.in_files_label_text = _L['_In files'] +find.find_label_text = not NCURSES and _L['_Find:'] or _L['Find:'] +find.replace_label_text = not NCURSES and _L['R_eplace:'] or _L['Replace:'] +find.find_next_button_text = not NCURSES and _L['Find _Next'] or _L['[Next]'] +find.find_prev_button_text = not NCURSES and _L['Find _Prev'] or _L['[Prev]'] +find.replace_button_text = not NCURSES and _L['_Replace'] or _L['[Replace]'] +find.replace_all_button_text = not NCURSES and _L['Replace _All'] or _L['[All]'] +find.match_case_label_text = not NCURSES and _L['_Match case'] or _L['Case(F1)'] +find.whole_word_label_text = not NCURSES and _L['_Whole word'] or _L['Word(F2)'] +find.lua_pattern_label_text = not NCURSES and _L['_Lua pattern'] or + _L['Pattern(F3)'] +find.in_files_label_text = not NCURSES and _L['_In files'] or _L['Files(F4)'] local MARK_FIND = _SCINTILLA.next_marker_number() local MARK_FIND_COLOR = 0x4D9999 |