jEditã®Consoleãã©ã°ã¤ã³ã便å©ã«ä½¿ã
jEditã®Consoleãã©ã°ã¤ã³ã¯ãOSãã¤ãã£ããªã³ãã³ãã©ã¤ã³ã·ã§ã«ãjEditã«çµ±åãã¾ããç·¨éä¸ã®ã³ã¼ããã³ãã³ãã©ã¤ã³ã§ç°¡åã«ãã¹ããããã対話ãå¿ è¦ã¨ããªãã³ãã³ãã©ã¤ã³ãã¼ã«ãå®è¡ããã®ã«ä¾¿å©ã§ããWindowsãªããã¡ã¤ã«åãã¿ã¤ã(ãã¶ãMacã§ã¯openã«ç¶ãã¦ãã¡ã¤ã«åãã¿ã¤ã)ããã ãã§ãé¢é£ä»ããããã¨ãã£ã¿ããã°ã©ã ãåããã¾ãã
ãã â¦ãã³ãã³ãã©ã¤ã³ã§ãã¤ãé¢åãªã®ã¯ããã¼ã¿ã¤ãã§ã«ã¬ã³ããã£ã¬ã¯ããªãä½æ¥å ´æã¾ã§ç§»åãããæä½ã§ããProjectViewerã§ç®¡çãã¦ããã°ãèªåã§åæãã¦ãããã®ã§ãããããããé¢åã§(^^;
ã¨ãã¡ãã£ã¨ããé¢åãå«ã§ãå
¥ã£ã¦ããã®ã«ãã¾ã使ããªãã£ãConsoleãã©ã°ã¤ã³ã ã£ãã®ã§ãããæè¿ã«ãªã£ã¦ããã·ã§ã¼ãã«ãããè¦ã¤ãã¾ããã
ç·¨éä¸ãããã¡ã®ãã£ã¬ã¯ããªã«ç§»å
cd ${d}
ãã¡ã¤ã«ã·ã¹ãã ãã©ã¦ã¶ã®ç¾å¨ãã£ã¬ã¯ããªã«ç§»å
cd ${BROWSER_DIR}
ç·¨éä¸ãããã¡ã®ãã¡ã¤ã«ããã¤ã³ã¿ããªã¿hogeã§å®è¡
hoge ${f}
${f}æå®ã ã¨ããããã¡ãåãæ¿ã㦠"Run last command" ãã¿ã³ãã¯ãªãã¯ããã¨ããåãæ¿ããå¾ã®ãããã¡ãåãããã°ã©ã ã§éãã¦ããã¾ãã"Run last command"ããã¼ãã¼ãã·ã§ã¼ãã«ãã(ãã¨ãã°Ctrl+F12)ã«ç»é²ãã¦ããã°ããã¦ã¹æä½ããã©ã¼ã«ã¹ç§»åããªãã«ã
- ã³ã¼ããæ¸ã
- Ctrl â
- S ââ (ä¿å)
- F12 ââ (å®è¡)
ã®å復ã ãã§ä½æ¥ã§ãã¾ãã
ããããã¡ãä¿åãã¦æå¾ã®ã³ãã³ããåå®è¡ãã¿ãããªãã¯ããæ¸ãã¦ããããããåç¬ã®ãã¡ã³ã¯ã·ã§ã³ãã¼ã«å²ãå½ã¦ã¦ãããªãã¦ããæãããã¾ããã
ãã¡ã¤ã«ã·ã¹ãã ãã©ã¦ã¶ã®ç¾å¨ãã£ã¬ã¯ããªã«ç§»åãããããBROWSER_DIRã£ã¦ããã¤ã¥ãããé¢åãªäººåãã«ã¯ããããªãã¯ããããã§ãã
runInSystemShell(view, "cd ${BROWSER_DIR}");
runInSystemShellã¯ããã¯ãããConsoleã®ã·ã§ã«ã«ã³ãã³ãè¡ãéãããã®æ¡å¼µã§ãjEditã®ã¿ã§ä½¿ããã°ãã¼ãã«ãªã·ã§ã«ã¹ã¯ãªããã£ã¦æè¦ã§ãããããã§ãããã§ãã
ã¾ãã綺éºã«ãã¯ããããæ¸ãã¨ããããªãããªã
ãããã¡ã®ãã£ã¬ã¯ããªã«ç§»å.bsh
runInSystemShell(view, "cd \"" + buffer.directory + "\"");
ãã©ã¦ã¶ã®ãã£ã¬ã¯ããªã«ç§»å.bsh
browser = view.dockableWindowManager.getDockable("vfs.browser"); runInSystemShell(view, "cd \"" + browser.directory + "\"");
ç´æ¥ã¯é¢ä¿ãªãã§ãããã¨ã¯ã¹ããã¼ã©(人ã«ãã£ã¦ã¯éããã¡ã¤ã«ããã¼ã¸ã£ã«æ¸ãæãå¯è½)ã§ãã©ã«ããéããã¯ãã¯ãããªãã¾ãã
ãããã¡ã®ãã£ã¬ã¯ããªãã¨ã¯ã¹ããã¼ã©ã§éã.bsh
//ã«ã¹ã¿ãã¤ãºå¯è½ fileman_command = "explorer.exe /n,/e,/select,\"%TARGET_PATH%\""; java.lang.Runtime.getRuntime().exec( fileman_command.replace("%TARGET_PATH%", buffer.path) );
ãã©ã¦ã¶ã®ãã£ã¬ã¯ããªãã¨ã¯ã¹ããã¼ã©ã§éã.bsh
//ã«ã¹ã¿ãã¤ãºå¯è½ fileman_command = "explorer.exe /n,/e,\"%TARGET_PATH%\""; browser = view.dockableWindowManager.getDockable("vfs.browser"); java.lang.Runtime.getRuntime().exec( fileman_command.replace("%TARGET_PATH%", browser.directory) );
ãããã¡ãããConsoleã®ã·ã§ã«ãã
explorer ${d}
ã§ããããã ãã©ãã
以åæ¸ãããã®ãã¯ãããªãããã®ã§ãjEditプラグイン ExplorerHereのアルファ版 - なんたらノート 第二期ã使ã£ã¦ããã§ãããæ¸ãç´ããã®ã§ãããããã