2014-03-12 32 views
1

如何將當前文件路徑嵌入到自定義用戶鍵盤映射中?我指的是這個文檔:Sublime Text 3用法鍵盤映射用戶

http://sublimetext.info/docs/en/reference/build_systems.html

已經遭到反對,但我沒有看到相當於文檔$file_path變量,我需要在我的鍵盤映射最新文檔中使用。我沒有任何運氣。我的鍵盤佈局是這樣的(嘗試推出谷歌瀏覽器與標誌包裝我的應用程序):

{ 
    "keys": [ 
     "shift+ctrl+g" 
    ], 
    "command": "exec", 
    "args": { 
     "cmd": [ 
      "c:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", 
      "--pack-extension=${file_path}" 
     ] 
    } 
} 
+0

這不是關鍵綁定文檔,而是構建系統文檔。有關構建系統的更多詳細信息,請參閱http://docs.sublimetext.info/en/latest/reference/build_systems.html和http://docs.sublimetext.info/en/latest/file_processing/build_systems.html。 – skuroda

回答

1

最新的和更新的文檔通常在這裏找到:http://docs.sublimetext.info/en/latest/reference/build_systems.html

您可以切換在該版本切換邊欄底部。雖然$file_path變量仍然存在,所以它可能應該工作。您可以嘗試刪除包裝大括號{}

+0

我一直在測試這個,並且可以讓外部工具正確執行,如果我修改參數: 「--pack-extension = C:\\ Users \\ App \\ YouTube Videos」 This does not'儘管如此: 「--pack-extension = $ file_path」 – kstubs

相關問題