Git Product home page Git Product logo

blueimp / atom-open-terminal-here Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flynsarmy/atom-open-terminal-here

47.0 47.0 20.0 297 KB

Open the Terminal (Mac OS X, Linux) or Command Prompt (Windows) in the given directory via context menu or keyboard shortcut in the Atom text editor.

Home Page: https://atom.io/packages/open-terminal-here

License: MIT License

CoffeeScript 53.14% AppleScript 15.03% Shell 31.83%

atom-open-terminal-here's People

Contributors

blueimp avatar czchen avatar davidhsv avatar flynsarmy avatar jscissr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atom-open-terminal-here's Issues

Error when clicked "Open Terminal Here" on a symlink to a file

Steps to reproduce:

  1. Make a symlink to a file that will show up in the project tree.
  2. Right-click the symlink in the project tree, the context menu will appear.
  3. Select "Open Terminal Here" from the context menu.

Symlinks to directories work as expected.

Atom: 1.17.2 x64
Electron: 1.3.15
OS: Mac OS X 10.12
Thrown From: open-terminal-here package 2.3.0

Stack Trace

Uncaught Error: spawn ENOTDIR

At internal/child_process.js:313

Error: spawn ENOTDIR
    at exports._errnoException (util.js:1026:11)
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at exports.spawn (child_process.js:392:9)
    at Object.exports.execFile (child_process.js:155:15)
    at Object.module.(anonymous function) [as execFile] (ELECTRON_ASAR.js:195:20)
    at Object.exports.exec (child_process.js:115:18)
    at Object.childProcess.(anonymous function) [as exec] (ELECTRON_ASAR.js:680:22)
    at open (/packages/open-terminal-here/index.coffee:44:28)
    at /packages/open-terminal-here/index.coffee:63:9)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:1)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:1)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:166:1)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1306:1)
    at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:347:1)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -3:30 core:cut (input.hidden-input)
  2x -3:29.8.0 core:backspace (input.hidden-input)
     -3:28.2.0 core:paste (input.hidden-input)
     -3:26.1.0 docblockr:parse-enter (input.hidden-input)
     -3:26.1.0 editor:newline (input.hidden-input)
     -3:24.9.0 core:move-left (input.hidden-input)
     -3:24.6.0 core:select-left (input.hidden-input)
     -3:24.4.0 docblockr:parse-enter (input.hidden-input)
     -3:24.4.0 editor:newline (input.hidden-input)
     -3:24.2.0 editor:move-to-end-of-screen-line (input.hidden-input)
  2x -3:24 core:move-left (input.hidden-input)
     -3:23.6.0 docblockr:parse-enter (input.hidden-input)
     -3:23.6.0 editor:newline (input.hidden-input)
     -3:23.3.0 core:move-right (input.hidden-input)
     -3:23 core:save (input.hidden-input)
  2x -2:01.5.0 open-terminal-here:open (span.name.icon.icon-file-symlink-file.medium-yellow)

Non-Core Packages

advanced-open-file 0.16.6 
atom-cursor-indent 0.1.1 
atom-typescript 11.0.6 
autocomplete-flow 1.6.0 
busy-signal 1.4.3 
copy-filename 1.1.0 
custom-title 1.0.1 
docblockr 0.10.5 
file-icons 2.1.8 
git-time-machine 1.5.9 
highlight-selected 0.13.1 
hyperclick 0.1.2 
intentions 1.1.2 
ionide-fake 1.2.2 
ionide-fsharp 1.9.3 
ionide-fsi 2.1.3 
ionide-installer 1.4.0 
ionide-paket 2.2.6 
ionide-webview 1.0.3 
js-hyperclick 1.11.0 
language-babel 2.66.1 
language-cpp14 0.6.2 
language-fsharp 0.8.4 
language-svg 0.9.2 
language-todo-extra-words 0.2.0 
language-typescript-grammars-only 1.6.0 
linter 2.2.0 
linter-eslint 8.2.1 
linter-flow 5.6.0 
linter-gcc 0.7.1 
linter-jsonlint 1.3.0 
linter-sass-lint 1.7.4 
linter-tslint 1.7.0 
linter-ui-default 1.6.2 
multi-cursor-plus 1.2.0 
multirow-tabs 0.3.3 
open-in-browser 0.5.2 
open-terminal-here 2.3.0 
package-cop 0.2.10 
path-copy 0.14.0 
path-hyperclick 0.3.0 
pigments 0.39.1 
revert-buffer 0.5.0 
split-diff 1.4.3 
svg-preview 0.11.0 
svgo 2.8.5 
tab-control 0.6.10 
todo-show 1.11.0 
vertical-tabs 1.0.5 

