Commit graph

24 commits

Author SHA1 Message Date
Matheus Fernandes
3be8ffd486 Fix: do not throw when shellArgs is not present in .hyperterm.js (#678)
See dfcb0a9629 (commitcomment-18834267)
2016-08-31 23:33:01 -03:00
Brandon Bayer
dfcb0a9629 fix: errors and crashes on Linux because shellArgs being mutated (#662)
Fixes #661
2016-08-29 19:05:00 -03:00
Efe Gürkan YALAMAN
77597da1d3 Added shellArgs to the config. (#572)
In case someone wants to use non-login shells there is a field added to
the configuration file.
If shellArgs not set default shell will be used as before.

i.e. for using interactive shell (and use .bashrc instead of
.bash_profile on linux) use shellArgs: ['-i'] and shell: '/bin/bash'
this is useful especially if you are on Linux.
2016-08-13 21:30:17 +02:00
James Hall
518b0cd9a5 Open new window offset from last focused window (Credit: albinekb) (#581)
* Open new window offset from last focused window

* Make sure a newly opened window is seen to now have focus

* Instead of setting focus time, simply emit the event first

* Add comment explaining why we emit the focus event

* Don't fire the event, as that can make it fire twice
2016-08-06 11:58:57 +01:00
Lorenzo Zottar
9d65cb74c0 File dropped into terminal window adds path to command line (#559)
* Added file-uri-to-path dependency

* Added new rpc event to send data to session

* Modified sendSessionData to use activeUid if no uid is passed to function

* "will-navigate" prevented on file drop, path added to session
2016-08-04 14:43:57 +01:00
James Hall
77a103fbf1 [WIP] Add proper window support (#547)
* Add proper window support to both the top menu, and the dock

* Sort out linting

* Only create dockMenu on Mac

* Remove label from menu as it is not needed when using role

* Fix spacing
2016-08-04 01:52:31 +01:00
James Hall
c9fe3d82db Add support for opening the terminal on the correct display (#519)
* Add support for opening the terminal on the correct display

* Fix whitespace issue

* Start from the top left again when we run out of space

* Add semicolon
2016-08-02 01:00:49 +01:00
Lorenzo Zottar
7e941b0451 Handling file opening (#329)
* Add function to escape a shell argument.

* Keep track of the last used window.

* Implement support for the open-file event.

* The shell escape regex needs parentheses to be captured.

* Removed lastWindow and added getLastFocusedWindow method to app

* Create window create new session only if no callback passed

* Added app.windowCallback to handle open-file before "ready"

* Small lint fixes

* Differeent open file handling: check if it is directory, and if the file is executale or not

* Small fixed and added some comments

* Added php-escape-shell module in place of custom escapeShellArgument()

* Fixed wrong code and added detailed comment

* Aliased php_escapeshellcmd import

* Rebased; added error handling in OpenFile

* changed string contatenation with template literal

* Pinned php-escape-shell dependency

* Typo fix

* getLastdFocusedWindow now uses Array.prototype.reduce()

* Notify users of unexisting path while open file
2016-08-01 23:52:21 +01:00
Darin Morrison
60fbc122a8 Fix #467 and #206; quit app on window close (#489) 2016-07-29 21:12:21 -07:00
Darin Morrison
d05d82cb32 Use babel for minification (#471) 2016-07-27 19:02:19 -07:00
Ayhan
72059a7d93 Fix Close process (#450)
* fix close process

* fix control

* fix lint
2016-07-26 20:11:54 -07:00
Ayhan
ce357c72be Revert "Fix close process" (#451) 2016-07-26 20:11:38 -07:00
Ayhan
ed2c810c9f fix close process (#448) 2016-07-26 20:06:43 -07:00
Mike
05eba4b521 Update shell after config change and notify the user (#405) 2016-07-26 16:37:42 -07:00
Albin Ekblom
c88c93a622 🔥 Use uuid (#393) 2016-07-25 11:01:01 -07:00
Guillermo Rauch
9a28ff302f index: prevent double sesson exit (#380) [@timneutkens] 2016-07-24 11:13:17 -07:00
Martin Ek
8c53d25b71 Add decorateEnv to the extensions API (#370)
* plugins: add decorateEnv to the extensions API

* session: replace - with _ in LANG

* plugins: refactor the at-least-one extension check
2016-07-24 11:03:24 -07:00
Guillermo Rauch
aaed99abac Reorg (#386)
* Step 1: move electorn into `app/`.

This is to comply with the suggested directory format of
`electron-builder`: https://github.com/electron-userland/electron-builder#two-packagejson-structure

* Step 2: add build directory with icon files for mac / windows

* Step 3: move all development (web) assets into main directory

* Step 4: add `build` namespace to dev `package.json`

* Step 5: move all dev dependencies into dev file and get rid of
old electron packagers in favor of `eletorn-builder`

* Step 6: target build inside `app/` as everything else is excluded at build time

* Step 7: remove old stuff!

* Step 8: update README

* turn off asar for `child_pty`
2016-07-24 10:59:21 -07:00
Guillermo Rauch
477e40e433 refactor 2016-07-13 13:45:14 -07:00
Guillermo Rauch
4d99089afb improve decoration with persistent state with react-proxy 2016-07-08 14:26:38 -07:00
Guillermo Rauch
9f635021c9 first pass at plugins system 2016-07-07 17:16:44 -07:00
Guillermo Rauch
318f684da4 add <Config> higher order component heavily inspired by @nfcampos (#59) 2016-07-07 08:15:03 -07:00
Guillermo Rauch
a10af11591 remove xterm.css (no longer used) 2016-07-04 19:07:26 -07:00
Guillermo Rauch
1a1178bd38 initial commit 2016-06-30 23:01:04 -07:00