├── .gitignore ├── dist ├── i686 │ ├── sublime_text.i686 │ └── libsublime-imfix.i686.so ├── x86_64 │ ├── sublime_text.x86_64 │ └── libsublime-imfix.x86_64.so └── any │ ├── zh_CN │ ├── Default.zh_CN.sublime-package │ └── LICENSE.zh_CN │ ├── zh_TW │ ├── Default.zh_TW.sublime-package │ └── LICENSE.zh_TW │ └── desktop │ ├── sublime_text_3.desktop │ └── sublime_text_3_imfix.desktop ├── src ├── i18n │ ├── zh_CN │ │ └── Default.sublime-package │ │ │ ├── Syntax.sublime-menu │ │ │ ├── Side Bar Mount Point.sublime-menu │ │ │ ├── Widget Context.sublime-menu │ │ │ ├── Line Endings.sublime-menu │ │ │ ├── Tab Context.sublime-menu │ │ │ ├── Find in Files.sublime-menu │ │ │ ├── Side Bar.sublime-menu │ │ │ ├── Context.sublime-menu │ │ │ ├── Indentation.sublime-menu │ │ │ ├── Encoding.sublime-menu │ │ │ └── Main.sublime-menu │ ├── zh_TW │ │ └── Default.sublime-package │ │ │ ├── Syntax.sublime-menu │ │ │ ├── Side Bar Mount Point.sublime-menu │ │ │ ├── Widget Context.sublime-menu │ │ │ ├── Line Endings.sublime-menu │ │ │ ├── Tab Context.sublime-menu │ │ │ ├── Side Bar.sublime-menu │ │ │ ├── Find in Files.sublime-menu │ │ │ ├── Context.sublime-menu │ │ │ ├── Indentation.sublime-menu │ │ │ ├── Encoding.sublime-menu │ │ │ └── Main.sublime-menu │ └── en_US │ │ └── Default.sublime-package │ │ ├── Syntax.sublime-menu │ │ ├── Side Bar Mount Point.sublime-menu │ │ ├── Widget Context.sublime-menu │ │ ├── Line Endings.sublime-menu │ │ ├── Tab Context.sublime-menu │ │ ├── Find in Files.sublime-menu │ │ ├── Side Bar.sublime-menu │ │ ├── Context.sublime-menu │ │ ├── Indentation.sublime-menu │ │ ├── Encoding.sublime-menu │ │ └── Main.sublime-menu └── fix │ └── imfix │ └── sublime_imfix.c ├── README_zh_CN.md ├── README_zh_TW.md └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.orig 2 | other/ 3 | -------------------------------------------------------------------------------- /dist/i686/sublime_text.i686: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Firef0x/SublimeText-i18n-zh/HEAD/dist/i686/sublime_text.i686 -------------------------------------------------------------------------------- /dist/x86_64/sublime_text.x86_64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Firef0x/SublimeText-i18n-zh/HEAD/dist/x86_64/sublime_text.x86_64 -------------------------------------------------------------------------------- /dist/i686/libsublime-imfix.i686.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Firef0x/SublimeText-i18n-zh/HEAD/dist/i686/libsublime-imfix.i686.so -------------------------------------------------------------------------------- /dist/x86_64/libsublime-imfix.x86_64.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Firef0x/SublimeText-i18n-zh/HEAD/dist/x86_64/libsublime-imfix.x86_64.so -------------------------------------------------------------------------------- /dist/any/zh_CN/Default.zh_CN.sublime-package: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Firef0x/SublimeText-i18n-zh/HEAD/dist/any/zh_CN/Default.zh_CN.sublime-package -------------------------------------------------------------------------------- /dist/any/zh_TW/Default.zh_TW.sublime-package: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Firef0x/SublimeText-i18n-zh/HEAD/dist/any/zh_TW/Default.zh_TW.sublime-package -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Syntax.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "语法", 4 | "children": [ { "command": "$file_types" } ] 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Syntax.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "語法", 4 | "children": [ { "command": "$file_types" } ] 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Syntax.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "Syntax", 4 | "children": [ { "command": "$file_types" } ] 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Side Bar Mount Point.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "caption": "-", "id": "folder_commands" }, 3 | { "caption": "从项目中删除文件夹", "command": "remove_folder", "args": { "dirs": []} } 4 | ] 5 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Side Bar Mount Point.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "caption": "-", "id": "folder_commands" }, 3 | { "caption": "從專案中刪除資料夾", "command": "remove_folder", "args": { "dirs": []} } 4 | ] 5 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Side Bar Mount Point.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "caption": "-", "id": "folder_commands" }, 3 | { "caption": "Remove Folder from Project", "command": "remove_folder", "args": { "dirs": []} } 4 | ] 5 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Widget Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "copy" }, 3 | { "command": "cut" }, 4 | { "command": "paste" }, 5 | { "caption": "-" }, 6 | { "command": "select_all" } 7 | ] 8 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Widget Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "copy", "caption": "复制" }, 3 | { "command": "cut", "caption": "剪切" }, 4 | { "command": "paste", "caption": "粘贴" }, 5 | { "caption": "-" }, 6 | { "command": "select_all", "caption": "全选" } 7 | ] 8 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Widget Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "copy", "caption": "複製" }, 3 | { "command": "cut", "caption": "剪下" }, 4 | { "command": "paste", "caption": "貼上" }, 5 | { "caption": "-" }, 6 | { "command": "select_all", "caption": "全選" } 7 | ] 8 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Line Endings.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows 换行符 (CRLF)", "checkbox": true }, 3 | { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix 换行符 (LF)", "checkbox": true }, 4 | { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS X 换行符 (CR)", "checkbox": true } 5 | ] 6 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Line Endings.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows 換行符 (CRLF)", "checkbox": true }, 3 | { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix 換行符 (LF)", "checkbox": true }, 4 | { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS X 換行符 (CR)", "checkbox": true } 5 | ] 6 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Line Endings.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows Line Endings (CRLF)", "checkbox": true }, 3 | { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix Line Endings (LF)", "checkbox": true }, 4 | { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9 Line Endings (CR)", "checkbox": true } 5 | ] 6 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Tab Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "關閉" }, 3 | { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "關閉其它分頁" }, 4 | { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "關閉右側分頁" }, 5 | { "caption": "-" }, 6 | { "command": "new_file", "caption": "新建檔案" }, 7 | { "command": "prompt_open_file", "caption": "開啟檔案" } 8 | ] 9 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Tab Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭" }, 3 | { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭其它标签页" }, 4 | { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "关闭右侧标签页" }, 5 | { "caption": "-" }, 6 | { "command": "new_file", "caption": "新建文件" }, 7 | { "command": "prompt_open_file", "caption": "打开文件" } 8 | ] 9 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Tab Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close" }, 3 | { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Other Tabs" }, 4 | { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Tabs to the Right" }, 5 | { "caption": "-" }, 6 | { "command": "new_file", "caption": "New File" }, 7 | { "command": "prompt_open_file", "caption": "Open File" } 8 | ] 9 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Find in Files.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "clear_location", "caption": "清除当前路径" }, 3 | { "command": "add_directory", "caption": "添加文件夹" }, 4 | { "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "添加包括过滤(通配符)" }, 5 | { "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "添加排除过滤(通配符)" }, 6 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加打开的文件夹" }, 7 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加打开的文件" }, 8 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "添加当前文件" }, 9 | ] 10 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Side Bar.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "caption": "新建文件", "command": "new_file_at", "args": {"dirs": []} }, 3 | { "caption": "重命名…", "command": "rename_path", "args": {"paths": []} }, 4 | { "caption": "删除文件", "command": "delete_file", "args": {"files": []} }, 5 | { "caption": "打开所在文件夹…", "command": "open_containing_folder", "args": {"files": []} }, 6 | { "caption": "-", "id": "folder_commands" }, 7 | { "caption": "新建文件夹…", "command": "new_folder", "args": {"dirs": []} }, 8 | { "caption": "删除文件夹", "command": "delete_folder", "args": {"dirs": []} }, 9 | { "caption": "在文件夹中查找…", "command": "find_in_folder", "args": {"dirs": []} }, 10 | { "caption": "-", "id": "end" } 11 | ] 12 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Side Bar.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "caption": "新建檔案", "command": "new_file_at", "args": {"dirs": []} }, 3 | { "caption": "重命名…", "command": "rename_path", "args": {"paths": []} }, 4 | { "caption": "刪除檔案", "command": "delete_file", "args": {"files": []} }, 5 | { "caption": "開啟所在資料夾…", "command": "open_containing_folder", "args": {"files": []} }, 6 | { "caption": "-", "id": "folder_commands" }, 7 | { "caption": "新建資料夾…", "command": "new_folder", "args": {"dirs": []} }, 8 | { "caption": "刪除資料夾", "command": "delete_folder", "args": {"dirs": []} }, 9 | { "caption": "在資料夾中尋找…", "command": "find_in_folder", "args": {"dirs": []} }, 10 | { "caption": "-", "id": "end" } 11 | ] 12 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Find in Files.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "clear_location", "caption": "清除當前路徑" }, 3 | { "command": "add_directory", "caption": "新增資料夾" }, 4 | { "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "新增包括過濾(萬用字元)" }, 5 | { "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "新增排除過濾(萬用字元)" }, 6 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "新增開啟的資料夾" }, 7 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "新增開啟的檔案" }, 8 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "新增當前檔案" }, 9 | ] 10 | -------------------------------------------------------------------------------- /dist/any/zh_CN/LICENSE.zh_CN: -------------------------------------------------------------------------------- 1 | License and disclaimer for Sublime Text Simplified Chinese translation 2 | ========================================= 3 | 4 | 汉化免责声明: 5 | 1、本软件汉化版本仅限于个人学习研究之用,不得用于商业用途,并要求在下载后24小时内删除。软件版权归原作者所有,如果你喜欢,请购买正版。 6 | 2、汉化作者不承担任何由于软件合法性及真实性所引起的争议和法律责任。 7 | 3、本软件汉化作者并不同意、也未授权任何人以非个人学习研究交流的方式对外传播!在传递本程序时,必须附带本声明,且表示您清楚并已接受本声明的全部内容。 8 | 4、使用本软件全凭您本人自愿,汉化作者对任何人使用、传播本软件所带来的直接或间接影响不负任何直接或连带责任!软件中任何涉及版权的软件注册授权问题由使用者自行负责承担,本软件汉化仅从技术角度提供相关资料,请严格按照国家相关法规学习和使用。 9 | ========================================= 10 | 在线购买正版: 11 | http://www.sublimetext.com/buy 12 | 汉化服务支持: 13 | Sublime Text 中文论坛 14 | http://sublimetext.iaixue.com/ 15 | ========================================= 16 | 17 | -------------------------------------------------------------------------------- /dist/any/zh_TW/LICENSE.zh_TW: -------------------------------------------------------------------------------- 1 | License and disclaimer for Sublime Text Traditional Chinese translation 2 | ========================================= 3 | 4 | 漢化免責聲明: 5 | 1、本軟體漢化版本僅限於個人學習研究之用,不得用於商業用途,並要求在下載後24小時內刪除。軟體版權歸原作者所有,如果你喜歡,請購買正版。 6 | 2、漢化作者不承擔任何由於軟體合法性及真實性所引起的爭議和法律責任。 7 | 3、本軟體漢化作者並不同意、也未授權任何人以非個人學習研究交流的方式對外傳播!在傳遞本軟體時,必須附帶本聲明,且表示您清楚並已接受本聲明的全部內容。 8 | 4、使用本軟體全憑您本人自願,漢化作者對任何人使用、傳播本軟體所帶來的直接或間接影響不負任何直接或連帶責任!軟體中任何涉及版權的軟體註冊授權問題由使用者自行負責承擔,本軟體漢化僅從技術角度提供相關資料,請嚴格按照國家相關法規學習和使用。 9 | ========================================= 10 | 線上購買正版: 11 | http://www.sublimetext.com/buy 12 | 漢化服務支援: 13 | Sublime Text 中文論壇 14 | http://sublimetext.iaixue.com/ 15 | ========================================= 16 | 17 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Find in Files.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "clear_location", "caption": "Clear" }, 3 | { "command": "add_directory", "caption": "Add Folder" }, 4 | { "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "Add Include Filter" }, 5 | { "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "Add Exclude Filter" }, 6 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "Add Open Folders" }, 7 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "Add Open Files" }, 8 | { "command": "add_where_snippet", "args": {"snippet": ""}, "caption": "Add Current File" }, 9 | ] 10 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Side Bar.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "caption": "New File", "command": "new_file_at", "args": {"dirs": []} }, 3 | { "caption": "Rename…", "command": "rename_path", "args": {"paths": []} }, 4 | { "caption": "Delete File", "command": "delete_file", "args": {"files": []} }, 5 | { "caption": "Open Containing Folder…", "command": "open_containing_folder", "args": {"files": []} }, 6 | { "caption": "-", "id": "folder_commands" }, 7 | { "caption": "New Folder…", "command": "new_folder", "args": {"dirs": []} }, 8 | { "caption": "Delete Folder", "command": "delete_folder", "args": {"dirs": []} }, 9 | { "caption": "Find in Folder…", "command": "find_in_folder", "args": {"dirs": []} }, 10 | { "caption": "-", "id": "end" } 11 | ] 12 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "open_context_url" }, 3 | { "command": "context_goto_definition", "caption": "Goto Definition" }, 4 | { "caption": "-", "id": "clipboard" }, 5 | { "command": "copy" }, 6 | { "command": "cut" }, 7 | { "command": "paste" }, 8 | { "caption": "-", "id": "selection" }, 9 | { "command": "select_all" }, 10 | { "caption": "-", "id": "file" }, 11 | { "command": "open_in_browser", "caption": "Open in Browser" }, 12 | { "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "Open Containing Folder…" }, 13 | { "command": "copy_path", "caption": "Copy File Path" }, 14 | { "command": "reveal_in_side_bar", "caption": "Reveal in Side Bar" }, 15 | { "caption": "-", "id": "end" } 16 | ] 17 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "open_context_url", "caption": "打开当前光标下的网址" }, 3 | { "command": "context_goto_definition", "caption": "跳转到定义处" }, 4 | { "caption": "-", "id": "clipboard" }, 5 | { "command": "copy", "caption": "复制" }, 6 | { "command": "cut", "caption": "剪切" }, 7 | { "command": "paste", "caption": "粘贴" }, 8 | { "caption": "-", "id": "selection" }, 9 | { "command": "select_all", "caption": "全选" }, 10 | { "caption": "-", "id": "file" }, 11 | { "command": "open_in_browser", "caption": "在浏览器中打开" }, 12 | { "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "打开所在文件夹…" }, 13 | { "command": "copy_path", "caption": "复制文件路径" }, 14 | { "command": "reveal_in_side_bar", "caption": "在侧边栏中显示" }, 15 | { "caption": "-", "id": "end" } 16 | ] 17 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Context.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "open_context_url", "caption": "開啟當前游標下的網址" }, 3 | { "command": "context_goto_definition", "caption": "跳轉到定義處" }, 4 | { "caption": "-", "id": "clipboard" }, 5 | { "command": "copy", "caption": "複製" }, 6 | { "command": "cut", "caption": "剪下" }, 7 | { "command": "paste", "caption": "貼上" }, 8 | { "caption": "-", "id": "selection" }, 9 | { "command": "select_all", "caption": "全選" }, 10 | { "caption": "-", "id": "file" }, 11 | { "command": "open_in_browser", "caption": "在瀏覽器中開啟" }, 12 | { "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "開啟所在資料夾…" }, 13 | { "command": "copy_path", "caption": "複製檔案路徑" }, 14 | { "command": "reveal_in_side_bar", "caption": "在側邊欄中顯示" }, 15 | { "caption": "-", "id": "end" } 16 | ] 17 | -------------------------------------------------------------------------------- /dist/any/desktop/sublime_text_3.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Sublime Text 3 Dev 5 | Name[zh_CN]=Sublime Text 3 开发版 6 | Name[zh_TW]=Sublime Text 3 開發版 7 | GenericName=Text Editor 8 | GenericName[zh_CN]=文本编辑器 9 | GenericName[zh_TW]=文字編輯器 10 | Comment=Sophisticated text editor for code, HTML and prose 11 | Comment[zh_CN]=高端精致的文本(代码、HTML、散文)编辑器 12 | Comment[zh_TW]=高端精緻的文字(程式碼、HTML、散文)編輯器 13 | Keywords=Text;Editor; 14 | Keywords[zh_CN]=文本;编辑器;Text;Editor; 15 | Keywords[zh_TW]=文字;編輯器;Text;Editor; 16 | Exec=sublime_text_3 %F 17 | Terminal=false 18 | MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; 19 | Icon=sublime-text 20 | Categories=Development;TextEditor;GTK; 21 | StartupNotify=true 22 | StartupWMClass="sublime-text" 23 | Actions=Window;Document; 24 | 25 | [Desktop Action Window] 26 | Name=New Window 27 | Exec=sublime_text_3 -n 28 | 29 | [Desktop Action Document] 30 | Name=New File 31 | Exec=sublime_text_3 --command new_file 32 | -------------------------------------------------------------------------------- /dist/any/desktop/sublime_text_3_imfix.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Sublime Text 3 Dev IM Fix 5 | Name[zh_CN]=Sublime Text 3 开发版(输入法修复) 6 | Name[zh_TW]=Sublime Text 3 開發版(輸入法修復) 7 | GenericName=Text Editor 8 | GenericName[zh_CN]=文本编辑器 9 | GenericName[zh_TW]=文字編輯器 10 | Comment=Sophisticated text editor for code, HTML and prose 11 | Comment[zh_CN]=高端精致的文本(代码、HTML、散文)编辑器 12 | Comment[zh_TW]=高端精緻的文字(程式碼、HTML、散文)編輯器 13 | Keywords=Text;Editor; 14 | Keywords[zh_CN]=文本;编辑器;Text;Editor; 15 | Keywords[zh_TW]=文字;編輯器;Text;Editor; 16 | Exec=sublime_text_3_imfix %F 17 | Terminal=false 18 | MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; 19 | Icon=sublime-text 20 | Categories=Development;TextEditor;GTK; 21 | StartupNotify=true 22 | StartupWMClass="sublime-text" 23 | Actions=Window;Document; 24 | 25 | [Desktop Action Window] 26 | Name=New Window 27 | Exec=sublime_text_3_imfix -n 28 | 29 | [Desktop Action Document] 30 | Name=New File 31 | Exec=sublime_text_3_imfix --command new_file 32 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Indentation.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格缩进", "checkbox": true }, 3 | { "caption": "-" }, 4 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "制表符宽度: 1", "checkbox": true }, 5 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "制表符宽度: 2", "checkbox": true }, 6 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "制表符宽度: 3", "checkbox": true }, 7 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "制表符宽度: 4", "checkbox": true }, 8 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "制表符宽度: 5", "checkbox": true }, 9 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "制表符宽度: 6", "checkbox": true }, 10 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "制表符宽度: 7", "checkbox": true }, 11 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "制表符宽度: 8", "checkbox": true }, 12 | { "caption": "-" }, 13 | { "command": "detect_indentation", "caption": "使用缓冲区缩进方式" }, 14 | { "caption": "-" }, 15 | { "command": "expand_tabs", "caption": "转为空格缩进", "args": {"set_translate_tabs": true} }, 16 | { "command": "unexpand_tabs", "caption": "转为制表符缩进", "args": {"set_translate_tabs": true} } 17 | ] 18 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Indentation.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格縮排", "checkbox": true }, 3 | { "caption": "-" }, 4 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "制表符寬度: 1", "checkbox": true }, 5 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "制表符寬度: 2", "checkbox": true }, 6 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "制表符寬度: 3", "checkbox": true }, 7 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "制表符寬度: 4", "checkbox": true }, 8 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "制表符寬度: 5", "checkbox": true }, 9 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "制表符寬度: 6", "checkbox": true }, 10 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "制表符寬度: 7", "checkbox": true }, 11 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "制表符寬度: 8", "checkbox": true }, 12 | { "caption": "-" }, 13 | { "command": "detect_indentation", "caption": "使用緩衝區縮排方式" }, 14 | { "caption": "-" }, 15 | { "command": "expand_tabs", "caption": "轉為空格縮排", "args": {"set_translate_tabs": true} }, 16 | { "command": "unexpand_tabs", "caption": "轉為制表符縮排", "args": {"set_translate_tabs": true} } 17 | ] 18 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Indentation.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "Indent Using Spaces", "checkbox": true }, 3 | { "caption": "-" }, 4 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab Width: 1", "checkbox": true }, 5 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab Width: 2", "checkbox": true }, 6 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab Width: 3", "checkbox": true }, 7 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab Width: 4", "checkbox": true }, 8 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab Width: 5", "checkbox": true }, 9 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab Width: 6", "checkbox": true }, 10 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab Width: 7", "checkbox": true }, 11 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab Width: 8", "checkbox": true }, 12 | { "caption": "-" }, 13 | { "command": "detect_indentation", "caption": "Guess Settings From Buffer" }, 14 | { "caption": "-" }, 15 | { "command": "expand_tabs", "caption": "Convert Indentation to Spaces", "args": {"set_translate_tabs": true} }, 16 | { "command": "unexpand_tabs", "caption": "Convert Indentation to Tabs", "args": {"set_translate_tabs": true} } 17 | ] 18 | -------------------------------------------------------------------------------- /README_zh_CN.md: -------------------------------------------------------------------------------- 1 | Sublime Text 翻译汉化 2 | ================== 3 | 4 | English description is in [README.md][1]. 5 | 繁體中文說明見 [README_zh_TW.md][11] 。 6 | 7 | 当前版本: 构建版本 3083 8 | 9 | 输入法问题修复 10 | ---------- 11 | 这个链接库文件修复了 [Sublime Text][2] 的一个困扰的问题,以支持 [Fcitx][3] 小企鹅中文输入法 12 | (以及 [搜狗][4] 中文输入法)。 13 | 14 | 简体及繁体中文翻译汉化 15 | ---------- 16 | 这个 Sublime 包文件提供了 [Sublime Text 3][5] 的简体及繁体中文翻译汉化。 17 | 18 | 安装说明 19 | ---------- 20 | 对于 Arch Linux 用户,仅需从 [Arch Linux 中文社区仓库][13] 、 [Firef0x 的 Arch Linux 软件包仓库][7] 21 | 或 AUR 中安装软件包 [sublime-text-dev-zh-cn][6] 或 [sublime-text-dev-zh-tw][12] 。 22 | 23 | 24 | 版权归属及致谢名单 25 | ---------- 26 | 源文件 [sublime_imfix.c][8] 取自 Sublime Text 官方论坛帖子 -- [《输入法支持》][9] (英语)。 27 | 原作者为 Cjacker Huang。 28 | 29 | 最新的简体及繁体中文翻译汉化取自 [Sublime Text 中文论坛][10] 。 30 | 31 | 感谢 [Iridium Cao][14] 帮忙审阅及修正繁体中文翻译汉化。 32 | 33 | [1]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/README.md 34 | [2]: http://www.sublimetext.com 35 | [3]: http://fcitx-im.org 36 | [4]: http://pinyin.sogou.com/linux/ 37 | [5]: http://www.sublimetext.com/3 38 | [6]: https://aur.archlinux.org/packages/sublime-text-dev-zh-cn 39 | [7]: http://firef0x.github.io/archrepo.html 40 | [8]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/src/fix/imfix/sublime_imfix.c 41 | [9]: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=7006&start=10#p41343 42 | [10]: http://sublimetext.iaixue.com 43 | [11]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/README_zh_TW.md 44 | [12]: https://aur.archlinux.org/packages/sublime-text-dev-zh-tw 45 | [13]: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#archlinuxcn 46 | [14]: https://github.com/iridiumcao 47 | 48 | -------------------------------------------------------------------------------- /README_zh_TW.md: -------------------------------------------------------------------------------- 1 | Sublime Text 翻譯漢化 2 | ================== 3 | 4 | English description is in [README.md][1]. 5 | 简体中文说明见 [README_zh_CN.md][11] 。 6 | 7 | 當前版本: 構建版本 3083 8 | 9 | 輸入法問題修復 10 | ---------- 11 | 這個連結庫檔案修復了 [Sublime Text][2] 的一個困擾的問題,以支援 [Fcitx][3] 小企鵝中文輸入法 12 | (以及 [搜狗][4] 中文輸入法)。 13 | 14 | 簡體及繁體中文翻譯漢化 15 | ---------- 16 | 這個 Sublime 歸檔提供了 [Sublime Text 3][5] 的簡體及繁體中文翻譯漢化。 17 | 18 | 安裝說明 19 | ---------- 20 | 對於 Arch Linux 使用者,僅需從 [Arch Linux 中文社群倉庫][13] 、 [Firef0x 的 Arch Linux 軟體套件倉庫][7] 21 | 或 AUR 中安裝軟體套件 [sublime-text-dev-zh-cn][6] 或 [sublime-text-dev-zh-tw][12] 。 22 | 23 | 24 | 版權歸屬及致謝名單 25 | ---------- 26 | 原始檔 [sublime_imfix.c][8] 取自 Sublime Text 官方論壇貼文 -- [《輸入法支援》][9] (英語)。 27 | 原作者為 Cjacker Huang。 28 | 29 | 最新的簡體及繁體中文翻譯漢化取自 [Sublime Text 中文論壇][10] 。 30 | 31 | 感謝 [Iridium Cao][14] 幫忙審閱及修正繁體中文翻譯漢化。 32 | 33 | [1]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/README.md 34 | [2]: http://www.sublimetext.com 35 | [3]: http://fcitx-im.org 36 | [4]: http://pinyin.sogou.com/linux/ 37 | [5]: http://www.sublimetext.com/3 38 | [6]: https://aur.archlinux.org/packages/sublime-text-dev-zh-cn 39 | [7]: http://firef0x.github.io/archrepo.html 40 | [8]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/src/fix/imfix/sublime_imfix.c 41 | [9]: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=7006&start=10#p41343 42 | [10]: http://sublimetext.iaixue.com 43 | [11]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/README_zh_CN.md 44 | [12]: https://aur.archlinux.org/packages/sublime-text-dev-zh-tw 45 | [13]: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#archlinuxcn 46 | [14]: https://github.com/iridiumcao 47 | 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Sublime Text Chinese translations 2 | ================== 3 | 4 | 简体中文说明见 [README_zh_CN.md][1]. 5 | 繁體中文說明見 [README_zh_TW.md][11]. 6 | 7 | Current version: Build 3083 8 | 9 | IM bugfix 10 | ---------- 11 | This library fixes an annoying bug in [Sublime Text][2] to support [Fcitx][3] input method. 12 | (As well as [Sogou][4] input method) 13 | 14 | Simplified and Traditional Chinese translation 15 | ---------- 16 | This Sublime package provides Simplified and Traditional Chinese translation of [Sublime Text 3][5]. 17 | 18 | Installation 19 | ---------- 20 | For Arch Linux user, just install package [sublime-text-dev-zh-cn][6] or 21 | [sublime-text-dev-zh-tw][12] from [Arch Linux Chinese Community Repository][13], 22 | [Firef0x's Arch Linux Repository][7] or from AUR. 23 | 24 | Credits 25 | ---------- 26 | [sublime_imfix.c][8] is grabbed from a topic in Sublime Forum - ["Input method support"][9]. 27 | Original author is Cjacker Huang. 28 | 29 | Latest Simplified and Traditional Chinese translations are grabbed from [Sublime Text Chinese Forum][10]. 30 | 31 | Thanks [Iridium Cao][14] for reviewing and correcting Traditional Chinese translations. 32 | 33 | [1]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/README_zh_CN.md 34 | [2]: http://www.sublimetext.com 35 | [3]: http://fcitx-im.org 36 | [4]: http://pinyin.sogou.com/linux/ 37 | [5]: http://www.sublimetext.com/3 38 | [6]: https://aur.archlinux.org/packages/sublime-text-dev-zh-cn 39 | [7]: http://firef0x.github.io/archrepo.html 40 | [8]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/src/fix/imfix/sublime_imfix.c 41 | [9]: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=7006&start=10#p41343 42 | [10]: http://sublimetext.iaixue.com 43 | [11]: https://github.com/Firef0x/SublimeText-i18n-zh/blob/master/README_zh_TW.md 44 | [12]: https://aur.archlinux.org/packages/sublime-text-dev-zh-tw 45 | [13]: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#archlinuxcn 46 | [14]: https://github.com/iridiumcao 47 | 48 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Encoding.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "用此编码保存", 4 | "children": 5 | [ 6 | { "caption": "UTF-8", "command": "set_encoding", "args": {"encoding": "utf-8" } }, 7 | { "caption": "UTF-16 LE", "command": "set_encoding", "args": {"encoding": "utf-16 le" } }, 8 | { "caption": "UTF-16 BE", "command": "set_encoding", "args": {"encoding": "utf-16 be" } }, 9 | { "caption": "-" }, 10 | { "caption": "西方语 (Windows 1252)", "command": "set_encoding", "args": {"encoding": "Western (Windows 1252)" } }, 11 | { "caption": "西方语 (ISO 8859-1)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-1)" } }, 12 | { "caption": "西方语 (ISO 8859-3)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-3)" } }, 13 | { "caption": "西方语 (ISO 8859-15)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-15)" } }, 14 | { "caption": "西方语 (Mac Roman)", "command": "set_encoding", "args": {"encoding": "Western (Mac Roman)" } }, 15 | { "caption": "DOS (CP 437)", "command": "set_encoding", "args": {"encoding": "DOS (CP 437)" } }, 16 | { "caption": "阿拉伯语 (Windows 1256)", "command": "set_encoding", "args": {"encoding": "Arabic (Windows 1256)" } }, 17 | { "caption": "阿拉伯语 (ISO 8859-6)", "command": "set_encoding", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 18 | { "caption": "波罗海语 (Windows 1257)", "command": "set_encoding", "args": {"encoding": "Baltic (Windows 1257)" } }, 19 | { "caption": "波罗海语 (ISO 8859-4)", "command": "set_encoding", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 20 | { "caption": "凯尔特语 (ISO 8859-14)", "command": "set_encoding", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 21 | { "caption": "中欧语 (Windows 1250)", "command": "set_encoding", "args": {"encoding": "Central European (Windows 1250)" } }, 22 | { "caption": "中欧语 (ISO 8859-2)", "command": "set_encoding", "args": {"encoding": "Central European (ISO 8859-2)" } }, 23 | { "caption": "西里尔语 (Windows 1251)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 24 | { "caption": "西里尔语 (Windows 866)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 866)" } }, 25 | { "caption": "西里尔语 (ISO 8859-5)", "command": "set_encoding", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 26 | { "caption": "西里尔语 (KOI8-R)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 27 | { "caption": "西里尔语 (KOI8-U)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 28 | { "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "set_encoding", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 29 | { "caption": "希腊语 (Windows 1253)", "command": "set_encoding", "args": {"encoding": "Greek (Windows 1253)" } }, 30 | { "caption": "希腊语 (ISO 8859-7)", "command": "set_encoding", "args": {"encoding": "Greek (ISO 8859-7)" } }, 31 | { "caption": "希伯来语 (Windows 1255)", "command": "set_encoding", "args": {"encoding": "Hebrew (Windows 1255)" } }, 32 | { "caption": "希伯来语 (ISO 8859-8)", "command": "set_encoding", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 33 | { "caption": "北欧语 (ISO 8859-10)", "command": "set_encoding", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 34 | { "caption": "罗马尼亚语 (ISO 8859-16)", "command": "set_encoding", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 35 | { "caption": "土耳其语 (Windows 1254)", "command": "set_encoding", "args": {"encoding": "Turkish (Windows 1254)" } }, 36 | { "caption": "土耳其语 (ISO 8859-9)", "command": "set_encoding", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 37 | { "caption": "越南语 (Windows 1258)", "command": "set_encoding", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 38 | { "caption": "-" }, 39 | { "caption": "十六进制", "command": "set_encoding", "args": {"encoding": "Hexadecimal" } } 40 | ] 41 | }, 42 | 43 | { 44 | "caption": "用此编码重新打开", 45 | "children": 46 | [ 47 | { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, 48 | { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, 49 | { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, 50 | { "caption": "-" }, 51 | { "caption": "西方语 (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, 52 | { "caption": "西方语 (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, 53 | { "caption": "西方语 (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, 54 | { "caption": "西方语 (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, 55 | { "caption": "西方语 (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, 56 | { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, 57 | { "caption": "阿拉伯语 (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, 58 | { "caption": "阿拉伯语 (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 59 | { "caption": "波罗海语 (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, 60 | { "caption": "波罗海语 (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 61 | { "caption": "凯尔特语 (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 62 | { "caption": "中欧语 (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, 63 | { "caption": "中欧语 (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, 64 | { "caption": "西里尔语 (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 65 | { "caption": "西里尔语 (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, 66 | { "caption": "西里尔语 (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 67 | { "caption": "西里尔语 (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 68 | { "caption": "西里尔语 (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 69 | { "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 70 | { "caption": "希腊语 (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, 71 | { "caption": "希腊语 (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, 72 | { "caption": "希伯来语 (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, 73 | { "caption": "希伯来语 (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 74 | { "caption": "北欧语 (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 75 | { "caption": "罗马尼亚语 (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 76 | { "caption": "土耳其语 (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, 77 | { "caption": "土耳其语 (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 78 | { "caption": "越南语 (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 79 | { "caption": "-" }, 80 | { "caption": "十六进制", "command": "reopen", "args": {"encoding": "Hexadecimal" } } 81 | ] 82 | }, 83 | ] 84 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Encoding.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "用此編碼儲存", 4 | "children": 5 | [ 6 | { "caption": "UTF-8", "command": "set_encoding", "args": {"encoding": "utf-8" } }, 7 | { "caption": "UTF-16 LE", "command": "set_encoding", "args": {"encoding": "utf-16 le" } }, 8 | { "caption": "UTF-16 BE", "command": "set_encoding", "args": {"encoding": "utf-16 be" } }, 9 | { "caption": "-" }, 10 | { "caption": "西方語 (Windows 1252)", "command": "set_encoding", "args": {"encoding": "Western (Windows 1252)" } }, 11 | { "caption": "西方語 (ISO 8859-1)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-1)" } }, 12 | { "caption": "西方語 (ISO 8859-3)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-3)" } }, 13 | { "caption": "西方語 (ISO 8859-15)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-15)" } }, 14 | { "caption": "西方語 (Mac Roman)", "command": "set_encoding", "args": {"encoding": "Western (Mac Roman)" } }, 15 | { "caption": "DOS (CP 437)", "command": "set_encoding", "args": {"encoding": "DOS (CP 437)" } }, 16 | { "caption": "阿拉伯語 (Windows 1256)", "command": "set_encoding", "args": {"encoding": "Arabic (Windows 1256)" } }, 17 | { "caption": "阿拉伯語 (ISO 8859-6)", "command": "set_encoding", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 18 | { "caption": "波羅海語 (Windows 1257)", "command": "set_encoding", "args": {"encoding": "Baltic (Windows 1257)" } }, 19 | { "caption": "波羅海語 (ISO 8859-4)", "command": "set_encoding", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 20 | { "caption": "凱爾特語 (ISO 8859-14)", "command": "set_encoding", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 21 | { "caption": "中歐語 (Windows 1250)", "command": "set_encoding", "args": {"encoding": "Central European (Windows 1250)" } }, 22 | { "caption": "中歐語 (ISO 8859-2)", "command": "set_encoding", "args": {"encoding": "Central European (ISO 8859-2)" } }, 23 | { "caption": "西裏爾語 (Windows 1251)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 24 | { "caption": "西裏爾語 (Windows 866)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 866)" } }, 25 | { "caption": "西裏爾語 (ISO 8859-5)", "command": "set_encoding", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 26 | { "caption": "西裏爾語 (KOI8-R)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 27 | { "caption": "西裏爾語 (KOI8-U)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 28 | { "caption": "愛沙尼亞語 (ISO 8859-13)", "command": "set_encoding", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 29 | { "caption": "希臘語 (Windows 1253)", "command": "set_encoding", "args": {"encoding": "Greek (Windows 1253)" } }, 30 | { "caption": "希臘語 (ISO 8859-7)", "command": "set_encoding", "args": {"encoding": "Greek (ISO 8859-7)" } }, 31 | { "caption": "希伯來語 (Windows 1255)", "command": "set_encoding", "args": {"encoding": "Hebrew (Windows 1255)" } }, 32 | { "caption": "希伯來語 (ISO 8859-8)", "command": "set_encoding", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 33 | { "caption": "北歐語 (ISO 8859-10)", "command": "set_encoding", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 34 | { "caption": "羅馬尼亞語 (ISO 8859-16)", "command": "set_encoding", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 35 | { "caption": "土耳其語 (Windows 1254)", "command": "set_encoding", "args": {"encoding": "Turkish (Windows 1254)" } }, 36 | { "caption": "土耳其語 (ISO 8859-9)", "command": "set_encoding", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 37 | { "caption": "越南語 (Windows 1258)", "command": "set_encoding", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 38 | { "caption": "-" }, 39 | { "caption": "十六進位碼", "command": "set_encoding", "args": {"encoding": "Hexadecimal" } } 40 | ] 41 | }, 42 | 43 | { 44 | "caption": "用此編碼重新開啟", 45 | "children": 46 | [ 47 | { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, 48 | { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, 49 | { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, 50 | { "caption": "-" }, 51 | { "caption": "西方語 (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, 52 | { "caption": "西方語 (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, 53 | { "caption": "西方語 (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, 54 | { "caption": "西方語 (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, 55 | { "caption": "西方語 (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, 56 | { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, 57 | { "caption": "阿拉伯語 (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, 58 | { "caption": "阿拉伯語 (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 59 | { "caption": "波羅海語 (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, 60 | { "caption": "波羅海語 (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 61 | { "caption": "凱爾特語 (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 62 | { "caption": "中歐語 (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, 63 | { "caption": "中歐語 (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, 64 | { "caption": "西裏爾語 (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 65 | { "caption": "西裏爾語 (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, 66 | { "caption": "西裏爾語 (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 67 | { "caption": "西裏爾語 (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 68 | { "caption": "西裏爾語 (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 69 | { "caption": "愛沙尼亞語 (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 70 | { "caption": "希臘語 (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, 71 | { "caption": "希臘語 (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, 72 | { "caption": "希伯來語 (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, 73 | { "caption": "希伯來語 (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 74 | { "caption": "北歐語 (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 75 | { "caption": "羅馬尼亞語 (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 76 | { "caption": "土耳其語 (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, 77 | { "caption": "土耳其語 (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 78 | { "caption": "越南語 (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 79 | { "caption": "-" }, 80 | { "caption": "十六進位碼", "command": "reopen", "args": {"encoding": "Hexadecimal" } } 81 | ] 82 | }, 83 | ] 84 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Encoding.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "Set Encoding", 4 | "children": 5 | [ 6 | { "caption": "UTF-8", "command": "set_encoding", "args": {"encoding": "utf-8" } }, 7 | { "caption": "UTF-16 LE", "command": "set_encoding", "args": {"encoding": "utf-16 le" } }, 8 | { "caption": "UTF-16 BE", "command": "set_encoding", "args": {"encoding": "utf-16 be" } }, 9 | { "caption": "-" }, 10 | { "caption": "Western (Windows 1252)", "command": "set_encoding", "args": {"encoding": "Western (Windows 1252)" } }, 11 | { "caption": "Western (ISO 8859-1)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-1)" } }, 12 | { "caption": "Western (ISO 8859-3)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-3)" } }, 13 | { "caption": "Western (ISO 8859-15)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-15)" } }, 14 | { "caption": "Western (Mac Roman)", "command": "set_encoding", "args": {"encoding": "Western (Mac Roman)" } }, 15 | { "caption": "DOS (CP 437)", "command": "set_encoding", "args": {"encoding": "DOS (CP 437)" } }, 16 | { "caption": "Arabic (Windows 1256)", "command": "set_encoding", "args": {"encoding": "Arabic (Windows 1256)" } }, 17 | { "caption": "Arabic (ISO 8859-6)", "command": "set_encoding", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 18 | { "caption": "Baltic (Windows 1257)", "command": "set_encoding", "args": {"encoding": "Baltic (Windows 1257)" } }, 19 | { "caption": "Baltic (ISO 8859-4)", "command": "set_encoding", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 20 | { "caption": "Celtic (ISO 8859-14)", "command": "set_encoding", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 21 | { "caption": "Central European (Windows 1250)", "command": "set_encoding", "args": {"encoding": "Central European (Windows 1250)" } }, 22 | { "caption": "Central European (ISO 8859-2)", "command": "set_encoding", "args": {"encoding": "Central European (ISO 8859-2)" } }, 23 | { "caption": "Cyrillic (Windows 1251)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 24 | { "caption": "Cyrillic (Windows 866)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 866)" } }, 25 | { "caption": "Cyrillic (ISO 8859-5)", "command": "set_encoding", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 26 | { "caption": "Cyrillic (KOI8-R)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 27 | { "caption": "Cyrillic (KOI8-U)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 28 | { "caption": "Estonian (ISO 8859-13)", "command": "set_encoding", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 29 | { "caption": "Greek (Windows 1253)", "command": "set_encoding", "args": {"encoding": "Greek (Windows 1253)" } }, 30 | { "caption": "Greek (ISO 8859-7)", "command": "set_encoding", "args": {"encoding": "Greek (ISO 8859-7)" } }, 31 | { "caption": "Hebrew (Windows 1255)", "command": "set_encoding", "args": {"encoding": "Hebrew (Windows 1255)" } }, 32 | { "caption": "Hebrew (ISO 8859-8)", "command": "set_encoding", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 33 | { "caption": "Nordic (ISO 8859-10)", "command": "set_encoding", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 34 | { "caption": "Romanian (ISO 8859-16)", "command": "set_encoding", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 35 | { "caption": "Turkish (Windows 1254)", "command": "set_encoding", "args": {"encoding": "Turkish (Windows 1254)" } }, 36 | { "caption": "Turkish (ISO 8859-9)", "command": "set_encoding", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 37 | { "caption": "Vietnamese (Windows 1258)", "command": "set_encoding", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 38 | { "caption": "-" }, 39 | { "caption": "Hexadecimal", "command": "set_encoding", "args": {"encoding": "Hexadecimal" } } 40 | ] 41 | }, 42 | 43 | { 44 | "caption": "Reopen with Encoding", 45 | "children": 46 | [ 47 | { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, 48 | { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, 49 | { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, 50 | { "caption": "-" }, 51 | { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, 52 | { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, 53 | { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, 54 | { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, 55 | { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, 56 | { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, 57 | { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, 58 | { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 59 | { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, 60 | { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 61 | { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 62 | { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, 63 | { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, 64 | { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 65 | { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, 66 | { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 67 | { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 68 | { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 69 | { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 70 | { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, 71 | { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, 72 | { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, 73 | { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 74 | { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 75 | { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 76 | { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, 77 | { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 78 | { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 79 | { "caption": "-" }, 80 | { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } } 81 | ] 82 | }, 83 | ] 84 | -------------------------------------------------------------------------------- /src/fix/imfix/sublime_imfix.c: -------------------------------------------------------------------------------- 1 | /* 2 | sublime-imfix.c 3 | Use LD_PRELOAD to interpose some function to fix sublime input method support for linux. 4 | By Cjacker Huang 5 | By whitequark@whitequark.org 6 | 7 | How to compile: 8 | gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC 9 | How to use: 10 | LD_PRELOAD=./libsublime-imfix.so sublime_text 11 | 12 | Changes: 13 | 2014 06-09 14 | 1, Fix cursor position update for sublime text 3. 15 | 2, Combine the codes from whitequark(fix for xim immodule) and add cursor update support for XIM immodule. 16 | */ 17 | 18 | /*for RTLD_NEXT*/ 19 | #define _GNU_SOURCE 20 | 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | #ifdef VERBOSE 32 | #define DEBUG(fmt, ...) do { \ 33 | FILE* err = fopen("/tmp/libsublime-immethod-fix.log", "a"); \ 34 | if (err) { \ 35 | fprintf(err, fmt, __VA_ARGS__); \ 36 | fclose(err); \ 37 | } \ 38 | } while(0) 39 | #else 40 | #define DEBUG(fmt, ...) 41 | #endif 42 | 43 | 44 | typedef GdkSegment GdkRegionBox; 45 | 46 | struct _GdkRegion 47 | { 48 | long size; 49 | long numRects; 50 | GdkRegionBox *rects; 51 | GdkRegionBox extents; 52 | }; 53 | 54 | GtkIMContext *local_context; 55 | 56 | 57 | //this func is interposed to support cursor position update. 58 | void 59 | gdk_region_get_clipbox (const GdkRegion *region, 60 | GdkRectangle *rectangle) 61 | { 62 | g_return_if_fail (region != NULL); 63 | g_return_if_fail (rectangle != NULL); 64 | 65 | rectangle->x = region->extents.x1; 66 | rectangle->y = region->extents.y1; 67 | rectangle->width = region->extents.x2 - region->extents.x1; 68 | rectangle->height = region->extents.y2 - region->extents.y1; 69 | GdkRectangle rect; 70 | rect.x = rectangle->x; 71 | rect.y = rectangle->y; 72 | rect.width = 0; 73 | rect.height = rectangle->height; 74 | //The caret width is 2 in sublime text 2 75 | //And is 1 in sublime text 3. 76 | //Maybe sometimes we will make a mistake, but for most of the time, it should be the caret. 77 | if((rectangle->width == 2 || rectangle->width == 1) && GTK_IS_IM_CONTEXT(local_context)) { 78 | gtk_im_context_set_cursor_location(local_context, rectangle); 79 | } 80 | } 81 | 82 | //this is needed, for example, if you input something in file dialog and return back the edit area 83 | //context will lost, so here we set it again. 84 | static GdkFilterReturn event_filter (GdkXEvent *xevent, GdkEvent *event, gpointer im_context) 85 | { 86 | XEvent *xev = (XEvent *)xevent; 87 | if(xev->type == KeyRelease && GTK_IS_IM_CONTEXT(im_context)) { 88 | GdkWindow * win = g_object_get_data(G_OBJECT(im_context),"window"); 89 | if(GDK_IS_WINDOW(win)) 90 | gtk_im_context_set_client_window(im_context, win); 91 | } 92 | return GDK_FILTER_CONTINUE; 93 | } 94 | 95 | void gtk_im_context_set_client_window (GtkIMContext *context, 96 | GdkWindow *window) 97 | { 98 | GtkIMContextClass *klass; 99 | g_return_if_fail (GTK_IS_IM_CONTEXT (context)); 100 | klass = GTK_IM_CONTEXT_GET_CLASS (context); 101 | if (klass->set_client_window) 102 | klass->set_client_window (context, window); 103 | 104 | //below is our interposed codes to save the context to local_context. 105 | if(!GDK_IS_WINDOW (window)) 106 | return; 107 | g_object_set_data(G_OBJECT(context),"window",window); 108 | int width = gdk_window_get_width(window); 109 | int height = gdk_window_get_height(window); 110 | if(width != 0 && height !=0) { 111 | gtk_im_context_focus_in(context); 112 | local_context = context; 113 | } 114 | //only add this event_filter when using 'fcitx' immodule. 115 | //for xim immodule, this function is as same as original from gtk2. 116 | const gchar * immodule = g_getenv("GTK_IM_MODULE"); 117 | if(immodule && !strcmp(immodule, "fcitx")) { 118 | gdk_window_add_filter (window, event_filter, context); 119 | } 120 | } 121 | 122 | 123 | /*below codes is from whitequark, fix for xim immodule*/ 124 | 125 | /* See gtkimcontextxim.c */ 126 | GType gtk_type_im_context_xim = 0; 127 | 128 | #define GTK_TYPE_IM_CONTEXT_XIM (gtk_type_im_context_xim) 129 | #define GTK_IM_CONTEXT_XIM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_XIM, GtkIMContextXIM)) 130 | #define GTK_IM_CONTEXT_XIM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_XIM, GtkIMContextXIMClass)) 131 | #define GTK_IS_IM_CONTEXT_XIM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_XIM)) 132 | #define GTK_IS_IM_CONTEXT_XIM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_XIM)) 133 | #define GTK_IM_CONTEXT_XIM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_XIM, GtkIMContextXIMClass)) 134 | 135 | typedef struct _GtkIMContextXIM GtkIMContextXIM; 136 | typedef struct _GtkIMContextXIMClass GtkIMContextXIMClass; 137 | 138 | struct _GtkIMContextXIMClass 139 | { 140 | GtkIMContextClass parent_class; 141 | }; 142 | 143 | typedef struct _StatusWindow StatusWindow; 144 | typedef struct _GtkXIMInfo GtkXIMInfo; 145 | 146 | struct _GtkIMContextXIM 147 | { 148 | GtkIMContext object; 149 | 150 | GtkXIMInfo *im_info; 151 | 152 | gchar *locale; 153 | gchar *mb_charset; 154 | 155 | GdkWindow *client_window; 156 | GtkWidget *client_widget; 157 | 158 | /* The status window for this input context; we claim the 159 | * * status window when we are focused and have created an XIC 160 | * */ 161 | StatusWindow *status_window; 162 | 163 | gint preedit_size; 164 | gint preedit_length; 165 | gunichar *preedit_chars; 166 | XIMFeedback *feedbacks; 167 | 168 | gint preedit_cursor; 169 | 170 | XIMCallback preedit_start_callback; 171 | XIMCallback preedit_done_callback; 172 | XIMCallback preedit_draw_callback; 173 | XIMCallback preedit_caret_callback; 174 | 175 | XIMCallback status_start_callback; 176 | XIMCallback status_done_callback; 177 | XIMCallback status_draw_callback; 178 | 179 | XIMCallback string_conversion_callback; 180 | 181 | XIC ic; 182 | 183 | guint filter_key_release : 1; 184 | guint use_preedit : 1; 185 | guint finalizing : 1; 186 | guint in_toplevel : 1; 187 | guint has_focus : 1; 188 | }; 189 | 190 | static GClassInitFunc orig_gtk_im_context_xim_class_init; 191 | static GType (*orig_g_type_module_register_type)(GTypeModule *, 192 | GType, const gchar *, 193 | const GTypeInfo *, GTypeFlags); 194 | static gboolean (*orig_gtk_im_context_xim_filter_keypress)(GtkIMContext *context, 195 | GdkEventKey *event); 196 | 197 | static gboolean 198 | hook_gtk_im_context_xim_filter_keypress(GtkIMContext *context, GdkEventKey *event) { 199 | GtkIMContextXIM *im_context_xim = GTK_IM_CONTEXT_XIM(context); 200 | if (!im_context_xim->client_window) { 201 | DEBUG("im_context_xim == %p\n", im_context_xim); 202 | DEBUG("event->window == %p\n", event->window); 203 | 204 | gtk_im_context_set_client_window(context, event->window); 205 | } 206 | 207 | return orig_gtk_im_context_xim_filter_keypress(context, event); 208 | } 209 | 210 | static void 211 | hook_gtk_im_context_xim_class_init (GtkIMContextXIMClass *class) { 212 | orig_gtk_im_context_xim_class_init(class, NULL); /* wat? */ 213 | 214 | GtkIMContextClass *im_context_class = GTK_IM_CONTEXT_CLASS (class); 215 | 216 | assert(!orig_gtk_im_context_xim_filter_keypress); 217 | orig_gtk_im_context_xim_filter_keypress = im_context_class->filter_keypress; 218 | im_context_class->filter_keypress = hook_gtk_im_context_xim_filter_keypress; 219 | DEBUG("orig_gtk_im_context_xim_filter_keypress: %p\n", 220 | orig_gtk_im_context_xim_filter_keypress); 221 | } 222 | 223 | GType 224 | g_type_module_register_type (GTypeModule *module, 225 | GType parent_type, 226 | const gchar *type_name, 227 | const GTypeInfo *type_info, 228 | GTypeFlags flags) { 229 | if (!orig_g_type_module_register_type) { 230 | orig_g_type_module_register_type = dlsym(RTLD_NEXT, "g_type_module_register_type"); 231 | assert(orig_g_type_module_register_type); 232 | } 233 | 234 | if (type_name && !strcmp(type_name, "GtkIMContextXIM")) { 235 | assert(!orig_gtk_im_context_xim_class_init); 236 | orig_gtk_im_context_xim_class_init = type_info->class_init; 237 | 238 | assert(sizeof(GtkIMContextXIM) == type_info->instance_size); 239 | 240 | const GTypeInfo hook_im_context_xim_info = 241 | { 242 | type_info->class_size, 243 | type_info->base_init, 244 | type_info->base_finalize, 245 | (GClassInitFunc) hook_gtk_im_context_xim_class_init, 246 | type_info->class_finalize, 247 | type_info->class_data, 248 | type_info->instance_size, 249 | type_info->n_preallocs, 250 | type_info->instance_init, 251 | }; 252 | 253 | DEBUG("orig_gtk_im_context_xim_class_init: %p\n", orig_gtk_im_context_xim_class_init); 254 | 255 | gtk_type_im_context_xim = 256 | orig_g_type_module_register_type(module, parent_type, type_name, 257 | &hook_im_context_xim_info, flags); 258 | 259 | return gtk_type_im_context_xim; 260 | } 261 | 262 | return orig_g_type_module_register_type(module, parent_type, type_name, type_info, flags); 263 | } 264 | 265 | -------------------------------------------------------------------------------- /src/i18n/en_US/Default.sublime-package/Main.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "File", 4 | "mnemonic": "F", 5 | "id": "file", 6 | "children": 7 | [ 8 | { "command": "new_file", "caption": "New File", "mnemonic": "N" }, 9 | 10 | { "command": "prompt_open_file", "caption": "Open File…", "mnemonic": "O", "platform": "!OSX" }, 11 | { "command": "prompt_open_folder", "caption": "Open Folder…", "platform": "!OSX" }, 12 | { "command": "prompt_open", "caption": "Open…", "platform": "OSX" }, 13 | { 14 | "caption": "Open Recent", 15 | "mnemonic": "R", 16 | "children": 17 | [ 18 | { "command": "reopen_last_file", "caption": "Reopen Closed File" }, 19 | { "caption": "-" }, 20 | { "command": "open_recent_file", "args": {"index": 0 } }, 21 | { "command": "open_recent_file", "args": {"index": 1 } }, 22 | { "command": "open_recent_file", "args": {"index": 2 } }, 23 | { "command": "open_recent_file", "args": {"index": 3 } }, 24 | { "command": "open_recent_file", "args": {"index": 4 } }, 25 | { "command": "open_recent_file", "args": {"index": 5 } }, 26 | { "command": "open_recent_file", "args": {"index": 6 } }, 27 | { "command": "open_recent_file", "args": {"index": 7 } }, 28 | { "caption": "-" }, 29 | { "command": "open_recent_folder", "args": {"index": 0 } }, 30 | { "command": "open_recent_folder", "args": {"index": 1 } }, 31 | { "command": "open_recent_folder", "args": {"index": 2 } }, 32 | { "command": "open_recent_folder", "args": {"index": 3 } }, 33 | { "command": "open_recent_folder", "args": {"index": 4 } }, 34 | { "command": "open_recent_folder", "args": {"index": 5 } }, 35 | { "command": "open_recent_folder", "args": {"index": 6 } }, 36 | { "command": "open_recent_folder", "args": {"index": 7 } }, 37 | { "caption": "-" }, 38 | { "command": "clear_recent_files", "caption": "Clear Items" } 39 | ] 40 | }, 41 | { 42 | "caption": "Reopen with Encoding", 43 | "children": 44 | [ 45 | { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, 46 | { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, 47 | { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, 48 | { "caption": "-" }, 49 | { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, 50 | { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, 51 | { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, 52 | { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, 53 | { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, 54 | { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, 55 | { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, 56 | { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 57 | { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, 58 | { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 59 | { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 60 | { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, 61 | { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, 62 | { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 63 | { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, 64 | { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 65 | { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 66 | { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 67 | { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 68 | { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, 69 | { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, 70 | { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, 71 | { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 72 | { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 73 | { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 74 | { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, 75 | { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 76 | { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 77 | { "caption": "-" }, 78 | { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } } 79 | ] 80 | }, 81 | { "command": "clone_file", "caption": "New View into File", "mnemonic": "e" }, 82 | { "command": "save", "caption": "Save", "mnemonic": "S" }, 83 | { 84 | "caption": "Save with Encoding", 85 | "children": 86 | [ 87 | { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } }, 88 | { "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } }, 89 | { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } }, 90 | { "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } }, 91 | { "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } }, 92 | { "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } }, 93 | { "caption": "-" }, 94 | { "caption": "Western (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } }, 95 | { "caption": "Western (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } }, 96 | { "caption": "Western (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } }, 97 | { "caption": "Western (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } }, 98 | { "caption": "Western (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } }, 99 | { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } }, 100 | { "caption": "Arabic (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } }, 101 | { "caption": "Arabic (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 102 | { "caption": "Baltic (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } }, 103 | { "caption": "Baltic (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 104 | { "caption": "Celtic (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 105 | { "caption": "Central European (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } }, 106 | { "caption": "Central European (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } }, 107 | { "caption": "Cyrillic (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 108 | { "caption": "Cyrillic (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } }, 109 | { "caption": "Cyrillic (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 110 | { "caption": "Cyrillic (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 111 | { "caption": "Cyrillic (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 112 | { "caption": "Estonian (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 113 | { "caption": "Greek (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } }, 114 | { "caption": "Greek (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } }, 115 | { "caption": "Hebrew (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } }, 116 | { "caption": "Hebrew (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 117 | { "caption": "Nordic (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 118 | { "caption": "Romanian (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 119 | { "caption": "Turkish (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } }, 120 | { "caption": "Turkish (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 121 | { "caption": "Vietnamese (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 122 | { "caption": "-" }, 123 | { "caption": "Hexadecimal", "command": "save", "args": {"encoding": "Hexadecimal" } } 124 | ] 125 | }, 126 | { "command": "prompt_save_as", "caption": "Save As…", "mnemonic": "A" }, 127 | { "command": "save_all", "caption": "Save All", "mnemonic": "l" }, 128 | { "caption": "-", "id": "window" }, 129 | { "command": "new_window", "caption": "New Window", "mnemonic": "W" }, 130 | { "command": "close_window", "caption": "Close Window" }, 131 | { "caption": "-", "id": "close" }, 132 | { "command": "close", "caption": "Close File", "mnemonic": "C" }, 133 | { "command": "revert", "caption": "Revert File", "mnemonic": "v" }, 134 | { "command": "close_all", "caption": "Close All Files" }, 135 | { "caption": "-", "id": "exit" }, 136 | { "command": "exit", "caption": "Exit", "mnemonic": "x", "platform": "Windows" }, 137 | { "command": "exit", "caption": "Quit", "mnemonic": "Q", "platform": "Linux" }, 138 | ] 139 | }, 140 | { 141 | "caption": "Edit", 142 | "mnemonic": "E", 143 | "id": "edit", 144 | "children": 145 | [ 146 | { "command": "undo", "mnemonic": "U" }, 147 | { "command": "redo_or_repeat", "mnemonic": "R" }, 148 | { 149 | "caption": "Undo Selection", 150 | "children": 151 | [ 152 | { "command": "soft_undo" }, 153 | { "command": "soft_redo" } 154 | ] 155 | }, 156 | { "caption": "-", "id": "clipboard" }, 157 | { "command": "copy", "mnemonic": "C" }, 158 | { "command": "cut", "mnemonic": "t" }, 159 | { "command": "paste", "mnemonic": "P" }, 160 | { "command": "paste_and_indent", "mnemonic": "I" }, 161 | { "command": "paste_from_history", "caption": "Paste from History" }, 162 | { "caption": "-" }, 163 | { 164 | "caption": "Line", "mnemonic": "L", 165 | "id": "line", 166 | "children": 167 | [ 168 | { "command": "indent" }, 169 | { "command": "unindent" }, 170 | { "command": "reindent", "args": {"single_line": true} }, 171 | { "command": "swap_line_up" }, 172 | { "command": "swap_line_down" }, 173 | { "command": "duplicate_line" }, 174 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "Delete Line" }, 175 | { "command": "join_lines" } 176 | ] 177 | }, 178 | { 179 | "caption": "Comment", "mnemonic": "m", 180 | "id": "comment", 181 | "children": 182 | [ 183 | { "command": "toggle_comment", "args": {"block": false}, "caption": "Toggle Comment" }, 184 | { "command": "toggle_comment", "args": {"block": true}, "caption": "Toggle Block Comment" } 185 | ] 186 | }, 187 | { 188 | "caption": "Text", "mnemonic": "T", 189 | "id": "text", 190 | "children": 191 | [ 192 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}, "caption": "Insert Line Before" }, 193 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"}, "caption": "Insert Line After" }, 194 | { "caption": "-" }, 195 | { "command": "delete_word", "args": { "forward": true }, "caption": "Delete Word Forward" }, 196 | { "command": "delete_word", "args": { "forward": false }, "caption": "Delete Word Backward" }, 197 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "Delete Line" }, 198 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "Delete to End" }, 199 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "Delete to Beginning" }, 200 | { "caption": "-" }, 201 | { "command": "transpose" } 202 | ] 203 | }, 204 | { 205 | "caption": "Tag", 206 | "id": "tag", 207 | "children": 208 | [ 209 | { "command": "close_tag" }, 210 | { "command": "expand_selection", "args": {"to": "tag"}, "caption": "Expand Selection to Tag" }, 211 | { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "Wrap Selection With Tag" } 212 | ] 213 | }, 214 | { 215 | "caption": "Mark", 216 | "id": "mark", 217 | "children": 218 | [ 219 | { "command": "set_mark" }, 220 | { "command": "select_to_mark", "caption": "Select to Mark" }, 221 | { "command": "delete_to_mark", "caption": "Delete to Mark" }, 222 | { "command": "swap_with_mark", "caption": "Swap with Mark" }, 223 | { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "Clear Mark" }, 224 | { "caption": "-" }, 225 | { "command": "yank" } 226 | ] 227 | }, 228 | { 229 | "caption": "Code Folding", 230 | "id": "fold", 231 | "children": 232 | [ 233 | { "command": "fold" }, 234 | { "command": "unfold" }, 235 | { "command": "unfold_all", "caption": "Unfold All" }, 236 | { "caption": "-" }, 237 | { "caption": "Fold All", "command": "fold_by_level", "args": {"level": 1} }, 238 | { "caption": "Fold Level 2", "command": "fold_by_level", "args": {"level": 2} }, 239 | { "caption": "Fold Level 3", "command": "fold_by_level", "args": {"level": 3} }, 240 | { "caption": "Fold Level 4", "command": "fold_by_level", "args": {"level": 4} }, 241 | { "caption": "Fold Level 5", "command": "fold_by_level", "args": {"level": 5} }, 242 | { "caption": "Fold Level 6", "command": "fold_by_level", "args": {"level": 6} }, 243 | { "caption": "Fold Level 7", "command": "fold_by_level", "args": {"level": 7} }, 244 | { "caption": "Fold Level 8", "command": "fold_by_level", "args": {"level": 8} }, 245 | { "caption": "Fold Level 9", "command": "fold_by_level", "args": {"level": 9} }, 246 | { "caption": "-" }, 247 | { "command": "fold_tag_attributes", "caption": "Fold Tag Attributes" } 248 | ] 249 | }, 250 | { 251 | "caption": "Convert Case", "mnemonic": "a", 252 | "id": "convert_case", 253 | "children": 254 | [ 255 | { "command": "title_case", "caption": "Title Case" }, 256 | { "command": "upper_case", "caption": "Upper Case" }, 257 | { "command": "lower_case", "caption": "Lower Case" }, 258 | { "command": "swap_case", "caption": "Swap Case" } 259 | ] 260 | }, 261 | { 262 | "caption": "Wrap", 263 | "id": "wrap", 264 | "children": 265 | [ 266 | { "command": "wrap_lines", "caption": "Wrap Paragraph at Ruler" }, 267 | { "command": "wrap_lines", "args": {"width": 70}, "caption": "Wrap paragraph at 70 characters" }, 268 | { "command": "wrap_lines", "args": {"width": 78}, "caption": "Wrap paragraph at 78 characters" }, 269 | { "command": "wrap_lines", "args": {"width": 80}, "caption": "Wrap paragraph at 80 characters" }, 270 | { "command": "wrap_lines", "args": {"width": 100}, "caption": "Wrap paragraph at 100 characters" }, 271 | { "command": "wrap_lines", "args": {"width": 120}, "caption": "Wrap paragraph at 120 characters" } 272 | ] 273 | }, 274 | { "command": "auto_complete", "caption": "Show Completions" }, 275 | { "caption": "-", "id": "permute" }, 276 | 277 | { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "Sort Lines", "mnemonic": "S" }, 278 | { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "Sort Lines (Case Sensitive)" }, 279 | { 280 | "caption": "Permute Lines", 281 | "children": 282 | [ 283 | { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "Reverse" }, 284 | { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "Unique" }, 285 | { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "Shuffle" } 286 | ] 287 | }, 288 | { 289 | "caption": "Permute Selections", 290 | "children": 291 | [ 292 | { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "Sort" }, 293 | { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "Sort (Case Sensitive)" }, 294 | { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "Reverse" }, 295 | { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "Unique" }, 296 | { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "Shuffle" } 297 | ] 298 | }, 299 | { "caption": "-", "id": "end" } 300 | ] 301 | }, 302 | { 303 | "caption": "Selection", 304 | "mnemonic": "S", 305 | "id": "selection", 306 | "children": 307 | [ 308 | { "command": "split_selection_into_lines", "caption": "Split into Lines" }, 309 | { "command": "select_lines", "args": {"forward": false}, "caption": "Add Previous Line" }, 310 | { "command": "select_lines", "args": {"forward": true}, "caption": "Add Next Line" }, 311 | { "command": "single_selection" }, 312 | { "command": "invert_selection" }, 313 | { "caption": "-" }, 314 | { "command": "select_all" }, 315 | { "command": "expand_selection", "args": {"to": "line"}, "caption": "Expand Selection to Line" }, 316 | { "command": "find_under_expand", "caption": "Expand Selection to Word" }, 317 | { "command": "expand_selection_to_paragraph", "caption": "Expand Selection to Paragraph" }, 318 | { "command": "expand_selection", "args": {"to": "scope"}, "caption": "Expand Selection to Scope" }, 319 | { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "Expand Selection to Brackets" }, 320 | { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "Expand Selection to Indentation" }, 321 | { "command": "expand_selection", "args": {"to": "tag"}, "caption": "Expand Selection to Tag" } 322 | ] 323 | }, 324 | { 325 | "caption": "Find", 326 | "mnemonic": "i", 327 | "id": "find", 328 | "children": 329 | [ 330 | { "command": "show_panel", "args": {"panel": "find", "reverse": false}, "caption": "Find…" }, 331 | { "command": "find_next" }, 332 | { "command": "find_prev", "caption": "Find Previous" }, 333 | { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "Incremental Find" }, 334 | { "caption": "-" }, 335 | { "command": "show_panel", "args": {"panel": "replace", "reverse": false}, "caption": "Replace…" }, 336 | { "command": "replace_next" }, 337 | { "caption": "-" }, 338 | { "command": "find_under", "caption": "Quick Find" }, 339 | { "command": "find_all_under", "caption": "Quick Find All" }, 340 | { "command": "find_under_expand", "caption": "Quick Add Next" }, 341 | { "command": "find_under_expand_skip", "caption": "Quick Skip Next", "platform": "!OSX" }, 342 | { "caption": "-" }, 343 | { "command": "slurp_find_string", "caption": "Use Selection for Find" }, 344 | { "command": "slurp_replace_string", "caption": "Use Selection for Replace" }, 345 | { "caption": "-" }, 346 | { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "Find in Files…" }, 347 | { 348 | "caption": "Find Results", 349 | "mnemonic": "R", 350 | "children": 351 | [ 352 | { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "Show Results Panel" }, 353 | { "command": "next_result" }, 354 | { "command": "prev_result", "caption": "Previous Result" } 355 | ] 356 | } 357 | ] 358 | }, 359 | { 360 | "caption": "View", 361 | "mnemonic": "V", 362 | "id": "view", 363 | "children": 364 | [ 365 | { 366 | "caption": "Side Bar", 367 | "id": "side_bar", 368 | "children": 369 | [ 370 | { "command": "toggle_side_bar" }, 371 | { "caption": "-" }, 372 | { "command": "toggle_show_open_files" } 373 | ] 374 | }, 375 | { "command": "toggle_minimap" }, 376 | { "command": "toggle_tabs" }, 377 | { "command": "toggle_status_bar" }, 378 | { "command": "toggle_menu" }, 379 | { "command": "show_panel", "args": {"panel": "console", "toggle": true} }, 380 | { "caption": "-", "id": "full_screen" }, 381 | { "command": "toggle_full_screen" }, 382 | { "command": "toggle_distraction_free" }, 383 | { "caption": "-", "id": "groups" }, 384 | { 385 | "caption": "Layout", 386 | "mnemonic": "L", 387 | "id": "layout", 388 | "children": 389 | [ 390 | { 391 | "caption": "Single", 392 | "command": "set_layout", 393 | "args": 394 | { 395 | "cols": [0.0, 1.0], 396 | "rows": [0.0, 1.0], 397 | "cells": [[0, 0, 1, 1]] 398 | } 399 | }, 400 | { 401 | "caption": "Columns: 2", 402 | "command": "set_layout", 403 | "args": 404 | { 405 | "cols": [0.0, 0.5, 1.0], 406 | "rows": [0.0, 1.0], 407 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] 408 | } 409 | }, 410 | { 411 | "caption": "Columns: 3", 412 | "command": "set_layout", 413 | "args": 414 | { 415 | "cols": [0.0, 0.33, 0.66, 1.0], 416 | "rows": [0.0, 1.0], 417 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] 418 | } 419 | }, 420 | { 421 | "caption": "Columns: 4", 422 | "command": "set_layout", 423 | "args": 424 | { 425 | "cols": [0.0, 0.25, 0.5, 0.75, 1.0], 426 | "rows": [0.0, 1.0], 427 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] 428 | } 429 | }, 430 | { 431 | "caption": "Rows: 2", 432 | "command": "set_layout", 433 | "args": 434 | { 435 | "cols": [0.0, 1.0], 436 | "rows": [0.0, 0.5, 1.0], 437 | "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] 438 | } 439 | }, 440 | { 441 | "caption": "Rows: 3", 442 | "command": "set_layout", 443 | "args": 444 | { 445 | "cols": [0.0, 1.0], 446 | "rows": [0.0, 0.33, 0.66, 1.0], 447 | "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] 448 | } 449 | }, 450 | { 451 | "caption": "Grid: 4", 452 | "command": "set_layout", 453 | "args": 454 | { 455 | "cols": [0.0, 0.5, 1.0], 456 | "rows": [0.0, 0.5, 1.0], 457 | "cells": 458 | [ 459 | [0, 0, 1, 1], [1, 0, 2, 1], 460 | [0, 1, 1, 2], [1, 1, 2, 2] 461 | ] 462 | } 463 | } 464 | ] 465 | }, 466 | { 467 | "caption": "Groups", 468 | "children": 469 | [ 470 | { "command": "new_pane", "caption": "Move File to New Group" }, 471 | { "command": "new_pane", "args": {"move": false}, "caption": "New Group" }, 472 | { "command": "close_pane", "caption": "Close Group" }, 473 | 474 | { "caption": "-" }, 475 | 476 | { 477 | "caption": "Max Columns: 1", 478 | "command": "set_max_columns", 479 | "checkbox": true, 480 | "args": { "columns": 1 } 481 | }, 482 | { 483 | "caption": "Max Columns: 2", 484 | "command": "set_max_columns", 485 | "checkbox": true, 486 | "args": { "columns": 2 } 487 | }, 488 | { 489 | "caption": "Max Columns: 3", 490 | "command": "set_max_columns", 491 | "checkbox": true, 492 | "args": { "columns": 3 } 493 | }, 494 | { 495 | "caption": "Max Columns: 4", 496 | "command": "set_max_columns", 497 | "checkbox": true, 498 | "args": { "columns": 4 } 499 | }, 500 | { 501 | "caption": "Max Columns: 5", 502 | "command": "set_max_columns", 503 | "checkbox": true, 504 | "args": { "columns": 5 } 505 | }, 506 | ] 507 | }, 508 | { 509 | "caption": "Focus Group", 510 | "mnemonic": "F", 511 | "children": 512 | [ 513 | 514 | { "command": "focus_neighboring_group", "caption": "Next" }, 515 | { "command": "focus_neighboring_group", "args": {"forward": false}, "caption": "Previous" }, 516 | { "caption": "-" }, 517 | { "command": "focus_group", "args": {"group": 0}, "caption": "Group 1" }, 518 | { "command": "focus_group", "args": {"group": 1}, "caption": "Group 2" }, 519 | { "command": "focus_group", "args": {"group": 2}, "caption": "Group 3" }, 520 | { "command": "focus_group", "args": {"group": 3}, "caption": "Group 4" } 521 | ] 522 | }, 523 | { 524 | "caption": "Move File to Group", 525 | "mnemonic": "M", 526 | "children": 527 | [ 528 | { "command": "move_to_neighboring_group", "caption": "Next" }, 529 | { "command": "move_to_neighboring_group", "args": {"forward": false}, "caption": "Previous" }, 530 | { "caption": "-" }, 531 | { "command": "move_to_group", "args": {"group": 0}, "caption": "Group 1" }, 532 | { "command": "move_to_group", "args": {"group": 1}, "caption": "Group 2" }, 533 | { "command": "move_to_group", "args": {"group": 2}, "caption": "Group 3" }, 534 | { "command": "move_to_group", "args": {"group": 3}, "caption": "Group 4" } 535 | ] 536 | }, 537 | { "caption": "-" }, 538 | { 539 | "caption": "Syntax", 540 | "mnemonic": "S", 541 | "id": "syntax", 542 | "children": [ { "command": "$file_types" } ] 543 | }, 544 | { 545 | "caption": "Indentation", 546 | "mnemonic": "I", 547 | "id": "indentation", 548 | "children": 549 | [ 550 | { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "Indent Using Spaces", "checkbox": true }, 551 | { "caption": "-" }, 552 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab Width: 1", "checkbox": true }, 553 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab Width: 2", "checkbox": true }, 554 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab Width: 3", "checkbox": true }, 555 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab Width: 4", "checkbox": true }, 556 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab Width: 5", "checkbox": true }, 557 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab Width: 6", "checkbox": true }, 558 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab Width: 7", "checkbox": true }, 559 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab Width: 8", "checkbox": true }, 560 | { "caption": "-" }, 561 | { "command": "detect_indentation", "caption": "Guess Settings From Buffer" }, 562 | { "caption": "-" }, 563 | { "command": "expand_tabs", "caption": "Convert Indentation to Spaces", "args": {"set_translate_tabs": true} }, 564 | { "command": "unexpand_tabs", "caption": "Convert Indentation to Tabs", "args": {"set_translate_tabs": true} } 565 | ] 566 | }, 567 | { 568 | "caption": "Line Endings", 569 | "mnemonic": "n", 570 | "id": "line_endings", 571 | "children": 572 | [ 573 | { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows", "checkbox": true }, 574 | { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix", "checkbox": true }, 575 | { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9", "checkbox": true } 576 | ] 577 | }, 578 | { "caption": "-", "id": "settings" }, 579 | { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "Word Wrap", "mnemonic": "W", "checkbox": true }, 580 | { 581 | "caption": "Word Wrap Column", 582 | "children": 583 | [ 584 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "Automatic", "checkbox": true }, 585 | { "caption": "-" }, 586 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true }, 587 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true }, 588 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true }, 589 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true }, 590 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true } 591 | ] 592 | }, 593 | { 594 | "caption": "Ruler", 595 | "children": 596 | [ 597 | { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "None", "checkbox": true }, 598 | { "caption": "-" }, 599 | { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true }, 600 | { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true }, 601 | { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true }, 602 | { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true }, 603 | { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true } 604 | ] 605 | }, 606 | { "caption": "-" }, 607 | { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "Spell Check", "checkbox": true }, 608 | { "command": "next_misspelling" }, 609 | { "command": "prev_misspelling" }, 610 | { 611 | "caption": "Dictionary", 612 | "children": [ { "command": "$dictionaries" } ] 613 | } 614 | ] 615 | }, 616 | { 617 | "caption": "Goto", 618 | "mnemonic": "G", 619 | "id": "goto", 620 | "children": 621 | [ 622 | { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "Goto Anything…", "mnemonic": "A" }, 623 | { "caption": "-" }, 624 | { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "Goto Symbol…" }, 625 | { "command": "goto_symbol_in_project", "caption": "Goto Symbol in Project…" }, 626 | { "command": "goto_definition", "caption": "Goto Definition…" }, 627 | // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "Goto Word…" }, 628 | { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "Goto Line…" }, 629 | { "caption": "-" }, 630 | { "command": "jump_back", "caption": "Jump Back" }, 631 | { "command": "jump_forward", "caption": "Jump Forward" }, 632 | { "caption": "-" }, 633 | { 634 | "caption": "Switch File", 635 | "mnemonic": "t", 636 | "id": "switch_file", 637 | "children": 638 | [ 639 | { "command": "next_view", "caption": "Next File" }, 640 | { "command": "prev_view", "caption": "Previous File" }, 641 | { "caption": "-" }, 642 | { "command": "next_view_in_stack", "caption": "Next File in Stack" }, 643 | { "command": "prev_view_in_stack", "caption": "Previous File in Stack" }, 644 | { "caption": "-" }, 645 | { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]}, "caption": "Switch Header/Implementation", "mnemonic": "H" }, 646 | { "caption": "-" }, 647 | { "command": "select_by_index", "args": { "index": 0 } }, 648 | { "command": "select_by_index", "args": { "index": 1 } }, 649 | { "command": "select_by_index", "args": { "index": 2 } }, 650 | { "command": "select_by_index", "args": { "index": 3 } }, 651 | { "command": "select_by_index", "args": { "index": 4 } }, 652 | { "command": "select_by_index", "args": { "index": 5 } }, 653 | { "command": "select_by_index", "args": { "index": 6 } }, 654 | { "command": "select_by_index", "args": { "index": 7 } }, 655 | { "command": "select_by_index", "args": { "index": 8 } }, 656 | { "command": "select_by_index", "args": { "index": 9 } } 657 | ] 658 | }, 659 | { "caption": "-" }, 660 | { 661 | "caption": "Scroll", 662 | "mnemonic": "S", 663 | "id": "scroll", 664 | "children": 665 | [ 666 | { "command": "show_at_center", "caption": "Scroll to Selection" }, 667 | { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "Line Up" }, 668 | { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "Line Down" } 669 | ] 670 | }, 671 | { 672 | "caption": "Bookmarks", 673 | "mnemonic": "B", 674 | "id": "bookmarks", 675 | "children": 676 | [ 677 | { "command": "toggle_bookmark" }, 678 | { "command": "next_bookmark" }, 679 | { "command": "prev_bookmark" }, 680 | { "command": "clear_bookmarks" }, 681 | { "command": "select_all_bookmarks" }, 682 | { "caption": "-" }, 683 | { "command": "select_bookmark", "args": {"index": 0} }, 684 | { "command": "select_bookmark", "args": {"index": 1} }, 685 | { "command": "select_bookmark", "args": {"index": 2} }, 686 | { "command": "select_bookmark", "args": {"index": 3} }, 687 | { "command": "select_bookmark", "args": {"index": 4} }, 688 | { "command": "select_bookmark", "args": {"index": 5} }, 689 | { "command": "select_bookmark", "args": {"index": 6} }, 690 | { "command": "select_bookmark", "args": {"index": 7} }, 691 | { "command": "select_bookmark", "args": {"index": 8} }, 692 | { "command": "select_bookmark", "args": {"index": 9} }, 693 | { "command": "select_bookmark", "args": {"index": 10} }, 694 | { "command": "select_bookmark", "args": {"index": 11} }, 695 | { "command": "select_bookmark", "args": {"index": 12} }, 696 | { "command": "select_bookmark", "args": {"index": 13} }, 697 | { "command": "select_bookmark", "args": {"index": 14} }, 698 | { "command": "select_bookmark", "args": {"index": 15} } 699 | ] 700 | }, 701 | { "caption": "-" }, 702 | { "command": "move_to", "args": {"to": "brackets"}, "caption": "Jump to Matching Bracket" } 703 | ] 704 | }, 705 | { 706 | "caption": "Tools", 707 | "mnemonic": "T", 708 | "id": "tools", 709 | "children": 710 | [ 711 | { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "Command Palette…" }, 712 | { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "Snippets…" }, 713 | { "caption": "-", "id": "build" }, 714 | { 715 | "caption": "Build System", 716 | "mnemonic": "u", 717 | "children": 718 | [ 719 | { "command": "set_build_system", "args": { "file": "" }, "caption": "Automatic", "checkbox": true }, 720 | { "caption": "-" }, 721 | { "command": "set_build_system", "args": {"index": 0}, "checkbox": true }, 722 | { "command": "set_build_system", "args": {"index": 1}, "checkbox": true }, 723 | { "command": "set_build_system", "args": {"index": 2}, "checkbox": true }, 724 | { "command": "set_build_system", "args": {"index": 3}, "checkbox": true }, 725 | { "command": "set_build_system", "args": {"index": 4}, "checkbox": true }, 726 | { "command": "set_build_system", "args": {"index": 5}, "checkbox": true }, 727 | { "command": "set_build_system", "args": {"index": 6}, "checkbox": true }, 728 | { "command": "set_build_system", "args": {"index": 7}, "checkbox": true }, 729 | { "command": "set_build_system", "args": {"index": 8}, "checkbox": true }, 730 | { "command": "set_build_system", "args": {"index": 9}, "checkbox": true }, 731 | { "command": "set_build_system", "args": {"index": 10}, "checkbox": true }, 732 | { "command": "set_build_system", "args": {"index": 11}, "checkbox": true }, 733 | { "caption": "-" }, 734 | { "command": "$build_systems" }, 735 | { "caption": "-" }, 736 | { "command": "new_build_system", "caption": "New Build System…" } 737 | ] 738 | }, 739 | { "command": "build", "mnemonic": "B" }, 740 | { "command": "build", "args": {"select": true}, "caption": "Build With…" }, 741 | { "command": "exec", "args": {"kill": true}, "caption": "Cancel Build", "mnemonic": "C" }, 742 | { 743 | "caption": "Build Results", 744 | "mnemonic": "R", 745 | "children": 746 | [ 747 | { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "Show Build Results", "mnemonic": "S" }, 748 | { "command": "next_result", "mnemonic": "N" }, 749 | { "command": "prev_result", "caption": "Previous Result", "mnemonic": "P" } 750 | ] 751 | }, 752 | { "command": "toggle_save_all_on_build", "caption": "Save All on Build", "mnemonic": "A", "checkbox": true }, 753 | { "caption": "-", "id": "macros" }, 754 | { "command": "toggle_record_macro", "mnemonic": "M" }, 755 | { "command": "run_macro", "caption": "Playback Macro", "mnemonic": "P" }, 756 | { "command": "save_macro", "caption": "Save Macro…", "mnemonic": "v" }, 757 | { 758 | "caption": "Macros", 759 | "children": [ { "command": "$macros" } ] 760 | }, 761 | { "caption": "-" }, 762 | { "command": "new_plugin", "caption": "New Plugin…" }, 763 | { "command": "new_snippet", "caption": "New Snippet…" }, 764 | { "caption": "-", "id": "end" } 765 | ] 766 | }, 767 | { 768 | "caption": "Project", 769 | "id": "project", 770 | "mnemonic": "P", 771 | "children": 772 | [ 773 | { "command": "prompt_open_project_or_workspace", "caption": "Open Project…" }, 774 | { "command": "prompt_switch_project_or_workspace", "caption": "Switch Project…" }, 775 | { "command": "prompt_select_workspace", "caption": "Quick Switch Project…", "mnemonic": "S" }, 776 | { 777 | "caption": "Open Recent", 778 | "children": 779 | [ 780 | { "command": "open_recent_project_or_workspace", "args": {"index": 0 } }, 781 | { "command": "open_recent_project_or_workspace", "args": {"index": 1 } }, 782 | { "command": "open_recent_project_or_workspace", "args": {"index": 2 } }, 783 | { "command": "open_recent_project_or_workspace", "args": {"index": 3 } }, 784 | { "command": "open_recent_project_or_workspace", "args": {"index": 4 } }, 785 | { "command": "open_recent_project_or_workspace", "args": {"index": 5 } }, 786 | { "command": "open_recent_project_or_workspace", "args": {"index": 6 } }, 787 | { "command": "open_recent_project_or_workspace", "args": {"index": 7 } }, 788 | { "caption": "-" }, 789 | { "command": "clear_recent_projects_and_workspaces", "caption": "Clear Items" } 790 | ] 791 | }, 792 | { "caption": "-" }, 793 | { "command": "save_project_and_workspace_as", "caption": "Save Project As…", "mnemonic": "A" }, 794 | { "command": "close_workspace", "caption": "Close Project", "mnemonic": "C" }, 795 | { "command": "open_file", "args": {"file": "${project}"}, "caption": "Edit Project" }, 796 | { "caption": "-" }, 797 | { "command": "new_window_for_project", "caption": "New Workspace for Project" }, 798 | { "command": "save_workspace_as", "caption": "Save Workspace As…", "mnemonic": "A" }, 799 | { "caption": "-" }, 800 | { "command": "prompt_add_folder", "caption": "Add Folder to Project…", "mnemonic": "d" }, 801 | { "command": "close_folder_list", "caption": "Remove all Folders from Project", "mnemonic": "m" }, 802 | { "command": "refresh_folder_list", "caption": "Refresh Folders", "mnemonic": "e" }, 803 | ] 804 | }, 805 | { 806 | "caption": "Preferences", 807 | "mnemonic": "n", 808 | "id": "preferences", 809 | "children": 810 | [ 811 | { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "Browse Packages…", "mnemonic": "B" }, 812 | { "caption": "-" }, 813 | { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "Settings – Default" }, 814 | { 815 | "command": "open_file", "args": 816 | { 817 | "file": "${packages}/User/Preferences.sublime-settings", 818 | "contents": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by file type specific settings.\n{\n\t$0\n}\n" 819 | }, 820 | "caption": "Settings – User" 821 | }, 822 | { 823 | "caption": "Settings – More", 824 | "children": 825 | [ 826 | { "command": "open_file_settings", "caption": "Syntax Specific – User" }, 827 | { 828 | "command": "open_file", "args": 829 | { 830 | "file": "${packages}/User/Distraction Free.sublime-settings", 831 | "contents": "{\n\t$0\n}\n" 832 | }, 833 | "caption": "Distraction Free – User" 834 | } 835 | ] 836 | }, 837 | { "caption": "-" }, 838 | { 839 | "command": "open_file", "args": 840 | { 841 | "file": "${packages}/Default/Default ($platform).sublime-keymap" 842 | }, 843 | "caption": "Key Bindings – Default" 844 | }, 845 | { 846 | "command": "open_file", "args": 847 | { 848 | "file": "${packages}/User/Default ($platform).sublime-keymap", 849 | "contents": "[\n\t$0\n]\n" 850 | }, 851 | "caption": "Key Bindings – User" 852 | }, 853 | { "caption": "-" }, 854 | { 855 | "caption": "Font", 856 | "children": 857 | [ 858 | { "command": "increase_font_size", "caption": "Larger" }, 859 | { "command": "decrease_font_size", "caption": "Smaller" }, 860 | { "caption": "-" }, 861 | { "command": "reset_font_size", "caption": "Reset" } 862 | ] 863 | }, 864 | { 865 | "caption": "Color Scheme", 866 | "children": [ { "command": "$color_schemes" } ] 867 | } 868 | ] 869 | }, 870 | { 871 | "caption": "Help", 872 | "mnemonic": "H", 873 | "id": "help", 874 | "children": 875 | [ 876 | { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/3/"}, "caption": "Documentation" }, 877 | { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "Twitter" }, 878 | { "caption": "-" }, 879 | { "command": "purchase_license"}, 880 | { "command": "show_license_window", "caption": "Enter License" }, 881 | { "command": "remove_license"}, 882 | { "caption": "-" }, 883 | { "command": "update_check", "caption": "Check for Updates…", "platform": "!Linux" }, 884 | { "command": "show_changelog", "caption": "Changelog…" }, 885 | { "command": "show_about_window", "caption": "About Sublime Text", "mnemonic": "A" } 886 | ] 887 | } 888 | ] 889 | -------------------------------------------------------------------------------- /src/i18n/zh_CN/Default.sublime-package/Main.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "文件(F)", 4 | "mnemonic": "F", 5 | "id": "file", 6 | "children": 7 | [ 8 | { "command": "new_file", "caption": "新建文件(N)", "mnemonic": "N" }, 9 | 10 | { "command": "prompt_open_file", "caption": "打开文件(O)…", "mnemonic": "O", "platform": "!OSX" }, 11 | { "command": "prompt_open_folder", "caption": "打开文件夹…", "platform": "!OSX" }, 12 | { "command": "prompt_open", "caption": "打开…", "platform": "OSX" }, 13 | { 14 | "caption": "最近打开的文件/文件夹(R)", 15 | "mnemonic": "R", 16 | "children": 17 | [ 18 | { "command": "reopen_last_file", "caption": "重新打开已关闭的文件" }, 19 | { "caption": "-" }, 20 | { "command": "open_recent_file", "args": {"index": 0 } }, 21 | { "command": "open_recent_file", "args": {"index": 1 } }, 22 | { "command": "open_recent_file", "args": {"index": 2 } }, 23 | { "command": "open_recent_file", "args": {"index": 3 } }, 24 | { "command": "open_recent_file", "args": {"index": 4 } }, 25 | { "command": "open_recent_file", "args": {"index": 5 } }, 26 | { "command": "open_recent_file", "args": {"index": 6 } }, 27 | { "command": "open_recent_file", "args": {"index": 7 } }, 28 | { "caption": "-" }, 29 | { "command": "open_recent_folder", "args": {"index": 0 } }, 30 | { "command": "open_recent_folder", "args": {"index": 1 } }, 31 | { "command": "open_recent_folder", "args": {"index": 2 } }, 32 | { "command": "open_recent_folder", "args": {"index": 3 } }, 33 | { "command": "open_recent_folder", "args": {"index": 4 } }, 34 | { "command": "open_recent_folder", "args": {"index": 5 } }, 35 | { "command": "open_recent_folder", "args": {"index": 6 } }, 36 | { "command": "open_recent_folder", "args": {"index": 7 } }, 37 | { "caption": "-" }, 38 | { "command": "clear_recent_files", "caption": "清除记录" } 39 | ] 40 | }, 41 | { 42 | "caption": "用此编码重新打开", 43 | "children": 44 | [ 45 | { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, 46 | { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, 47 | { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, 48 | { "caption": "-" }, 49 | { "caption": "西方语 (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, 50 | { "caption": "西方语 (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, 51 | { "caption": "西方语 (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, 52 | { "caption": "西方语 (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, 53 | { "caption": "西方语 (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, 54 | { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, 55 | { "caption": "阿拉伯语 (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, 56 | { "caption": "阿拉伯语 (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 57 | { "caption": "波罗海语 (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, 58 | { "caption": "波罗海语 (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 59 | { "caption": "凯尔特语 (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 60 | { "caption": "中欧语 (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, 61 | { "caption": "中欧语 (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, 62 | { "caption": "西里尔语 (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 63 | { "caption": "西里尔语 (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, 64 | { "caption": "西里尔语 (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 65 | { "caption": "西里尔语 (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 66 | { "caption": "西里尔语 (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 67 | { "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 68 | { "caption": "希腊语 (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, 69 | { "caption": "希腊语 (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, 70 | { "caption": "希伯来语 (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, 71 | { "caption": "希伯来语 (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 72 | { "caption": "北欧语 (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 73 | { "caption": "罗马尼亚语 (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 74 | { "caption": "土耳其语 (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, 75 | { "caption": "土耳其语 (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 76 | { "caption": "越南语 (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 77 | { "caption": "-" }, 78 | { "caption": "十六进制", "command": "reopen", "args": {"encoding": "Hexadecimal" } } 79 | ] 80 | }, 81 | { "command": "clone_file", "caption": "复制当前文件到新标签页(E)", "mnemonic": "e" }, 82 | { "command": "save", "caption": "保存(S)", "mnemonic": "S" }, 83 | { 84 | "caption": "用此编码保存", 85 | "children": 86 | [ 87 | { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } }, 88 | { "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } }, 89 | { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } }, 90 | { "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } }, 91 | { "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } }, 92 | { "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } }, 93 | { "caption": "-" }, 94 | { "caption": "西方语 (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } }, 95 | { "caption": "西方语 (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } }, 96 | { "caption": "西方语 (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } }, 97 | { "caption": "西方语 (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } }, 98 | { "caption": "西方语 (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } }, 99 | { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } }, 100 | { "caption": "阿拉伯语 (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } }, 101 | { "caption": "阿拉伯语 (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 102 | { "caption": "波罗海语 (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } }, 103 | { "caption": "波罗海语 (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 104 | { "caption": "凯尔特语 (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 105 | { "caption": "中欧语 (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } }, 106 | { "caption": "中欧语 (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } }, 107 | { "caption": "西里尔语 (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 108 | { "caption": "西里尔语 (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } }, 109 | { "caption": "西里尔语 (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 110 | { "caption": "西里尔语 (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 111 | { "caption": "西里尔语 (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 112 | { "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 113 | { "caption": "希腊语 (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } }, 114 | { "caption": "希腊语 (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } }, 115 | { "caption": "希伯来语 (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } }, 116 | { "caption": "希伯来语 (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 117 | { "caption": "北欧语 (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 118 | { "caption": "罗马尼亚语 (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 119 | { "caption": "土耳其语 (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } }, 120 | { "caption": "土耳其语 (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 121 | { "caption": "越南语 (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 122 | { "caption": "-" }, 123 | { "caption": "十六进制", "command": "save", "args": {"encoding": "Hexadecimal" } } 124 | ] 125 | }, 126 | { "command": "prompt_save_as", "caption": "另存为(A)…", "mnemonic": "A" }, 127 | { "command": "save_all", "caption": "全部保存(L)", "mnemonic": "l" }, 128 | { "caption": "-", "id": "window" }, 129 | { "command": "new_window", "caption": "新建窗口(W)", "mnemonic": "W" }, 130 | { "command": "close_window", "caption": "关闭窗口" }, 131 | { "caption": "-", "id": "close" }, 132 | { "command": "close", "caption": "关闭文件(C)", "mnemonic": "C" }, 133 | { "command": "revert", "caption": "恢复文件(V)", "mnemonic": "v" }, 134 | { "command": "close_all", "caption": "关闭所有文件" }, 135 | { "caption": "-", "id": "exit" }, 136 | { "command": "exit", "caption": "退出(X)", "mnemonic": "x", "platform": "Windows" }, 137 | { "command": "exit", "caption": "退出(Q)", "mnemonic": "Q", "platform": "Linux" }, 138 | ] 139 | }, 140 | { 141 | "caption": "编辑(E)", 142 | "mnemonic": "E", 143 | "id": "edit", 144 | "children": 145 | [ 146 | { "command": "undo", "caption": "撤销(U)", "mnemonic": "U" }, 147 | { "command": "redo_or_repeat", "caption": "重做(R)", "mnemonic": "R" }, 148 | { 149 | "caption": "撤消选择", 150 | "children": 151 | [ 152 | { "command": "soft_undo", "caption": "撤销选择" }, 153 | { "command": "soft_redo", "caption": "重做选择" } 154 | ] 155 | }, 156 | { "caption": "-", "id": "clipboard" }, 157 | { "command": "copy", "caption": "复制(C)", "mnemonic": "C" }, 158 | { "command": "cut", "caption": "剪切(T)", "mnemonic": "t" }, 159 | { "command": "paste", "caption": "粘贴(P)", "mnemonic": "P" }, 160 | { "command": "paste_and_indent", "caption": "粘贴并自动缩进(I)", "mnemonic": "I" }, 161 | { "command": "paste_from_history", "caption": "从历史记录中粘贴" }, 162 | { "caption": "-" }, 163 | { 164 | "caption": "行(L)", "mnemonic": "L", 165 | "id": "line", 166 | "children": 167 | [ 168 | { "command": "indent", "caption": "缩进" }, 169 | { "command": "unindent", "caption": "取消缩进" }, 170 | { "command": "reindent", "caption": "再次缩进", "args": {"single_line": true} }, 171 | { "command": "swap_line_up", "caption": "向上切换行" }, 172 | { "command": "swap_line_down", "caption": "向下切换行" }, 173 | { "command": "duplicate_line", "caption": "复制光标所在行" }, 174 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "删除行" }, 175 | { "command": "join_lines", "caption": "合并行" } 176 | ] 177 | }, 178 | { 179 | "caption": "注释(M)", "mnemonic": "m", 180 | "id": "comment", 181 | "children": 182 | [ 183 | { "command": "toggle_comment", "args": {"block": false}, "caption": "单行注释" }, 184 | { "command": "toggle_comment", "args": {"block": true}, "caption": "多行注释" } 185 | ] 186 | }, 187 | { 188 | "caption": "文本(T)", "mnemonic": "T", 189 | "id": "text", 190 | "children": 191 | [ 192 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}, "caption": "在此前插入行" }, 193 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"}, "caption": "在此后插入行" }, 194 | { "caption": "-" }, 195 | { "command": "delete_word", "args": { "forward": false }, "caption": "向前删除词组" }, 196 | { "command": "delete_word", "args": { "forward": true }, "caption": "向后删除词组" }, 197 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "删除行" }, 198 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "删除至行首" }, 199 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "删除至行尾" }, 200 | { "caption": "-" }, 201 | { "command": "transpose", "caption": "词组互换" } 202 | ] 203 | }, 204 | { 205 | "caption": "标签", 206 | "id": "tag", 207 | "children": 208 | [ 209 | { "command": "close_tag", "caption": "闭合当前标签" }, 210 | { "command": "expand_selection", "args": {"to": "tag"}, "caption": "选择至标签对" }, 211 | { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "为选中内容添加标签" } 212 | ] 213 | }, 214 | { 215 | "caption": "标记", 216 | "id": "mark", 217 | "children": 218 | [ 219 | { "command": "set_mark", "caption": "添加标记" }, 220 | { "command": "select_to_mark", "caption": "选择至标记处" }, 221 | { "command": "delete_to_mark", "caption": "删除标记" }, 222 | { "command": "swap_with_mark", "caption": "交换标记" }, 223 | { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "清除标记" }, 224 | { "caption": "-" }, 225 | { "command": "yank", "caption": "抽出" } 226 | ] 227 | }, 228 | { 229 | "caption": "代码折叠", 230 | "id": "fold", 231 | "children": 232 | [ 233 | { "command": "fold", "caption": "折叠" }, 234 | { "command": "unfold", "caption": "展开" }, 235 | { "command": "unfold_all", "caption": "全部展开" }, 236 | { "caption": "-" }, 237 | { "caption": "折叠全部", "command": "fold_by_level", "args": {"level": 1} }, 238 | { "caption": "折叠2层", "command": "fold_by_level", "args": {"level": 2} }, 239 | { "caption": "折叠3层", "command": "fold_by_level", "args": {"level": 3} }, 240 | { "caption": "折叠4层", "command": "fold_by_level", "args": {"level": 4} }, 241 | { "caption": "折叠5层", "command": "fold_by_level", "args": {"level": 5} }, 242 | { "caption": "折叠6层", "command": "fold_by_level", "args": {"level": 6} }, 243 | { "caption": "折叠7层", "command": "fold_by_level", "args": {"level": 7} }, 244 | { "caption": "折叠8层", "command": "fold_by_level", "args": {"level": 8} }, 245 | { "caption": "折叠9层", "command": "fold_by_level", "args": {"level": 9} }, 246 | { "caption": "-" }, 247 | { "command": "fold_tag_attributes", "caption": "折叠标签属性" } 248 | ] 249 | }, 250 | { 251 | "caption": "大小写转换(A)", "mnemonic": "a", 252 | "id": "convert_case", 253 | "children": 254 | [ 255 | { "command": "title_case", "caption": "首字母大写" }, 256 | { "command": "upper_case", "caption": "转为大写" }, 257 | { "command": "lower_case", "caption": "转为小写" }, 258 | { "command": "swap_case", "caption": "大小写互换" } 259 | ] 260 | }, 261 | { 262 | "caption": "自动换行", 263 | "id": "wrap", 264 | "children": 265 | [ 266 | { "command": "wrap_lines", "caption": "标尺处换行" }, 267 | { "command": "wrap_lines", "args": {"width": 70}, "caption": "每70个字换行" }, 268 | { "command": "wrap_lines", "args": {"width": 78}, "caption": "每78个字换行" }, 269 | { "command": "wrap_lines", "args": {"width": 80}, "caption": "每80个字换行" }, 270 | { "command": "wrap_lines", "args": {"width": 100}, "caption": "每100个字换行" }, 271 | { "command": "wrap_lines", "args": {"width": 120}, "caption": "每120个字换行" } 272 | ] 273 | }, 274 | { "command": "auto_complete", "caption": "显示自动完成提示" }, 275 | { "caption": "-", "id": "permute" }, 276 | 277 | { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "按行排序(S)", "mnemonic": "S" }, 278 | { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "按行排序(区分大小写)" }, 279 | { 280 | "caption": "整理行", 281 | "children": 282 | [ 283 | { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "反转行排序" }, 284 | { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "去除重复行" }, 285 | { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "随机打乱行" } 286 | ] 287 | }, 288 | { 289 | "caption": "整理选中内容", 290 | "children": 291 | [ 292 | { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "排序" }, 293 | { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "行排序(区分大小写)" }, 294 | { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "反转" }, 295 | { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "去重复" }, 296 | { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "随机打乱" } 297 | ] 298 | }, 299 | { "caption": "-", "id": "end" } 300 | ] 301 | }, 302 | { 303 | "caption": "选择(S)", 304 | "mnemonic": "S", 305 | "id": "selection", 306 | "children": 307 | [ 308 | { "command": "split_selection_into_lines", "caption": "拆分成行" }, 309 | { "command": "select_lines", "args": {"forward": false}, "caption": "添加前一行" }, 310 | { "command": "select_lines", "args": {"forward": true}, "caption": "添加后一行" }, 311 | { "command": "single_selection", "caption": "单选" }, 312 | { "command": "invert_selection", "caption": "反选" }, 313 | { "caption": "-" }, 314 | { "command": "select_all", "caption": "全选" }, 315 | { "command": "expand_selection", "args": {"to": "line"}, "caption": "选择至整行" }, 316 | { "command": "find_under_expand", "caption": "选择至词组" }, 317 | { "command": "expand_selection_to_paragraph", "caption": "选择至段落" }, 318 | { "command": "expand_selection", "args": {"to": "scope"}, "caption": "选择至节点" }, 319 | { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "选择至括号" }, 320 | { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "选择至缩进" }, 321 | { "command": "expand_selection", "args": {"to": "tag"}, "caption": "选择至标签" } 322 | ] 323 | }, 324 | { 325 | "caption": "查找(I)", 326 | "mnemonic": "i", 327 | "id": "find", 328 | "children": 329 | [ 330 | { "command": "show_panel", "args": {"panel": "find", "reverse": false}, "caption": "查找…" }, 331 | { "command": "find_next", "caption": "查找下一个" }, 332 | { "command": "find_prev", "caption": "查找上一个" }, 333 | { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "渐进式查找" }, 334 | { "caption": "-" }, 335 | { "command": "show_panel", "args": {"panel": "replace", "reverse": false}, "caption": "查找替换…" }, 336 | { "command": "replace_next", "caption": "替换下一个" }, 337 | { "caption": "-" }, 338 | { "command": "find_under", "caption": "快速查找" }, 339 | { "command": "find_all_under", "caption": "快速查找所有" }, 340 | { "command": "find_under_expand", "caption": "快速选中下一个" }, 341 | { "command": "find_under_expand_skip", "caption": "快速跳转到下一个", "platform": "!OSX" }, 342 | { "caption": "-" }, 343 | { "command": "slurp_find_string", "caption": "在所选内容中查找" }, 344 | { "command": "slurp_replace_string", "caption": "在所选内容中替换" }, 345 | { "caption": "-" }, 346 | { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "在文件中查找…" }, 347 | { 348 | "caption": "查找结果(R)", 349 | "mnemonic": "R", 350 | "children": 351 | [ 352 | { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "显示结果面板" }, 353 | { "command": "next_result", "caption": "下一结果" }, 354 | { "command": "prev_result", "caption": "上一结果" } 355 | ] 356 | } 357 | ] 358 | }, 359 | { 360 | "caption": "查看(V)", 361 | "mnemonic": "V", 362 | "id": "view", 363 | "children": 364 | [ 365 | { 366 | "caption": "侧边栏", 367 | "id": "side_bar", 368 | "children": 369 | [ 370 | { "command": "toggle_side_bar", "caption": "显示/隐藏侧边栏" }, 371 | { "caption": "-" }, 372 | { "command": "toggle_show_open_files", "caption": "显示/隐藏打开的文件" } 373 | ] 374 | }, 375 | { "command": "toggle_minimap", "caption": "开启/关闭代码缩略图" }, 376 | { "command": "toggle_tabs", "caption": "开启/关闭文件标签页" }, 377 | { "command": "toggle_status_bar", "caption": "开启/关闭状态栏" }, 378 | { "command": "toggle_menu", "caption": "开启/关闭菜单" }, 379 | { "command": "show_panel", "caption": "开启/关闭控制台", "args": {"panel": "console", "toggle": true} }, 380 | { "caption": "-", "id": "full_screen" }, 381 | { "command": "toggle_full_screen", "caption": "切换全屏显示" }, 382 | { "command": "toggle_distraction_free", "caption": "切换无干扰模式" }, 383 | { "caption": "-", "id": "groups" }, 384 | { 385 | "caption": "布局(L)", 386 | "mnemonic": "L", 387 | "id": "layout", 388 | "children": 389 | [ 390 | { 391 | "caption": "单独", 392 | "command": "set_layout", 393 | "args": 394 | { 395 | "cols": [0.0, 1.0], 396 | "rows": [0.0, 1.0], 397 | "cells": [[0, 0, 1, 1]] 398 | } 399 | }, 400 | { 401 | "caption": "列: 2", 402 | "command": "set_layout", 403 | "args": 404 | { 405 | "cols": [0.0, 0.5, 1.0], 406 | "rows": [0.0, 1.0], 407 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] 408 | } 409 | }, 410 | { 411 | "caption": "列: 3", 412 | "command": "set_layout", 413 | "args": 414 | { 415 | "cols": [0.0, 0.33, 0.66, 1.0], 416 | "rows": [0.0, 1.0], 417 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] 418 | } 419 | }, 420 | { 421 | "caption": "列: 4", 422 | "command": "set_layout", 423 | "args": 424 | { 425 | "cols": [0.0, 0.25, 0.5, 0.75, 1.0], 426 | "rows": [0.0, 1.0], 427 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] 428 | } 429 | }, 430 | { 431 | "caption": "行: 2", 432 | "command": "set_layout", 433 | "args": 434 | { 435 | "cols": [0.0, 1.0], 436 | "rows": [0.0, 0.5, 1.0], 437 | "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] 438 | } 439 | }, 440 | { 441 | "caption": "行: 3", 442 | "command": "set_layout", 443 | "args": 444 | { 445 | "cols": [0.0, 1.0], 446 | "rows": [0.0, 0.33, 0.66, 1.0], 447 | "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] 448 | } 449 | }, 450 | { 451 | "caption": "网格: 4", 452 | "command": "set_layout", 453 | "args": 454 | { 455 | "cols": [0.0, 0.5, 1.0], 456 | "rows": [0.0, 0.5, 1.0], 457 | "cells": 458 | [ 459 | [0, 0, 1, 1], [1, 0, 2, 1], 460 | [0, 1, 1, 2], [1, 1, 2, 2] 461 | ] 462 | } 463 | } 464 | ] 465 | }, 466 | { 467 | "caption": "分组", 468 | "children": 469 | [ 470 | { "command": "new_pane", "caption": "移动文件到新分组" }, 471 | { "command": "new_pane", "caption": "新分组", "args": {"move": false}, "caption": "新分组" }, 472 | { "command": "close_pane", "caption": "关闭分组" }, 473 | 474 | { "caption": "-" }, 475 | 476 | { 477 | "caption": "最大列数: 1", 478 | "command": "set_max_columns", 479 | "checkbox": true, 480 | "args": { "columns": 1 } 481 | }, 482 | { 483 | "caption": "最大列数: 2", 484 | "command": "set_max_columns", 485 | "checkbox": true, 486 | "args": { "columns": 2 } 487 | }, 488 | { 489 | "caption": "最大列数: 3", 490 | "command": "set_max_columns", 491 | "checkbox": true, 492 | "args": { "columns": 3 } 493 | }, 494 | { 495 | "caption": "最大列数: 4", 496 | "command": "set_max_columns", 497 | "checkbox": true, 498 | "args": { "columns": 4 } 499 | }, 500 | { 501 | "caption": "最大列数: 5", 502 | "command": "set_max_columns", 503 | "checkbox": true, 504 | "args": { "columns": 5 } 505 | }, 506 | ] 507 | }, 508 | { 509 | "caption": "焦点分组(F)", 510 | "mnemonic": "F", 511 | "children": 512 | [ 513 | 514 | { "command": "focus_neighboring_group", "caption": "下一分组" }, 515 | { "command": "focus_neighboring_group", "args": {"forward": false}, "caption": "上一分组" }, 516 | { "caption": "-" }, 517 | { "command": "focus_group", "args": {"group": 0}, "caption": "分组 1" }, 518 | { "command": "focus_group", "args": {"group": 1}, "caption": "分组 2" }, 519 | { "command": "focus_group", "args": {"group": 2}, "caption": "分组 3" }, 520 | { "command": "focus_group", "args": {"group": 3}, "caption": "分组 4" } 521 | ] 522 | }, 523 | { 524 | "caption": "移动文件到分组(M)", 525 | "mnemonic": "M", 526 | "children": 527 | [ 528 | { "command": "move_to_neighboring_group", "caption": "下一分组" }, 529 | { "command": "move_to_neighboring_group", "args": {"forward": false}, "caption": "上一分组" }, 530 | { "caption": "-" }, 531 | { "command": "move_to_group", "args": {"group": 0}, "caption": "分组 1" }, 532 | { "command": "move_to_group", "args": {"group": 1}, "caption": "分组 2" }, 533 | { "command": "move_to_group", "args": {"group": 2}, "caption": "分组 3" }, 534 | { "command": "move_to_group", "args": {"group": 3}, "caption": "分组 4" } 535 | ] 536 | }, 537 | { "caption": "-" }, 538 | { 539 | "caption": "语法(S)", 540 | "mnemonic": "S", 541 | "id": "syntax", 542 | "children": [ { "command": "$file_types" } ] 543 | }, 544 | { 545 | "caption": "缩进(I)", 546 | "mnemonic": "I", 547 | "id": "indentation", 548 | "children": 549 | [ 550 | { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格缩进", "checkbox": true }, 551 | { "caption": "-" }, 552 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "制表符宽度: 1", "checkbox": true }, 553 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "制表符宽度: 2", "checkbox": true }, 554 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "制表符宽度: 3", "checkbox": true }, 555 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "制表符宽度: 4", "checkbox": true }, 556 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "制表符宽度: 5", "checkbox": true }, 557 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "制表符宽度: 6", "checkbox": true }, 558 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "制表符宽度: 7", "checkbox": true }, 559 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "制表符宽度: 8", "checkbox": true }, 560 | { "caption": "-" }, 561 | { "command": "detect_indentation", "caption": "使用缓冲区缩进方式" }, 562 | { "caption": "-" }, 563 | { "command": "expand_tabs", "caption": "转为空格缩进", "args": {"set_translate_tabs": true} }, 564 | { "command": "unexpand_tabs", "caption": "转为制表符缩进", "args": {"set_translate_tabs": true} } 565 | ] 566 | }, 567 | { 568 | "caption": "换行符/行尾符(N)", 569 | "mnemonic": "n", 570 | "id": "line_endings", 571 | "children": 572 | [ 573 | { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows 换行符 (CRLF)", "checkbox": true }, 574 | { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix 换行符 (LF)", "checkbox": true }, 575 | { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS X 换行符 (CR)", "checkbox": true } 576 | ] 577 | }, 578 | { "caption": "-", "id": "settings" }, 579 | { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "自动换行(W)", "mnemonic": "W", "checkbox": true }, 580 | { 581 | "caption": "自动换行字数", 582 | "children": 583 | [ 584 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "自动", "checkbox": true }, 585 | { "caption": "-" }, 586 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true }, 587 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true }, 588 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true }, 589 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true }, 590 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true } 591 | ] 592 | }, 593 | { 594 | "caption": "标尺", 595 | "children": 596 | [ 597 | { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "无", "checkbox": true }, 598 | { "caption": "-" }, 599 | { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true }, 600 | { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true }, 601 | { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true }, 602 | { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true }, 603 | { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true } 604 | ] 605 | }, 606 | { "caption": "-" }, 607 | { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "检查拼写", "checkbox": true }, 608 | { "command": "next_misspelling", "caption": "下一个拼写错误" }, 609 | { "command": "prev_misspelling", "caption": "上一个拼写错误" }, 610 | { 611 | "caption": "拼写字典", 612 | "children": [ { "command": "$dictionaries" } ] 613 | } 614 | ] 615 | }, 616 | { 617 | "caption": "跳转(G)", 618 | "mnemonic": "G", 619 | "id": "goto", 620 | "children": 621 | [ 622 | { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "跳转到指定地方(A)…", "mnemonic": "A" }, 623 | { "caption": "-" }, 624 | { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "跳转到符号处…" }, 625 | { "command": "goto_symbol_in_project", "caption": "跳转到项目符号处…" }, 626 | { "command": "goto_definition", "caption": "跳转到定义处…" }, 627 | // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "跳转到词组…" }, 628 | { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "跳转到行…" }, 629 | { "caption": "-" }, 630 | { "command": "jump_back", "caption": "往后跳" }, 631 | { "command": "jump_forward", "caption": "往前跳" }, 632 | { "caption": "-" }, 633 | { 634 | "caption": "切换文件(T)", 635 | "mnemonic": "t", 636 | "id": "switch_file", 637 | "children": 638 | [ 639 | { "command": "next_view", "caption": "下一个文件" }, 640 | { "command": "prev_view", "caption": "上一个文件" }, 641 | { "caption": "-" }, 642 | { "command": "next_view_in_stack", "caption": "当前组的下一个文件" }, 643 | { "command": "prev_view_in_stack", "caption": "当前组的上一个文件" }, 644 | { "caption": "-" }, 645 | { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]}, "caption": "切换头文件/源文件(H)", "mnemonic": "H" }, 646 | { "caption": "-" }, 647 | { "command": "select_by_index", "args": { "index": 0 } }, 648 | { "command": "select_by_index", "args": { "index": 1 } }, 649 | { "command": "select_by_index", "args": { "index": 2 } }, 650 | { "command": "select_by_index", "args": { "index": 3 } }, 651 | { "command": "select_by_index", "args": { "index": 4 } }, 652 | { "command": "select_by_index", "args": { "index": 5 } }, 653 | { "command": "select_by_index", "args": { "index": 6 } }, 654 | { "command": "select_by_index", "args": { "index": 7 } }, 655 | { "command": "select_by_index", "args": { "index": 8 } }, 656 | { "command": "select_by_index", "args": { "index": 9 } } 657 | ] 658 | }, 659 | { "caption": "-" }, 660 | { 661 | "caption": "滚屏(S)", 662 | "mnemonic": "S", 663 | "id": "scroll", 664 | "children": 665 | [ 666 | { "command": "show_at_center", "caption": "滚动到选中内容" }, 667 | { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "往上滚动一行" }, 668 | { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "往下滚动一行" } 669 | ] 670 | }, 671 | { 672 | "caption": "书签(B)", 673 | "mnemonic": "B", 674 | "id": "bookmarks", 675 | "children": 676 | [ 677 | { "command": "toggle_bookmark", "caption": "开启/关闭书签" }, 678 | { "command": "next_bookmark", "caption": "下一个书签" }, 679 | { "command": "prev_bookmark", "caption": "上一个书签" }, 680 | { "command": "clear_bookmarks", "caption": "清除书签" }, 681 | { "command": "select_all_bookmarks", "caption": "全选书签" }, 682 | { "caption": "-" }, 683 | { "command": "select_bookmark", "caption": "选择书签0", "args": {"index": 0} }, 684 | { "command": "select_bookmark", "caption": "选择书签1", "args": {"index": 1} }, 685 | { "command": "select_bookmark", "caption": "选择书签2", "args": {"index": 2} }, 686 | { "command": "select_bookmark", "caption": "选择书签3", "args": {"index": 3} }, 687 | { "command": "select_bookmark", "caption": "选择书签4", "args": {"index": 4} }, 688 | { "command": "select_bookmark", "caption": "选择书签5", "args": {"index": 5} }, 689 | { "command": "select_bookmark", "caption": "选择书签6", "args": {"index": 6} }, 690 | { "command": "select_bookmark", "caption": "选择书签7", "args": {"index": 7} }, 691 | { "command": "select_bookmark", "caption": "选择书签8", "args": {"index": 8} }, 692 | { "command": "select_bookmark", "caption": "选择书签9", "args": {"index": 9} }, 693 | { "command": "select_bookmark", "caption": "选择书签10", "args": {"index": 10} }, 694 | { "command": "select_bookmark", "caption": "选择书签11", "args": {"index": 11} }, 695 | { "command": "select_bookmark", "caption": "选择书签12", "args": {"index": 12} }, 696 | { "command": "select_bookmark", "caption": "选择书签13", "args": {"index": 13} }, 697 | { "command": "select_bookmark", "caption": "选择书签14", "args": {"index": 14} }, 698 | { "command": "select_bookmark", "caption": "选择书签15", "args": {"index": 15} } 699 | ] 700 | }, 701 | { "caption": "-" }, 702 | { "command": "move_to", "args": {"to": "brackets"}, "caption": "跳转到匹配的括号" } 703 | ] 704 | }, 705 | { 706 | "caption": "工具(T)", 707 | "mnemonic": "T", 708 | "id": "tools", 709 | "children": 710 | [ 711 | { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "命令面板…" }, 712 | { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "代码片段…" }, 713 | { "caption": "-", "id": "build" }, 714 | { 715 | "caption": "编译系统(U)", 716 | "mnemonic": "u", 717 | "children": 718 | [ 719 | { "command": "set_build_system", "args": { "file": "" }, "caption": "Automatic", "checkbox": true }, 720 | { "caption": "-" }, 721 | { "command": "set_build_system", "args": {"index": 0}, "checkbox": true }, 722 | { "command": "set_build_system", "args": {"index": 1}, "checkbox": true }, 723 | { "command": "set_build_system", "args": {"index": 2}, "checkbox": true }, 724 | { "command": "set_build_system", "args": {"index": 3}, "checkbox": true }, 725 | { "command": "set_build_system", "args": {"index": 4}, "checkbox": true }, 726 | { "command": "set_build_system", "args": {"index": 5}, "checkbox": true }, 727 | { "command": "set_build_system", "args": {"index": 6}, "checkbox": true }, 728 | { "command": "set_build_system", "args": {"index": 7}, "checkbox": true }, 729 | { "command": "set_build_system", "args": {"index": 8}, "checkbox": true }, 730 | { "command": "set_build_system", "args": {"index": 9}, "checkbox": true }, 731 | { "command": "set_build_system", "args": {"index": 10}, "checkbox": true }, 732 | { "command": "set_build_system", "args": {"index": 11}, "checkbox": true }, 733 | { "caption": "-" }, 734 | { "command": "$build_systems" }, 735 | { "caption": "-" }, 736 | { "command": "new_build_system", "caption": "新建编译系统…" } 737 | ] 738 | }, 739 | { "command": "build", "caption": "编译(B)", "mnemonic": "B" }, 740 | { "command": "build", "args": {"select": true}, "caption": "编译自…" }, 741 | { "command": "exec", "args": {"kill": true}, "caption": "取消编译(C)", "mnemonic": "C" }, 742 | { 743 | "caption": "编译结果(R)", 744 | "mnemonic": "R", 745 | "children": 746 | [ 747 | { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "显示编译结果(S)", "mnemonic": "S" }, 748 | { "command": "next_result", "caption": "下一个结果(N)", "mnemonic": "N" }, 749 | { "command": "prev_result", "caption": "上一个结果(P)", "mnemonic": "P" } 750 | ] 751 | }, 752 | { "command": "toggle_save_all_on_build", "caption": "编译时保存全部(A)", "mnemonic": "A", "checkbox": true }, 753 | { "caption": "-", "id": "macros" }, 754 | { "command": "toggle_record_macro", "caption": "录制宏(M)", "mnemonic": "M" }, 755 | { "command": "run_macro", "caption": "运行宏(P)", "mnemonic": "P" }, 756 | { "command": "save_macro", "caption": "保存宏(V)…", "mnemonic": "v" }, 757 | { 758 | "caption": "宏", 759 | "children": [ { "command": "$macros" } ] 760 | }, 761 | { "caption": "-" }, 762 | { "command": "new_plugin", "caption": "新建插件…" }, 763 | { "command": "new_snippet", "caption": "新建代码片段…" }, 764 | { "caption": "-", "id": "end" } 765 | ] 766 | }, 767 | { 768 | "caption": "项目(P)", 769 | "id": "project", 770 | "mnemonic": "P", 771 | "children": 772 | [ 773 | { "command": "prompt_open_project_or_workspace", "caption": "打开项目(O)…" }, 774 | { "command": "prompt_switch_project_or_workspace", "caption": "切换项目…" }, 775 | { "command": "prompt_select_workspace", "caption": "快速切换项目(S)…", "mnemonic": "S" }, 776 | { 777 | "caption": "打开最近项目(R)", 778 | "children": 779 | [ 780 | { "command": "open_recent_project_or_workspace", "args": {"index": 0 } }, 781 | { "command": "open_recent_project_or_workspace", "args": {"index": 1 } }, 782 | { "command": "open_recent_project_or_workspace", "args": {"index": 2 } }, 783 | { "command": "open_recent_project_or_workspace", "args": {"index": 3 } }, 784 | { "command": "open_recent_project_or_workspace", "args": {"index": 4 } }, 785 | { "command": "open_recent_project_or_workspace", "args": {"index": 5 } }, 786 | { "command": "open_recent_project_or_workspace", "args": {"index": 6 } }, 787 | { "command": "open_recent_project_or_workspace", "args": {"index": 7 } }, 788 | { "caption": "-" }, 789 | { "command": "clear_recent_projects_and_workspaces", "caption": "清除记录" } 790 | ] 791 | }, 792 | { "caption": "-" }, 793 | { "command": "save_project_and_workspace_as", "caption": "项目另存为(A)…", "mnemonic": "A" }, 794 | { "command": "close_workspace", "caption": "关闭项目(C)", "mnemonic": "C" }, 795 | { "command": "open_file", "args": {"file": "${project}"}, "caption": "编辑项目" }, 796 | { "caption": "-" }, 797 | { "command": "new_window_for_project", "caption": "新建工作空间" }, 798 | { "command": "save_workspace_as", "caption": "保存工作空间(A)…", "mnemonic": "A" }, 799 | { "caption": "-" }, 800 | { "command": "prompt_add_folder", "caption": "添加文件夹到项目(D)…", "mnemonic": "d" }, 801 | { "command": "close_folder_list", "caption": "从项目中移除文件夹(M)", "mnemonic": "m" }, 802 | { "command": "refresh_folder_list", "caption": "刷新文件夹列表(E)", "mnemonic": "e" }, 803 | ] 804 | }, 805 | { 806 | "caption": "设置(N)", 807 | "mnemonic": "n", 808 | "id": "preferences", 809 | "children": 810 | [ 811 | { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "浏览资源包(B)…", "mnemonic": "B" }, 812 | { "caption": "-" }, 813 | { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "默认设置…" }, 814 | { 815 | "command": "open_file", "args": 816 | { 817 | "file": "${packages}/User/Preferences.sublime-settings", 818 | "contents": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by file type specific settings.\n{\n\t$0\n}\n" 819 | }, 820 | "caption": "用户设置…" 821 | }, 822 | { 823 | "caption": "更多设置", 824 | "children": 825 | [ 826 | { "command": "open_file_settings", "caption": "用户语法设置…" }, 827 | { 828 | "command": "open_file", "args": 829 | { 830 | "file": "${packages}/User/Distraction Free.sublime-settings", 831 | "contents": "{\n\t$0\n}\n" 832 | }, 833 | "caption": "用户无干扰设置…" 834 | } 835 | ] 836 | }, 837 | { "caption": "-" }, 838 | { 839 | "command": "open_file", "args": 840 | { 841 | "file": "${packages}/Default/Default ($platform).sublime-keymap" 842 | }, 843 | "caption": "默认快捷键设置…" 844 | }, 845 | { 846 | "command": "open_file", "args": 847 | { 848 | "file": "${packages}/User/Default ($platform).sublime-keymap", 849 | "contents": "[\n\t$0\n]\n" 850 | }, 851 | "caption": "用户快捷键设置…" 852 | }, 853 | { "caption": "-" }, 854 | { 855 | "caption": "字体", 856 | "children": 857 | [ 858 | { "command": "increase_font_size", "caption": "增大" }, 859 | { "command": "decrease_font_size", "caption": "缩小" }, 860 | { "caption": "-" }, 861 | { "command": "reset_font_size", "caption": "默认" } 862 | ] 863 | }, 864 | { 865 | "caption": "配色方案", 866 | "children": [ { "command": "$color_schemes" } ] 867 | } 868 | ] 869 | }, 870 | { 871 | "caption": "帮助(H)", 872 | "mnemonic": "H", 873 | "id": "help", 874 | "children": 875 | [ 876 | { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/3/"}, "caption": "在线文档" }, 877 | { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "官方微博(Twitter)" }, 878 | { "caption": "-" }, 879 | { 880 | "command": "open_file", "args": 881 | { 882 | "file": "汉化免责声明", 883 | "contents": "\n1、本软件汉化版本仅限于个人学习研究之用,不得用于商业用途,并要求在下载后24小时内删除。软件版权归原作者所有,如果你喜欢,请购买正版。\n2、汉化作者不承担任何由于软件合法性及真实性所引起的争议和法律责任。\n3、本软件汉化作者并不同意、也未授权任何人以非个人学习研究交流的方式对外传播!在传递本程序时,必须附带本声明,且表示您清楚并已接受本声明的全部内容。\n4、使用本软件全凭您本人自愿,汉化作者对任何人使用、传播本软件所带来的直接或间接影响不负任何直接或连带责任!软件中任何涉及版权的软件注册授权问题由使用者自行负责承担,本软件汉化仅从技术角度提供相关资料,请严格按照国家相关法规学习和使用。\n\n=========================================\n\n\t在线购买正版:\n\n\thttp://www.sublimetext.com/buy\n\n\t汉化服务支持:\n\n\tSublime Text 中文论坛\n\n\thttp://sublimetext.iaixue.com/\n\n=========================================\n" 884 | }, 885 | "caption": "汉化免责声明" 886 | }, 887 | { "command": "purchase_license", "caption": "购买授权"}, 888 | { "command": "show_license_window", "caption": "输入授权码" }, 889 | { "command": "remove_license", "caption": "移除授权"}, 890 | { "caption": "-" }, 891 | { "command": "update_check", "caption": "检查更新…", "platform": "!Linux" }, 892 | { "command": "show_changelog", "caption": "更新日志…" }, 893 | { "command": "show_about_window", "caption": "关于 Sublime Text", "mnemonic": "A" } 894 | ] 895 | } 896 | ] 897 | -------------------------------------------------------------------------------- /src/i18n/zh_TW/Default.sublime-package/Main.sublime-menu: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "檔案(F)", 4 | "mnemonic": "F", 5 | "id": "file", 6 | "children": 7 | [ 8 | { "command": "new_file", "caption": "新建檔案(N)", "mnemonic": "N" }, 9 | 10 | { "command": "prompt_open_file", "caption": "開啟檔案(O)…", "mnemonic": "O", "platform": "!OSX" }, 11 | { "command": "prompt_open_folder", "caption": "開啟資料夾…", "platform": "!OSX" }, 12 | { "command": "prompt_open", "caption": "開啟…", "platform": "OSX" }, 13 | { 14 | "caption": "最近開啟的檔案/資料夾(R)", 15 | "mnemonic": "R", 16 | "children": 17 | [ 18 | { "command": "reopen_last_file", "caption": "重新開啟關閉的檔案" }, 19 | { "caption": "-" }, 20 | { "command": "open_recent_file", "args": {"index": 0 } }, 21 | { "command": "open_recent_file", "args": {"index": 1 } }, 22 | { "command": "open_recent_file", "args": {"index": 2 } }, 23 | { "command": "open_recent_file", "args": {"index": 3 } }, 24 | { "command": "open_recent_file", "args": {"index": 4 } }, 25 | { "command": "open_recent_file", "args": {"index": 5 } }, 26 | { "command": "open_recent_file", "args": {"index": 6 } }, 27 | { "command": "open_recent_file", "args": {"index": 7 } }, 28 | { "caption": "-" }, 29 | { "command": "open_recent_folder", "args": {"index": 0 } }, 30 | { "command": "open_recent_folder", "args": {"index": 1 } }, 31 | { "command": "open_recent_folder", "args": {"index": 2 } }, 32 | { "command": "open_recent_folder", "args": {"index": 3 } }, 33 | { "command": "open_recent_folder", "args": {"index": 4 } }, 34 | { "command": "open_recent_folder", "args": {"index": 5 } }, 35 | { "command": "open_recent_folder", "args": {"index": 6 } }, 36 | { "command": "open_recent_folder", "args": {"index": 7 } }, 37 | { "caption": "-" }, 38 | { "command": "clear_recent_files", "caption": "清除記錄" } 39 | ] 40 | }, 41 | { 42 | "caption": "用此編碼重新開啟", 43 | "children": 44 | [ 45 | { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } }, 46 | { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } }, 47 | { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } }, 48 | { "caption": "-" }, 49 | { "caption": "西方語 (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } }, 50 | { "caption": "西方語 (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } }, 51 | { "caption": "西方語 (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } }, 52 | { "caption": "西方語 (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } }, 53 | { "caption": "西方語 (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } }, 54 | { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } }, 55 | { "caption": "阿拉伯語 (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } }, 56 | { "caption": "阿拉伯語 (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 57 | { "caption": "波羅海語 (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } }, 58 | { "caption": "波羅海語 (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 59 | { "caption": "凱爾特語 (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 60 | { "caption": "中歐語 (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } }, 61 | { "caption": "中歐語 (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } }, 62 | { "caption": "西裏爾語 (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 63 | { "caption": "西裏爾語 (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } }, 64 | { "caption": "西裏爾語 (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 65 | { "caption": "西裏爾語 (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 66 | { "caption": "西裏爾語 (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 67 | { "caption": "愛沙尼亞語 (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 68 | { "caption": "希臘語 (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } }, 69 | { "caption": "希臘語 (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } }, 70 | { "caption": "希伯來語 (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } }, 71 | { "caption": "希伯來語 (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 72 | { "caption": "北歐語 (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 73 | { "caption": "羅馬尼亞語 (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 74 | { "caption": "土耳其語 (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } }, 75 | { "caption": "土耳其語 (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 76 | { "caption": "越南語 (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 77 | { "caption": "-" }, 78 | { "caption": "十六進位碼", "command": "reopen", "args": {"encoding": "Hexadecimal" } } 79 | ] 80 | }, 81 | { "command": "clone_file", "caption": "複製當前檔案到新分頁(E)", "mnemonic": "e" }, 82 | { "command": "save", "caption": "儲存(S)", "mnemonic": "S" }, 83 | { 84 | "caption": "用此編碼儲存", 85 | "children": 86 | [ 87 | { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } }, 88 | { "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } }, 89 | { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } }, 90 | { "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } }, 91 | { "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } }, 92 | { "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } }, 93 | { "caption": "-" }, 94 | { "caption": "西方語 (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } }, 95 | { "caption": "西方語 (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } }, 96 | { "caption": "西方語 (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } }, 97 | { "caption": "西方語 (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } }, 98 | { "caption": "西方語 (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } }, 99 | { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } }, 100 | { "caption": "阿拉伯語 (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } }, 101 | { "caption": "阿拉伯語 (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } }, 102 | { "caption": "波羅海語 (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } }, 103 | { "caption": "波羅海語 (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } }, 104 | { "caption": "凱爾特語 (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } }, 105 | { "caption": "中歐語 (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } }, 106 | { "caption": "中歐語 (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } }, 107 | { "caption": "西裏爾語 (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } }, 108 | { "caption": "西裏爾語 (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } }, 109 | { "caption": "西裏爾語 (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } }, 110 | { "caption": "西裏爾語 (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } }, 111 | { "caption": "西裏爾語 (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } }, 112 | { "caption": "愛沙尼亞語 (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } }, 113 | { "caption": "希臘語 (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } }, 114 | { "caption": "希臘語 (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } }, 115 | { "caption": "希伯來語 (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } }, 116 | { "caption": "希伯來語 (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } }, 117 | { "caption": "北歐語 (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } }, 118 | { "caption": "羅馬尼亞語 (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } }, 119 | { "caption": "土耳其語 (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } }, 120 | { "caption": "土耳其語 (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } }, 121 | { "caption": "越南語 (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } }, 122 | { "caption": "-" }, 123 | { "caption": "十六進位碼", "command": "save", "args": {"encoding": "Hexadecimal" } } 124 | ] 125 | }, 126 | { "command": "prompt_save_as", "caption": "另存為(A)…", "mnemonic": "A" }, 127 | { "command": "save_all", "caption": "全部儲存(L)", "mnemonic": "l" }, 128 | { "caption": "-", "id": "window" }, 129 | { "command": "new_window", "caption": "新建視窗(W)", "mnemonic": "W" }, 130 | { "command": "close_window", "caption": "關閉視窗" }, 131 | { "caption": "-", "id": "close" }, 132 | { "command": "close", "caption": "關閉檔案(C)", "mnemonic": "C" }, 133 | { "command": "revert", "caption": "恢復檔案(V)", "mnemonic": "v" }, 134 | { "command": "close_all", "caption": "關閉所有檔案" }, 135 | { "caption": "-", "id": "exit" }, 136 | { "command": "exit", "caption": "退出(X)", "mnemonic": "x", "platform": "Windows" }, 137 | { "command": "exit", "caption": "退出(Q)", "mnemonic": "Q", "platform": "Linux" }, 138 | ] 139 | }, 140 | { 141 | "caption": "編輯(E)", 142 | "mnemonic": "E", 143 | "id": "edit", 144 | "children": 145 | [ 146 | { "command": "undo", "caption": "撤銷(U)", "mnemonic": "U" }, 147 | { "command": "redo_or_repeat", "caption": "重做(R)", "mnemonic": "R" }, 148 | { 149 | "caption": "撤消選擇", 150 | "children": 151 | [ 152 | { "command": "soft_undo", "caption": "撤銷選擇" }, 153 | { "command": "soft_redo", "caption": "重做選擇" } 154 | ] 155 | }, 156 | { "caption": "-", "id": "clipboard" }, 157 | { "command": "copy", "caption": "複製(C)", "mnemonic": "C" }, 158 | { "command": "cut", "caption": "剪下(T)", "mnemonic": "t" }, 159 | { "command": "paste", "caption": "貼上(P)", "mnemonic": "P" }, 160 | { "command": "paste_and_indent", "caption": "貼上並自動縮排(I)", "mnemonic": "I" }, 161 | { "command": "paste_from_history", "caption": "從歷史記錄中貼上" }, 162 | { "caption": "-" }, 163 | { 164 | "caption": "行(L)", "mnemonic": "L", 165 | "id": "line", 166 | "children": 167 | [ 168 | { "command": "indent", "caption": "縮排" }, 169 | { "command": "unindent", "caption": "取消縮排" }, 170 | { "command": "reindent", "caption": "再次縮排", "args": {"single_line": true} }, 171 | { "command": "swap_line_up", "caption": "向上切換行" }, 172 | { "command": "swap_line_down", "caption": "向下切換行" }, 173 | { "command": "duplicate_line", "caption": "複製游標所在行" }, 174 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "刪除行" }, 175 | { "command": "join_lines", "caption": "合併行" } 176 | ] 177 | }, 178 | { 179 | "caption": "注釋(M)", "mnemonic": "m", 180 | "id": "comment", 181 | "children": 182 | [ 183 | { "command": "toggle_comment", "args": {"block": false}, "caption": "單行注釋" }, 184 | { "command": "toggle_comment", "args": {"block": true}, "caption": "多行注釋" } 185 | ] 186 | }, 187 | { 188 | "caption": "文本(T)", "mnemonic": "T", 189 | "id": "text", 190 | "children": 191 | [ 192 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}, "caption": "在此前插入行" }, 193 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"}, "caption": "在此後插入行" }, 194 | { "caption": "-" }, 195 | { "command": "delete_word", "args": { "forward": false }, "caption": "向前刪除詞組" }, 196 | { "command": "delete_word", "args": { "forward": true }, "caption": "向後刪除詞組" }, 197 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "刪除行" }, 198 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "刪除至行首" }, 199 | { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "刪除至行尾" }, 200 | { "caption": "-" }, 201 | { "command": "transpose", "caption": "詞組互換" } 202 | ] 203 | }, 204 | { 205 | "caption": "標簽", 206 | "id": "tag", 207 | "children": 208 | [ 209 | { "command": "close_tag", "caption": "閉合當前標簽" }, 210 | { "command": "expand_selection", "args": {"to": "tag"}, "caption": "選擇至標簽對" }, 211 | { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "為選中內容新增標簽" } 212 | ] 213 | }, 214 | { 215 | "caption": "標記", 216 | "id": "mark", 217 | "children": 218 | [ 219 | { "command": "set_mark", "caption": "新增標記" }, 220 | { "command": "select_to_mark", "caption": "選擇至標記處" }, 221 | { "command": "delete_to_mark", "caption": "刪除標記" }, 222 | { "command": "swap_with_mark", "caption": "交換標記" }, 223 | { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "清除標記" }, 224 | { "caption": "-" }, 225 | { "command": "yank", "caption": "抽出" } 226 | ] 227 | }, 228 | { 229 | "caption": "程式碼折疊", 230 | "id": "fold", 231 | "children": 232 | [ 233 | { "command": "fold", "caption": "折疊" }, 234 | { "command": "unfold", "caption": "展開" }, 235 | { "command": "unfold_all", "caption": "全部展開" }, 236 | { "caption": "-" }, 237 | { "caption": "折疊全部", "command": "fold_by_level", "args": {"level": 1} }, 238 | { "caption": "折疊2層", "command": "fold_by_level", "args": {"level": 2} }, 239 | { "caption": "折疊3層", "command": "fold_by_level", "args": {"level": 3} }, 240 | { "caption": "折疊4層", "command": "fold_by_level", "args": {"level": 4} }, 241 | { "caption": "折疊5層", "command": "fold_by_level", "args": {"level": 5} }, 242 | { "caption": "折疊6層", "command": "fold_by_level", "args": {"level": 6} }, 243 | { "caption": "折疊7層", "command": "fold_by_level", "args": {"level": 7} }, 244 | { "caption": "折疊8層", "command": "fold_by_level", "args": {"level": 8} }, 245 | { "caption": "折疊9層", "command": "fold_by_level", "args": {"level": 9} }, 246 | { "caption": "-" }, 247 | { "command": "fold_tag_attributes", "caption": "折疊標簽屬性" } 248 | ] 249 | }, 250 | { 251 | "caption": "大小寫轉換(A)", "mnemonic": "a", 252 | "id": "convert_case", 253 | "children": 254 | [ 255 | { "command": "title_case", "caption": "首字母大寫" }, 256 | { "command": "upper_case", "caption": "轉為大寫" }, 257 | { "command": "lower_case", "caption": "轉為小寫" }, 258 | { "command": "swap_case", "caption": "大小寫互換" } 259 | ] 260 | }, 261 | { 262 | "caption": "自動換行", 263 | "id": "wrap", 264 | "children": 265 | [ 266 | { "command": "wrap_lines", "caption": "標尺處換行" }, 267 | { "command": "wrap_lines", "args": {"width": 70}, "caption": "每70個字換行" }, 268 | { "command": "wrap_lines", "args": {"width": 78}, "caption": "每78個字換行" }, 269 | { "command": "wrap_lines", "args": {"width": 80}, "caption": "每80個字換行" }, 270 | { "command": "wrap_lines", "args": {"width": 100}, "caption": "每100個字換行" }, 271 | { "command": "wrap_lines", "args": {"width": 120}, "caption": "每120個字換行" } 272 | ] 273 | }, 274 | { "command": "auto_complete", "caption": "顯示自動完成提示" }, 275 | { "caption": "-", "id": "permute" }, 276 | 277 | { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "按行排序(S)", "mnemonic": "S" }, 278 | { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "按行排序(區分大小寫)" }, 279 | { 280 | "caption": "整理行", 281 | "children": 282 | [ 283 | { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "反轉行排序" }, 284 | { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "去除重復行" }, 285 | { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "隨機打亂行" } 286 | ] 287 | }, 288 | { 289 | "caption": "整理選中內容", 290 | "children": 291 | [ 292 | { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "排序" }, 293 | { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "行排序(區分大小寫)" }, 294 | { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "反轉" }, 295 | { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "去重復" }, 296 | { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "隨機打亂" } 297 | ] 298 | }, 299 | { "caption": "-", "id": "end" } 300 | ] 301 | }, 302 | { 303 | "caption": "選擇(S)", 304 | "mnemonic": "S", 305 | "id": "selection", 306 | "children": 307 | [ 308 | { "command": "split_selection_into_lines", "caption": "拆分成行" }, 309 | { "command": "select_lines", "args": {"forward": false}, "caption": "新增前一行" }, 310 | { "command": "select_lines", "args": {"forward": true}, "caption": "新增後一行" }, 311 | { "command": "single_selection", "caption": "單選" }, 312 | { "command": "invert_selection", "caption": "反選" }, 313 | { "caption": "-" }, 314 | { "command": "select_all", "caption": "全選" }, 315 | { "command": "expand_selection", "args": {"to": "line"}, "caption": "選擇至整行" }, 316 | { "command": "find_under_expand", "caption": "選擇至詞組" }, 317 | { "command": "expand_selection_to_paragraph", "caption": "選擇至段落" }, 318 | { "command": "expand_selection", "args": {"to": "scope"}, "caption": "選擇至節點" }, 319 | { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "選擇至括號" }, 320 | { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "選擇至縮排" }, 321 | { "command": "expand_selection", "args": {"to": "tag"}, "caption": "選擇至標簽" } 322 | ] 323 | }, 324 | { 325 | "caption": "尋找(I)", 326 | "mnemonic": "i", 327 | "id": "find", 328 | "children": 329 | [ 330 | { "command": "show_panel", "args": {"panel": "find", "reverse": false}, "caption": "尋找…" }, 331 | { "command": "find_next", "caption": "尋找下一個" }, 332 | { "command": "find_prev", "caption": "尋找上一個" }, 333 | { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "漸進式尋找" }, 334 | { "caption": "-" }, 335 | { "command": "show_panel", "args": {"panel": "replace", "reverse": false}, "caption": "尋找替換…" }, 336 | { "command": "replace_next", "caption": "替換下一個" }, 337 | { "caption": "-" }, 338 | { "command": "find_under", "caption": "快速尋找" }, 339 | { "command": "find_all_under", "caption": "快速尋找所有" }, 340 | { "command": "find_under_expand", "caption": "快速選中下一個" }, 341 | { "command": "find_under_expand_skip", "caption": "快速跳轉到下一個", "platform": "!OSX" }, 342 | { "caption": "-" }, 343 | { "command": "slurp_find_string", "caption": "在所選內容中尋找" }, 344 | { "command": "slurp_replace_string", "caption": "在所選內容中替換" }, 345 | { "caption": "-" }, 346 | { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "在檔案中尋找…" }, 347 | { 348 | "caption": "尋找結果(R)", 349 | "mnemonic": "R", 350 | "children": 351 | [ 352 | { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "顯示結果面板" }, 353 | { "command": "next_result", "caption": "下一結果" }, 354 | { "command": "prev_result", "caption": "上一結果" } 355 | ] 356 | } 357 | ] 358 | }, 359 | { 360 | "caption": "檢視(V)", 361 | "mnemonic": "V", 362 | "id": "view", 363 | "children": 364 | [ 365 | { 366 | "caption": "側邊欄", 367 | "id": "side_bar", 368 | "children": 369 | [ 370 | { "command": "toggle_side_bar", "caption": "顯示/隱藏側邊欄" }, 371 | { "caption": "-" }, 372 | { "command": "toggle_show_open_files", "caption": "顯示/隱藏開啟的檔案" } 373 | ] 374 | }, 375 | { "command": "toggle_minimap", "caption": "開啟/關閉程式碼縮略圖" }, 376 | { "command": "toggle_tabs", "caption": "開啟/關閉檔案分頁" }, 377 | { "command": "toggle_status_bar", "caption": "開啟/關閉狀態欄" }, 378 | { "command": "toggle_menu", "caption": "開啟/關閉選單" }, 379 | { "command": "show_panel", "caption": "開啟/關閉主控台", "args": {"panel": "console", "toggle": true} }, 380 | { "caption": "-", "id": "full_screen" }, 381 | { "command": "toggle_full_screen", "caption": "切換全螢幕顯示" }, 382 | { "command": "toggle_distraction_free", "caption": "切換無幹擾模式" }, 383 | { "caption": "-", "id": "groups" }, 384 | { 385 | "caption": "布局(L)", 386 | "mnemonic": "L", 387 | "id": "layout", 388 | "children": 389 | [ 390 | { 391 | "caption": "單獨", 392 | "command": "set_layout", 393 | "args": 394 | { 395 | "cols": [0.0, 1.0], 396 | "rows": [0.0, 1.0], 397 | "cells": [[0, 0, 1, 1]] 398 | } 399 | }, 400 | { 401 | "caption": "列: 2", 402 | "command": "set_layout", 403 | "args": 404 | { 405 | "cols": [0.0, 0.5, 1.0], 406 | "rows": [0.0, 1.0], 407 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] 408 | } 409 | }, 410 | { 411 | "caption": "列: 3", 412 | "command": "set_layout", 413 | "args": 414 | { 415 | "cols": [0.0, 0.33, 0.66, 1.0], 416 | "rows": [0.0, 1.0], 417 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]] 418 | } 419 | }, 420 | { 421 | "caption": "列: 4", 422 | "command": "set_layout", 423 | "args": 424 | { 425 | "cols": [0.0, 0.25, 0.5, 0.75, 1.0], 426 | "rows": [0.0, 1.0], 427 | "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] 428 | } 429 | }, 430 | { 431 | "caption": "行: 2", 432 | "command": "set_layout", 433 | "args": 434 | { 435 | "cols": [0.0, 1.0], 436 | "rows": [0.0, 0.5, 1.0], 437 | "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] 438 | } 439 | }, 440 | { 441 | "caption": "行: 3", 442 | "command": "set_layout", 443 | "args": 444 | { 445 | "cols": [0.0, 1.0], 446 | "rows": [0.0, 0.33, 0.66, 1.0], 447 | "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] 448 | } 449 | }, 450 | { 451 | "caption": "網格: 4", 452 | "command": "set_layout", 453 | "args": 454 | { 455 | "cols": [0.0, 0.5, 1.0], 456 | "rows": [0.0, 0.5, 1.0], 457 | "cells": 458 | [ 459 | [0, 0, 1, 1], [1, 0, 2, 1], 460 | [0, 1, 1, 2], [1, 1, 2, 2] 461 | ] 462 | } 463 | } 464 | ] 465 | }, 466 | { 467 | "caption": "群組", 468 | "children": 469 | [ 470 | { "command": "new_pane", "caption": "移動檔案到新群組" }, 471 | { "command": "new_pane", "caption": "新群組", "args": {"move": false}, "caption": "新群組" }, 472 | { "command": "close_pane", "caption": "關閉群組" }, 473 | 474 | { "caption": "-" }, 475 | 476 | { 477 | "caption": "最大列數: 1", 478 | "command": "set_max_columns", 479 | "checkbox": true, 480 | "args": { "columns": 1 } 481 | }, 482 | { 483 | "caption": "最大列數: 2", 484 | "command": "set_max_columns", 485 | "checkbox": true, 486 | "args": { "columns": 2 } 487 | }, 488 | { 489 | "caption": "最大列數: 3", 490 | "command": "set_max_columns", 491 | "checkbox": true, 492 | "args": { "columns": 3 } 493 | }, 494 | { 495 | "caption": "最大列數: 4", 496 | "command": "set_max_columns", 497 | "checkbox": true, 498 | "args": { "columns": 4 } 499 | }, 500 | { 501 | "caption": "最大列數: 5", 502 | "command": "set_max_columns", 503 | "checkbox": true, 504 | "args": { "columns": 5 } 505 | }, 506 | ] 507 | }, 508 | { 509 | "caption": "焦點群組(F)", 510 | "mnemonic": "F", 511 | "children": 512 | [ 513 | 514 | { "command": "focus_neighboring_group", "caption": "下一群組" }, 515 | { "command": "focus_neighboring_group", "args": {"forward": false}, "caption": "上一群組" }, 516 | { "caption": "-" }, 517 | { "command": "focus_group", "args": {"group": 0}, "caption": "群組 1" }, 518 | { "command": "focus_group", "args": {"group": 1}, "caption": "群組 2" }, 519 | { "command": "focus_group", "args": {"group": 2}, "caption": "群組 3" }, 520 | { "command": "focus_group", "args": {"group": 3}, "caption": "群組 4" } 521 | ] 522 | }, 523 | { 524 | "caption": "移動檔案到群組(M)", 525 | "mnemonic": "M", 526 | "children": 527 | [ 528 | { "command": "move_to_neighboring_group", "caption": "下一群組" }, 529 | { "command": "move_to_neighboring_group", "args": {"forward": false}, "caption": "上一群組" }, 530 | { "caption": "-" }, 531 | { "command": "move_to_group", "args": {"group": 0}, "caption": "群組 1" }, 532 | { "command": "move_to_group", "args": {"group": 1}, "caption": "群組 2" }, 533 | { "command": "move_to_group", "args": {"group": 2}, "caption": "群組 3" }, 534 | { "command": "move_to_group", "args": {"group": 3}, "caption": "群組 4" } 535 | ] 536 | }, 537 | { "caption": "-" }, 538 | { 539 | "caption": "語法(S)", 540 | "mnemonic": "S", 541 | "id": "syntax", 542 | "children": [ { "command": "$file_types" } ] 543 | }, 544 | { 545 | "caption": "縮排(I)", 546 | "mnemonic": "I", 547 | "id": "indentation", 548 | "children": 549 | [ 550 | { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格縮排", "checkbox": true }, 551 | { "caption": "-" }, 552 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "制表符寬度: 1", "checkbox": true }, 553 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "制表符寬度: 2", "checkbox": true }, 554 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "制表符寬度: 3", "checkbox": true }, 555 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "制表符寬度: 4", "checkbox": true }, 556 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "制表符寬度: 5", "checkbox": true }, 557 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "制表符寬度: 6", "checkbox": true }, 558 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "制表符寬度: 7", "checkbox": true }, 559 | { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "制表符寬度: 8", "checkbox": true }, 560 | { "caption": "-" }, 561 | { "command": "detect_indentation", "caption": "使用緩衝區縮排方式" }, 562 | { "caption": "-" }, 563 | { "command": "expand_tabs", "caption": "轉為空格縮排", "args": {"set_translate_tabs": true} }, 564 | { "command": "unexpand_tabs", "caption": "轉為制表符縮排", "args": {"set_translate_tabs": true} } 565 | ] 566 | }, 567 | { 568 | "caption": "換行符/行尾符(N)", 569 | "mnemonic": "n", 570 | "id": "line_endings", 571 | "children": 572 | [ 573 | { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows 換行符 (CRLF)", "checkbox": true }, 574 | { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix 換行符 (LF)", "checkbox": true }, 575 | { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS X 換行符 (CR)", "checkbox": true } 576 | ] 577 | }, 578 | { "caption": "-", "id": "settings" }, 579 | { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "自動換行(W)", "mnemonic": "W", "checkbox": true }, 580 | { 581 | "caption": "自動換行字數", 582 | "children": 583 | [ 584 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "自動", "checkbox": true }, 585 | { "caption": "-" }, 586 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true }, 587 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true }, 588 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true }, 589 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true }, 590 | { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true } 591 | ] 592 | }, 593 | { 594 | "caption": "標尺", 595 | "children": 596 | [ 597 | { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "無", "checkbox": true }, 598 | { "caption": "-" }, 599 | { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true }, 600 | { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true }, 601 | { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true }, 602 | { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true }, 603 | { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true } 604 | ] 605 | }, 606 | { "caption": "-" }, 607 | { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "檢查拼寫", "checkbox": true }, 608 | { "command": "next_misspelling", "caption": "下一個拼寫錯誤" }, 609 | { "command": "prev_misspelling", "caption": "上一個拼寫錯誤" }, 610 | { 611 | "caption": "拼寫字典", 612 | "children": [ { "command": "$dictionaries" } ] 613 | } 614 | ] 615 | }, 616 | { 617 | "caption": "跳轉(G)", 618 | "mnemonic": "G", 619 | "id": "goto", 620 | "children": 621 | [ 622 | { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "跳轉到指定地方(A)…", "mnemonic": "A" }, 623 | { "caption": "-" }, 624 | { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "跳轉到符號處…" }, 625 | { "command": "goto_symbol_in_project", "caption": "跳轉到專案符號處…" }, 626 | { "command": "goto_definition", "caption": "跳轉到定義處…" }, 627 | // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "跳轉到詞組…" }, 628 | { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "跳轉到行…" }, 629 | { "caption": "-" }, 630 | { "command": "jump_back", "caption": "往後跳" }, 631 | { "command": "jump_forward", "caption": "往前跳" }, 632 | { "caption": "-" }, 633 | { 634 | "caption": "切換檔案(T)", 635 | "mnemonic": "t", 636 | "id": "switch_file", 637 | "children": 638 | [ 639 | { "command": "next_view", "caption": "下一個檔案" }, 640 | { "command": "prev_view", "caption": "上一個檔案" }, 641 | { "caption": "-" }, 642 | { "command": "next_view_in_stack", "caption": "當前組的下一個檔案" }, 643 | { "command": "prev_view_in_stack", "caption": "當前組的上一個檔案" }, 644 | { "caption": "-" }, 645 | { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]}, "caption": "切換標頭檔/原始檔(H)", "mnemonic": "H" }, 646 | { "caption": "-" }, 647 | { "command": "select_by_index", "args": { "index": 0 } }, 648 | { "command": "select_by_index", "args": { "index": 1 } }, 649 | { "command": "select_by_index", "args": { "index": 2 } }, 650 | { "command": "select_by_index", "args": { "index": 3 } }, 651 | { "command": "select_by_index", "args": { "index": 4 } }, 652 | { "command": "select_by_index", "args": { "index": 5 } }, 653 | { "command": "select_by_index", "args": { "index": 6 } }, 654 | { "command": "select_by_index", "args": { "index": 7 } }, 655 | { "command": "select_by_index", "args": { "index": 8 } }, 656 | { "command": "select_by_index", "args": { "index": 9 } } 657 | ] 658 | }, 659 | { "caption": "-" }, 660 | { 661 | "caption": "滾屏(S)", 662 | "mnemonic": "S", 663 | "id": "scroll", 664 | "children": 665 | [ 666 | { "command": "show_at_center", "caption": "滾動到選中內容" }, 667 | { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "往上滾動一行" }, 668 | { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "往下滾動一行" } 669 | ] 670 | }, 671 | { 672 | "caption": "書籤(B)", 673 | "mnemonic": "B", 674 | "id": "bookmarks", 675 | "children": 676 | [ 677 | { "command": "toggle_bookmark", "caption": "開啟/關閉書籤" }, 678 | { "command": "next_bookmark", "caption": "下一個書籤" }, 679 | { "command": "prev_bookmark", "caption": "上一個書籤" }, 680 | { "command": "clear_bookmarks", "caption": "清除書籤" }, 681 | { "command": "select_all_bookmarks", "caption": "全選書籤" }, 682 | { "caption": "-" }, 683 | { "command": "select_bookmark", "caption": "選擇書籤0", "args": {"index": 0} }, 684 | { "command": "select_bookmark", "caption": "選擇書籤1", "args": {"index": 1} }, 685 | { "command": "select_bookmark", "caption": "選擇書籤2", "args": {"index": 2} }, 686 | { "command": "select_bookmark", "caption": "選擇書籤3", "args": {"index": 3} }, 687 | { "command": "select_bookmark", "caption": "選擇書籤4", "args": {"index": 4} }, 688 | { "command": "select_bookmark", "caption": "選擇書籤5", "args": {"index": 5} }, 689 | { "command": "select_bookmark", "caption": "選擇書籤6", "args": {"index": 6} }, 690 | { "command": "select_bookmark", "caption": "選擇書籤7", "args": {"index": 7} }, 691 | { "command": "select_bookmark", "caption": "選擇書籤8", "args": {"index": 8} }, 692 | { "command": "select_bookmark", "caption": "選擇書籤9", "args": {"index": 9} }, 693 | { "command": "select_bookmark", "caption": "選擇書籤10", "args": {"index": 10} }, 694 | { "command": "select_bookmark", "caption": "選擇書籤11", "args": {"index": 11} }, 695 | { "command": "select_bookmark", "caption": "選擇書籤12", "args": {"index": 12} }, 696 | { "command": "select_bookmark", "caption": "選擇書籤13", "args": {"index": 13} }, 697 | { "command": "select_bookmark", "caption": "選擇書籤14", "args": {"index": 14} }, 698 | { "command": "select_bookmark", "caption": "選擇書籤15", "args": {"index": 15} } 699 | ] 700 | }, 701 | { "caption": "-" }, 702 | { "command": "move_to", "args": {"to": "brackets"}, "caption": "轉跳到匹配的括號" } 703 | ] 704 | }, 705 | { 706 | "caption": "工具(T)", 707 | "mnemonic": "T", 708 | "id": "tools", 709 | "children": 710 | [ 711 | { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "指令面板…" }, 712 | { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "程式碼片段…" }, 713 | { "caption": "-", "id": "build" }, 714 | { 715 | "caption": "編譯系統(U)", 716 | "mnemonic": "u", 717 | "children": 718 | [ 719 | { "command": "set_build_system", "args": { "file": "" }, "caption": "Automatic", "checkbox": true }, 720 | { "caption": "-" }, 721 | { "command": "set_build_system", "args": {"index": 0}, "checkbox": true }, 722 | { "command": "set_build_system", "args": {"index": 1}, "checkbox": true }, 723 | { "command": "set_build_system", "args": {"index": 2}, "checkbox": true }, 724 | { "command": "set_build_system", "args": {"index": 3}, "checkbox": true }, 725 | { "command": "set_build_system", "args": {"index": 4}, "checkbox": true }, 726 | { "command": "set_build_system", "args": {"index": 5}, "checkbox": true }, 727 | { "command": "set_build_system", "args": {"index": 6}, "checkbox": true }, 728 | { "command": "set_build_system", "args": {"index": 7}, "checkbox": true }, 729 | { "command": "set_build_system", "args": {"index": 8}, "checkbox": true }, 730 | { "command": "set_build_system", "args": {"index": 9}, "checkbox": true }, 731 | { "command": "set_build_system", "args": {"index": 10}, "checkbox": true }, 732 | { "command": "set_build_system", "args": {"index": 11}, "checkbox": true }, 733 | { "caption": "-" }, 734 | { "command": "$build_systems" }, 735 | { "caption": "-" }, 736 | { "command": "new_build_system", "caption": "新建編譯系統…" } 737 | ] 738 | }, 739 | { "command": "build", "caption": "編譯(B)", "mnemonic": "B" }, 740 | { "command": "build", "args": {"select": true}, "caption": "編譯自…" }, 741 | { "command": "exec", "args": {"kill": true}, "caption": "取消編譯(C)", "mnemonic": "C" }, 742 | { 743 | "caption": "編譯結果(R)", 744 | "mnemonic": "R", 745 | "children": 746 | [ 747 | { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "顯示編譯結果(S)", "mnemonic": "S" }, 748 | { "command": "next_result", "caption": "下一個結果(N)", "mnemonic": "N" }, 749 | { "command": "prev_result", "caption": "上一個結果(P)", "mnemonic": "P" } 750 | ] 751 | }, 752 | { "command": "toggle_save_all_on_build", "caption": "編譯時儲存全部(A)", "mnemonic": "A", "checkbox": true }, 753 | { "caption": "-", "id": "macros" }, 754 | { "command": "toggle_record_macro", "caption": "錄制巨集(M)", "mnemonic": "M" }, 755 | { "command": "run_macro", "caption": "運行巨集(P)", "mnemonic": "P" }, 756 | { "command": "save_macro", "caption": "儲存巨集(V)…", "mnemonic": "v" }, 757 | { 758 | "caption": "巨集", 759 | "children": [ { "command": "$macros" } ] 760 | }, 761 | { "caption": "-" }, 762 | { "command": "new_plugin", "caption": "新建外掛程式…" }, 763 | { "command": "new_snippet", "caption": "新建程式碼片段…" }, 764 | { "caption": "-", "id": "end" } 765 | ] 766 | }, 767 | { 768 | "caption": "專案(P)", 769 | "id": "project", 770 | "mnemonic": "P", 771 | "children": 772 | [ 773 | { "command": "prompt_open_project_or_workspace", "caption": "開啟專案(O)…" }, 774 | { "command": "prompt_switch_project_or_workspace", "caption": "切換專案…" }, 775 | { "command": "prompt_select_workspace", "caption": "快速切換專案(S)…", "mnemonic": "S" }, 776 | { 777 | "caption": "開啟最近專案(R)", 778 | "children": 779 | [ 780 | { "command": "open_recent_project_or_workspace", "args": {"index": 0 } }, 781 | { "command": "open_recent_project_or_workspace", "args": {"index": 1 } }, 782 | { "command": "open_recent_project_or_workspace", "args": {"index": 2 } }, 783 | { "command": "open_recent_project_or_workspace", "args": {"index": 3 } }, 784 | { "command": "open_recent_project_or_workspace", "args": {"index": 4 } }, 785 | { "command": "open_recent_project_or_workspace", "args": {"index": 5 } }, 786 | { "command": "open_recent_project_or_workspace", "args": {"index": 6 } }, 787 | { "command": "open_recent_project_or_workspace", "args": {"index": 7 } }, 788 | { "caption": "-" }, 789 | { "command": "clear_recent_projects_and_workspaces", "caption": "清除記錄" } 790 | ] 791 | }, 792 | { "caption": "-" }, 793 | { "command": "save_project_and_workspace_as", "caption": "專案另存為(A)…", "mnemonic": "A" }, 794 | { "command": "close_workspace", "caption": "關閉專案(C)", "mnemonic": "C" }, 795 | { "command": "open_file", "args": {"file": "${project}"}, "caption": "編輯專案" }, 796 | { "caption": "-" }, 797 | { "command": "new_window_for_project", "caption": "新建工作空間" }, 798 | { "command": "save_workspace_as", "caption": "儲存工作空間(A)…", "mnemonic": "A" }, 799 | { "caption": "-" }, 800 | { "command": "prompt_add_folder", "caption": "新增資料夾到專案(D)…", "mnemonic": "d" }, 801 | { "command": "close_folder_list", "caption": "從專案中移除資料夾(M)", "mnemonic": "m" }, 802 | { "command": "refresh_folder_list", "caption": "刷新資料夾列表(E)", "mnemonic": "e" }, 803 | ] 804 | }, 805 | { 806 | "caption": "設定(N)", 807 | "mnemonic": "n", 808 | "id": "preferences", 809 | "children": 810 | [ 811 | { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "瀏覽資源包(B)…", "mnemonic": "B" }, 812 | { "caption": "-" }, 813 | { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "默認設定…" }, 814 | { 815 | "command": "open_file", "args": 816 | { 817 | "file": "${packages}/User/Preferences.sublime-settings", 818 | "contents": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by file type specific settings.\n{\n\t$0\n}\n" 819 | }, 820 | "caption": "用戶設定…" 821 | }, 822 | { 823 | "caption": "更多設定", 824 | "children": 825 | [ 826 | { "command": "open_file_settings", "caption": "用戶語法設定…" }, 827 | { 828 | "command": "open_file", "args": 829 | { 830 | "file": "${packages}/User/Distraction Free.sublime-settings", 831 | "contents": "{\n\t$0\n}\n" 832 | }, 833 | "caption": "用戶無幹擾設定…" 834 | } 835 | ] 836 | }, 837 | { "caption": "-" }, 838 | { 839 | "command": "open_file", "args": 840 | { 841 | "file": "${packages}/Default/Default ($platform).sublime-keymap" 842 | }, 843 | "caption": "默認快速鍵設定…" 844 | }, 845 | { 846 | "command": "open_file", "args": 847 | { 848 | "file": "${packages}/User/Default ($platform).sublime-keymap", 849 | "contents": "[\n\t$0\n]\n" 850 | }, 851 | "caption": "用戶快速鍵設定…" 852 | }, 853 | { "caption": "-" }, 854 | { 855 | "caption": "字型", 856 | "children": 857 | [ 858 | { "command": "increase_font_size", "caption": "增大" }, 859 | { "command": "decrease_font_size", "caption": "縮小" }, 860 | { "caption": "-" }, 861 | { "command": "reset_font_size", "caption": "默認" } 862 | ] 863 | }, 864 | { 865 | "caption": "配色方案", 866 | "children": [ { "command": "$color_schemes" } ] 867 | } 868 | ] 869 | }, 870 | { 871 | "caption": "說明(H)", 872 | "mnemonic": "H", 873 | "id": "help", 874 | "children": 875 | [ 876 | { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/3/"}, "caption": "線上文檔" }, 877 | { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "官方微網誌(Twitter)" }, 878 | { "caption": "-" }, 879 | { 880 | "command": "open_file", "args": 881 | { 882 | "file": "漢化免責聲明", 883 | "contents": "\n1、本軟體漢化版本僅限於個人學習研究之用,不得用於商業用途,並要求在下載後24小時內刪除。軟體版權歸原作者所有,如果你喜歡,請購買正版。\n2、漢化作者不承擔任何由於軟體合法性及真實性所引起的爭議和法律責任。\n3、本軟體漢化作者並不同意、也未授權任何人以非個人學習研究交流的方式對外傳播!在傳遞本軟體時,必須附帶本聲明,且表示您清楚並已接受本聲明的全部內容。\n4、使用本軟體全憑您本人自願,漢化作者對任何人使用、傳播本軟體所帶來的直接或間接影響不負任何直接或連帶責任!軟體中任何涉及版權的軟體註冊授權問題由使用者自行負責承擔,本軟體漢化僅從技術角度提供相關資料,請嚴格按照國家相關法規學習和使用。\n\n=========================================\n\n\t線上購買正版:\n\n\thttp://www.sublimetext.com/buy\n\n\t漢化服務支援:\n\n\tSublime Text 中文論壇\n\n\thttp://sublimetext.iaixue.com/\n\n=========================================\n" 884 | }, 885 | "caption": "漢化免責聲明" 886 | }, 887 | { "command": "purchase_license", "caption": "購買授權"}, 888 | { "command": "show_license_window", "caption": "輸入授權碼" }, 889 | { "command": "remove_license", "caption": "移除授權"}, 890 | { "caption": "-" }, 891 | { "command": "update_check", "caption": "檢查更新…", "platform": "!Linux" }, 892 | { "command": "show_changelog", "caption": "更新日誌…" }, 893 | { "command": "show_about_window", "caption": "關於 Sublime Text", "mnemonic": "A" } 894 | ] 895 | } 896 | ] 897 | --------------------------------------------------------------------------------