Uncaught Error: ENOENT: no such file or directory, lstat 'D:/'

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.2 x64
Electron: 1.6.15
OS: Microsoft Windows 10 Home
Thrown From: open-terminal-here package 2.3.1

Stack Trace

Uncaught Error: ENOENT: no such file or directory, lstat 'D:'

At fs.js:902

Error: ENOENT: no such file or directory, lstat 'D:\'
    at fs.lstatSync (fs.js:902:18)
    at Object.fs.lstatSync (ELECTRON_ASAR.js:244:16)
    at start (fs.js:1515:10)
    at Object.realpathSync (fs.js:1503:3)
    at Object.fs.realpathSync (ELECTRON_ASAR.js:321:29)
    at open (/packages/open-terminal-here/index.coffee:40:24)
    at /packages/open-terminal-here/index.coffee:65:9)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.23.2/resources/app/src/command-registry.js:388:36)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.23.2/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.23.2/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.23.2/resources/app/src/window-event-handler.js:108:40)

Commands

     -0:19.7.0 open-terminal-here:open (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.9 
open-terminal-here 2.3.1 

Gnome-terminal on Fedora 25

Installing this package for Atom on Fedora 25 and changing the terminal to 'gnome-terminal' has an unexpected side effect. It opens the terminal in the correct location how I would expect, it however prints a few lines in that terminal:

bash: error importing function definition for `BASH_FUNC_module'
bash: scl: line 1: syntax error: unexpected end of file
bash: error importing function definition for `BASH_FUNC_scl'
/bin/sh: scl: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `BASH_FUNC_scl'
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `BASH_FUNC_module'
/bin/sh: scl: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `BASH_FUNC_scl'
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `BASH_FUNC_module'
/bin/sh: scl: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `BASH_FUNC_scl'
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `BASH_FUNC_module'
[pjaleeuwen@localhost auth]$ 

Directory is ignored on linux (xfce)

When I use "open terminal here" it opens a terminal but completely ignores the directory. The terminal always starts at home directory which is not the desired behavior.

It doesn't matter if I use it from the tree view or from an open file.

I'm on Linux Mint 17.1 with XFCE desktop.

NODE_ENV is set to production

When I open cmd using this tool, the NODE_ENV environment variable is automatically set to production, which is not what I want.

The terminal currently inherits all the environment vars set by Atom. This makes the it less usable for node development.

Project is unmaintained

This project is now officially unmaintained.
Forking and publishing of alternative packages is welcome.

Open windows in tab (OS X)

Thank you for great package.

Little enhacement - would be nice if other window will open in new terminal tab instead of new window (OS X).

Option for opening terminal at project root?

Awesome package. What do you think about adding an option + hotkey for opening terminal at project root, rather than at current file path? I often find myself using your package then ../../../.. back to my folder root in terminal.

.Uncaught Error: ENOENT: no such file or directory, lstat '~/UniServerZ\www\enie\.git:git-branches'

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.16.0 x64
Electron: 1.3.13
OS: Unknown Windows version
Thrown From: open-terminal-here package 2.3.0

Stack Trace

Uncaught Error: ENOENT: no such file or directory, lstat 'C:\Users\recca\UniServerZ\www\enie.git:git-branches'

At fs.js:982

Error: ENOENT: no such file or directory, lstat 'C:\Users\recca\UniServerZ\www\enie\.git:git-branches'
    at Error (native)
    at fs.lstatSync (fs.js:982:18)
    at Object.fs.lstatSync (ELECTRON_ASAR.js:239:16)
    at open (/packages/open-terminal-here/index.coffee:38:25)
    at /packages/open-terminal-here/index.coffee:63:9)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:3:59)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/app.asar/src/command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/app.asar/src/atom-environment.js:1185:28)
    at EventEmitter.outerCallback (/app.asar/src/application-delegate.js:325:25)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -2:51.2.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:43.5.0 tree-view:add-file (div.header.list-item)
     -0:37.8.0 core:confirm (input.hidden-input)
     -0:33.5.0 tree-view-git-branch:reload (span.name.icon.icon-file-directory)
     -0:33 tool-panel:unfocus (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:30.8.0 tree-view:add-file (div.header.list-item)
     -0:27.7.0 core:confirm (input.hidden-input)
  2x -0:11 open-terminal-here:open (span.name.icon.icon-git-branch)

Non-Core Packages

advanced-open-file 0.16.6 
atom-beautify 0.29.18 
atom-bootstrap3 1.2.12 
atom-clock 0.1.6 
atom-hexo 1.1.1 
atom-material-syntax 1.0.2 
atom-material-ui 1.3.9 
atom-php-navigation 0.6.0 
atom-phpunit 1.2.4 
atom-ternjs 0.18.2 
autoclose-html 0.23.0 
autocomplete-modules 1.6.9 
autocomplete-paths 1.0.5 
autocomplete-php 0.3.7 
blade-snippets 0.2.0 
busy-signal 1.3.0 
composer 0.5.0 
docblockr 0.9.4 
editorconfig 2.2.2 
emmet 2.4.3 
es6-javascript 1.0.0 
expose 0.14.0 
file-icons 2.1.2 
git-diff-details 1.4.0 
git-log 0.4.1 
git-plus 7.4.0 
git-time-machine 1.5.9 
hexo-front-matter 0.3.5 
highlight-selected 0.13.1 
hyperclick 0.0.40 
intentions 1.1.2 
javascript-snippets 1.2.1 
language-babel 2.57.2 
language-blade 0.29.0 
language-markdown 0.20.0 
laravel 0.7.1 
laravel-5-snippets 0.8.0 
laravel-eloquent-snippets 2.0.0 
laravel-forms-bootstrap-snippets 1.2.0 
laravel-snippets 2.1.0 
linter 2.1.2 
linter-bootlint 1.0.4 
linter-csslint 1.3.4 
linter-eslint 8.1.5 
linter-htmlhint 1.3.3 
linter-jsonlint 1.3.0 
linter-php 1.3.2 
linter-sass-lint 1.7.4 
linter-ui-default 1.2.2 
linter-write-good 0.9.0 
markdown-preview-plus 2.4.9 
markdown-writer 2.6.4 
merge-conflicts 1.4.4 
minimap 4.27.1 
minimap-autohider 1.4.0 
minimap-bookmarks 0.4.2 
minimap-find-and-replace 4.5.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
minimap-linter 2.0.0 
minimap-selection 4.4.0 
open-terminal-here 2.3.0 
pdf-view 0.57.0 
php-integrator-annotations 1.1.1 
php-integrator-autocomplete-plus 1.3.0 
php-integrator-base 2.1.11 
php-integrator-call-tips 1.2.1 
php-integrator-linter 1.3.0 
php-integrator-navigation 1.1.2 
php-integrator-refactoring 1.3.1 
php-integrator-tooltips 1.1.5 
phpunit-snippets 0.1.0 
project-manager 3.3.4 
remote-sync 4.1.5 
revert-buffer 0.5.0 
sort-attributes 0.2.4 
sort-lines 0.14.0 
string-case 0.1.0 
string-encoder 0.1.0 
stylefmt 4.1.0 
sync-settings 0.8.1 
tabs-to-spaces 1.0.3 
tester 0.4.6 
tester-mocha 0.3.0 
tester-phpunit 0.1.8 
toggle-quotes 1.0.1 
tool-bar-almighty 0.8.2 
tree-view-git-branch 0.1.2 
tree-view-git-status 1.3.1 

Should default to opening PowerShell on Windows 10 instead of CMD.exe

On Windows 10, the OS suggests/prefers that you use PowerShell as a replacement for CMD.exe. This package, however, only opens CMD.exe, even if you have Windows set up to open PowerShell instead of CMD.exe. It would be great if you could fix this.

It would also be great if you could give the option to open the new Bash on Ubuntu on Windows shell that is available in Windows 10.

Uncaught Error: EPERM: operation not permitted, lstat '$ATOM_HOME/packages\atom-material-ui'

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.25.1 x64
Electron: 1.7.11
OS: Unknown Windows version
Thrown From: open-terminal-here package 2.3.1

Stack Trace

Uncaught Error: EPERM: operation not permitted, lstat 'C:\Users\hee.atom\packages\atom-material-ui'

At fs.js:961

Error: EPERM: operation not permitted, lstat 'C:\Users\hee\.atom\packages\atom-material-ui'
    at fs.lstatSync (fs.js:961:11)
    at Object.fs.lstatSync (ELECTRON_ASAR.js:244:16)
    at Object.realpathSync (fs.js:1641:21)
    at Object.fs.realpathSync (ELECTRON_ASAR.js:321:29)
    at open (/packages/open-terminal-here/index.coffee:40:24)
    at /packages/open-terminal-here/index.coffee:65:9)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.25.1/resources/app/src/command-registry.js:384:49)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.25.1/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.25.1/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.25.1/resources/app/src/window-event-handler.js:110:40)

