amoilanen / brackets-command-line-shortcuts Goto Github PK
View Code? Open in Web Editor NEWBrackets IDE plugin. Adds support of shortcuts for execution of terminal commands right from the IDE.
Brackets IDE plugin. Adds support of shortcuts for execution of terminal commands right from the IDE.
I created a configuration like so:
[
{
"name": "Check Puppet File",
"dir": "$PROJECT_ROOT",
"cmd": "puppet parser validate $SELECTED_ITEM",
"shortcut": "Ctrl-Alt-X",
"autohide": false
},
]
When I press the key combination (and I tried several different combinations), nothing happens. I checked the error console and nothing there either.
Not sure what else to check for.
When updating the plugin it overwrites the personalized config with the example.
Add a special variable for currently openned file to use in the command ("cmd" option)
Would it be possible to add a setting to add additional bin paths to look for executables? I have a lot of things installed under ~/bin
...
Due to the Brackets project being discontinued by Adobe, consider migrating the extension to Visual Studio Code http://brackets.io/
In the process also consider migrating to Typescript
As soon as a command failed no following command will work at all.
E.g. your second shotcut in example config (listing JS files) fails for me:
RUNNING 'find . […]'
ERROR: execvp(): No such file or directory
So after this error no shortcut works until I restart Brackets.
There dose not seem to be a way to close long running programs. I would expect the to close when I close the Feedback Panel or be able to use CTRL+C to kill the currently running process. now i have to start Task manager find the cmd.exe and "kill process tree"
FYI: I'm using it to start the Django Dev Server.
Since most of the time you'd want to run commands from the project root (e.g. for most git actions), wouldn't it be easier to default the dir
setting to $PROJECT_ROOT
?
I am using this extension to run a .bat file which builds and executes my LOVE2D game. If I run the file manually there is a console along with the game which contains debugging info.
However, when running with this extension, the console does not show, and any info the game outputs to console doesn't show in the feedback panel.
Is there an option to enable the console again?
{
"name": "Run with LOVE",
"dir": "$PROJECT_ROOT",
"cmd": "build",
"shortcut": "Ctrl-Shift-Z",
"autohide": true
}
I want to configure a command which executes a script from within my project directory.
Currently I have to set an absolute path to my project folder so I cannot use this command for several projects.
So it would be nice to be able to set dir
to use the project root. Maybe with a variable or something.
I installed the plugin, forgot about it, and later opened the shortcuts file from the Edit menu. I commented out the commands already inside, and then started writing a command. I deleted it, saved the file, and closed with the old commands still commented out. I closed Brackets. I reopened it later, and looked for the menu item, but it was gone.
I went into the Extensions Manager, and was looking for the extension to see if I still had it installed (I had uninstalled a bunch earlier), and I did, except where the Installed button was there was a little message that told me there was an error with the plugin. I unfortunately don't remember exactly what it said. There was a link next to it to uninstall, so I did. I restarted, reinstalled the plugin, restarted, and the menu is still gone, though there's no error message in the Extensions Manager.
Is there a way I can fix this?
Here's my Developer Tools console log, though I looked through it and I don't think any of them have to do with this plugin:
Download the React DevTools for a better development experience: http://fb.me/react-devtools
/C:/Users/Tierney/AppData/Roaming/Brackets/extensions/user/tjeffree.extensionhighlighter/main.js:221 Calling CSSStyleSheet.insertRule() with one argument is deprecated. Please pass the index argument as well: insertRule(x, 0).
/utils/EventDispatcher.js:100 Registering for deprecated event 'currentDocumentChange'. Instead, use MainViewManager.currentFileChange. Error
at Object.on (/utils/EventDispatcher.js:100:43)
at file:///C:/Users/Tierney/AppData/Roaming/Brackets/extensions/user/zeid.autosave-on-view-change/main.js:24:24
at Object.context.execCb (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:1658:33)
at Object.Module.check (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:869:55)
at Object.Module.enable (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:1151:22)
at Object.Module.init (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:782:26)
at callGetModule (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:1178:63)
at Object.context.completeLoad (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:1552:21)
at HTMLScriptElement.context.onScriptLoad (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/requirejs/require.js:1679:29)
/command/KeyBindingManager.js:730 Cannot assign Ctrl-Alt-C to codefolding.collapse. It is already assigned to extension.commandline.run.3
/LiveDevelopment/MultiBrowserImpl/transports/NodeSocketTransport.js:87 NodeSocketTransport - start
/C:/Users/Tierney/AppData/Roaming/Brackets/extensions/user/brackets-html5codehints/main.js:523 AppInit
/utils/AppInit.js:95 Exception when calling a 'brackets done loading' handler: TypeError: number is not a function
/utils/AppInit.js:96 TypeError: number is not a function
at _callHandler (/utils/AppInit.js:93:13)
at Object._dispatchReady (/utils/AppInit.js:113:13)
at Object.eval (/brackets.js:290:33)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26860)
at Object.k.add [as done] (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:27169)
at Object.d.always (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:28045)
at Object.eval (/brackets.js:288:30)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26860)
at Object.k.fireWith [as resolveWith] (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:27673)
at Object.e.(anonymous function) (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:28653)
/command/KeyBindingManager.js:730 Cannot assign Ctrl-Alt-B to io.emmet.balance_outward. It is already assigned to extension.commandline.run.0
/command/KeyBindingManager.js:730 Cannot assign Ctrl-Shift-Up to io.emmet.increment_number_by_1. It is already assigned to edit.lineUp
/command/KeyBindingManager.js:730 Cannot assign Ctrl-Shift-Down to io.emmet.decrement_number_by_1. It is already assigned to edit.lineDown
NodeDebugUtils.js:117 [node-log 9:19:31 PM] �[36m[2015-01-29 21:19:31.719] [DEBUG] logfile - �[39mStarted parent.
NodeDebugUtils.js:114 [node-error 9:19:31 PM] log4js.fileAppender - Writing to file \tmp\DiagnosticsDomain.log, error happened { [Error: ENOENT, open 'C:\tmp\DiagnosticsDomain.log']
errno: 34,
code: 'ENOENT',
path: 'C:\\tmp\\DiagnosticsDomain.log' }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.