SideBarEnhancements

增加功能

新建文件/目录,编辑,打开/运行,显示,在选择中/上级目录/项目中查找,剪切,复制,粘贴,重命名,删除,刷新…

不安装SideBarEnhancements:

SideBarEnhancements - 图1

安装SideBarEnhancements:

SideBarEnhancements - 图2

open with

我们可以在这个功能里配置,用哪种程序打开文件,可以是Photoshop、Firefox、Safari、Chrom、Atom、Mou等。

具体操作:
SideBarEnhancements - 图3

我的配置(Mac)

  1. [
  2. {"id": "side-bar-files-open-with",
  3. "children":
  4. [
  5. //application 1
  6. {
  7. "caption": "Photoshop",
  8. "id": "side-bar-files-open-with-photoshop",
  9. "command": "side_bar_files_open_with",
  10. "args": {
  11. "paths": [],
  12. "application": "Adobe Photoshop CS5.app", // OSX
  13. "extensions":"psd|png|jpg|jpeg", //any file with these extensions
  14. "args":[]
  15. },
  16. "open_automatically" : false // will close the view/tab and launch the application
  17. },
  18. //separator
  19. {"caption":"-"},
  20. //application 2
  21. {
  22. "caption": "Firefox",
  23. "id": "side-bar-files-open-with-firefox",
  24. "command": "side_bar_files_open_with",
  25. "args": {
  26. "paths": [],
  27. "application": "Firefox.app", // WINNT
  28. "extensions":"", //open all even folders
  29. "args":[]
  30. },
  31. "open_automatically" : false // will close the view/tab and launch the application
  32. },
  33. //separator
  34. {"caption":"-"},
  35. //application 3
  36. {
  37. "caption": "Mou",
  38. "id": "side-bar-files-open-with-Mou",
  39. "command": "side_bar_files_open_with",
  40. "args": {
  41. "paths": [],
  42. "application": "Mou.app", // OSX
  43. "extensions":"md", //any file with these extensions
  44. "args":[]
  45. },
  46. "open_automatically" : false // will close the view/tab and launch the application
  47. },
  48. //separator
  49. {"caption":"-"},
  50. //application 4
  51. {
  52. "caption": "Chrome",
  53. "id": "side-bar-files-open-with-chrome",
  54. "command": "side_bar_files_open_with",
  55. "args": {
  56. "paths": [],
  57. "application": "Google Chrome.app",
  58. "extensions":".*", //any file with extension
  59. "args":[]
  60. },
  61. "open_automatically" : false // will close the view/tab and launch the application
  62. },
  63. //separator
  64. {"caption":"-"},
  65. //application 4
  66. {
  67. "caption": "Safari",
  68. "id": "side-bar-files-open-with-safari",
  69. "command": "side_bar_files_open_with",
  70. "args": {
  71. "paths": [],
  72. "application": "Safari.app",
  73. "extensions":".*", //any file with extension
  74. "args":[]
  75. },
  76. "open_automatically" : false // will close the view/tab and launch the application
  77. },
  78. {"caption":"-"}
  79. ]
  80. }
  81. ]

配置项详解:

  • caption 应用名称
  • id 唯一标识
  • command 对应的命令名称
  • args
    • paths
    • application 应用程序地址
    • extensions 后缀类型多个可以是这样markdown|md|mdown|mkd|mkdn|txt
    • args
  • open_automatically 是否默认打开

Copy as

另外,很牛的 Copy as Text…:包含各种形式的路径、URI(甚至包括 base64 的 data:uri)、转码后的文件名、各种 HTML Tag(a、img、script、style)……

快捷键设置

打开preferences ->key Bindings user,增加如下代码:

  1. { "keys": ["super+ctrl+s"], "command": "side_bar_files_open_with",
  2. "args": {
  3. "paths": [],
  4. "application": "Safari.app",
  5. "extensions":".*"
  6. }
  7. }

这样就将open with safari的快捷键设置为super+ctrl+s,其他应用程序的设置方法也一样