Commands

     -9:24.6.0 core:confirm (input.hidden-input)
     -6:28.9.0 core:paste (span.syntax--text.syntax--plain.syntax--null-grammar)
  2x -5:32.4.0 core:confirm (input.hidden-input)
     -4:33.8.0 platformio-ide-terminal:new (input.hidden-input)
     -3:42.7.0 core:confirm (input.hidden-input)
     -3:31.8.0 editor:newline (input.hidden-input)
 45x -3:30.7.0 core:backspace (input.hidden-input)
     -3:21.3.0 editor:newline (input.hidden-input)
 25x -3:20.6.0 core:backspace (input.hidden-input)
     -3:07.1.0 platformio-ide-terminal:toggle (input.hidden-input)
     -3:04.0 platformio-ide-terminal:focus (input.hidden-input)
     -2:57.7.0 platformio-ide-terminal:close-all (input.hidden-input)
     -2:48.5.0 platformio-ide-terminal:new (input.hidden-input)
  5x -2:17.3.0 core:backspace (input.hidden-input)
  2x -2:15.9.0 core:confirm (input.hidden-input)
     -0:16.7.0 open-terminal-here:open (div.package-detail.panels-item)

Non-Core Packages

git-plus 7.10.2 
korean-menu 1.24.0 
monokai 0.24.0 
open-terminal-here 2.3.1 
seti-ui 1.10.0 

Package.activateConfig is deprecated.

Use a config schema instead. See the configuration section
of https://atom.io/docs/latest/hacking-atom-package-word-count and
https://atom.io/docs/api/latest/Config for more details

Package.activateConfig (C:\Users\Alex\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:265:11)
Package.activateNow (C:\Users\Alex\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:236:14)
<unknown> (C:\Users\Alex\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:772:25)
Emitter.emit (C:\Users\Alex\AppData\Local\atom\app-1.0.2\resources\app.asar\node_modules\event-kit\lib\emitter.js:82:11)
CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Alex\AppData\Local\atom\app-1.0.2\resources\app.asar\src\command-registry.js:222:20)
handleCommandEvent (C:\Users\Alex\AppData\Local\atom\app-1.0.2\resources\app.asar\src\command-registry.js:3:61)

Syntax error when using KDE Konsole

After updating my system when i use open in terminal im getting this syntax error.

bash: ml: line 1: syntax error: unexpected end of file bash: error importing function definition for ml'
bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for module' /usr/bin/sh: module: line 1: syntax error: unexpected end of file /usr/bin/sh: error importing function definition for module'
/usr/bin/sh: ml: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for ml' /usr/bin/sh: module: line 1: syntax error: unexpected end of file /usr/bin/sh: error importing function definition for module'
/usr/bin/sh: ml: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for ml' /usr/bin/sh: module: line 1: syntax error: unexpected end of file /usr/bin/sh: error importing function definition for module'
/usr/bin/sh: ml: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for ml'

Atom: 1.42.0
Konsole: 19.08.2
Fedora 31, Kernel 5.3.16

Open iterm2?

Great plugin! Is there any way to open iterm2 instead?

[Feature Request] Let user specify their own terminal

Is it possible to specify your own terminal to open? Personally, I use Git Bash for my Windows10 laptop, but with this package, I can only open windows command, not even powershell...

Meanwhile, if you can change the text in the context menu back to open terminal here instead of being specific as open cmd prompt here, it would be great. Thanks.

Could I use gnome-terminal?

Hi :
I know the command of open the gnome-terminal in linux is
"gnome-terminal --working-directory=/path/to/dir"

So I attempt to keying above command in package/open-terminal-here/setting/command.

It successfully open gnome-terminal, but directory is home, does not current directory.

Could I use gnome-terminal by it way?
Or have others way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.