Commit graph

331 commits

Author SHA1 Message Date
Philippe Potvin
eb85e14cbc fix (#2057) 2017-08-08 15:51:26 -04:00
Philippe Potvin
c01b4112ea fix devtools (#2048)
* fix devtools

* simp
2017-08-07 21:17:09 -04:00
Leo Lamprecht
866b5b82ce New URL for update server (#2047) 2017-08-04 23:52:38 +02:00
Philippe Potvin
4fd115bf27 Update window creation (#2028)
* add ui/window

* move window and optimize code

* cleanup
2017-08-02 15:20:03 -04:00
CHaBou
db35faa431 Show plugin (name and version) loaded (#1826)
* Print plugin name and version in devtools
* Add plugins informations in About dialog
2017-06-19 23:02:53 +02:00
Philippe Potvin
ab703b5bf2 Add docs for keys modification (#1937)
* Add keymaps docs to website

* de-beautify
2017-06-14 21:03:41 -04:00
Albin Ekblom
0bf10f3768 Escape parentheses for dropped files/folders (#1935)
* Escape parentheses for dropped files/folders

Fixes #1933

* Cleanup regex

* Wrap dropped path in single-quote

* Escape single quote inside single quote

* Handle escaping with current shell

* Cleanup escape
2017-06-14 09:12:03 -07:00
nitsakh
7b403380b0 Addressing issue #1862 by filtering out Boolean values from the plugins list (#1927)
* Addressing issue #1862 by filtering out Boolean values from the plugins list in the config.

* Updating the PR based on review comments.
2017-06-13 03:48:56 +02:00
Albin Ekblom
056c88f741 Check default app (#1918)
* Check .js default app

* Cleanup fallback check

* Check all keys

* Check for empty strings
2017-06-09 20:29:15 +02:00
Philippe Potvin
ca849425ac Conditional menu build fix for window (#1903)
* use speard for menu building
2017-06-03 22:12:14 +02:00
Philippe Potvin
93b2229ff5 Implements Commands Key mapping (#1876)
Keymaps part 2
2017-06-02 20:03:47 -04:00
Thomas Schoffelen
709fc03933 Fixed a bug with installing plugins (#1896)
Where NPM@5 whould rely on package-lock.json and not actually install new entries in package.json.
2017-06-02 15:52:38 +02:00
Albin Ekblom
07ef0079fa 🎉 Check for WScript.exe (#1872)
* 🎉 Check for WScript.exe

* 🔥 Move openConfig

* 🔥 Make openNotepad mimic openItem

* 🌹 Add comments

* 🔥 Cleanup windows workaround

* 🔥 Cleanup

* 🎉 Use openConfig on darwin too
2017-05-26 12:23:25 -04:00
Benjamin Staneck
8f02bc7014 Fix icon path in about window (#1874) 2017-05-26 10:09:39 -04:00
Philippe Potvin
3c1f359198 Refactor menu internals (#1867)
* Keymaps part@1 move menus
* Gather all paths in a module
2017-05-26 08:59:02 +02:00
Benjamin Staneck
871fca5988 Update node-pty to 0.6.6 (#1856)
Comes with winpty 0.4.3 (https://github.com/rprichard/winpty/releases/tag/0.4.3)
2017-05-21 21:43:09 -07:00
Albin Ekblom
e09a7f717d Upgrade electron to 1.6.8 (#1848)
* Upgrade deps

* Remove --harmony flag

* Add --harmony-async-await flag

* Pin deps

* Use cheap-module-source-map for dev

See https://github.com/webpack/webpack/issues/2145#issuecomment-294361203

* Update yarn.lock
2017-05-20 14:35:11 -07:00
Liudas Dzisevicius
55345ebe25 Fix Windows context menu (#1831)
System context menu refactoring.
Fix problems when update/uninstall Hyper.
2017-05-20 19:46:33 +02:00
Benjamin Staneck
a2fb0eed34 Update node-pty to 0.6.4 (#1832)
Fixes https://github.com/Tyriar/node-pty/issues/67 and enables https://github.com/henrikdahl/hyper-statusline/issues/38
2017-05-16 12:20:50 -07:00
Jing Dong
8ef134d8d5 Add documentation for Windows shells in config file (#1605)
* Add documentation for Windows in config file
Give real example for bash and PowerShell setup
2017-05-14 12:33:21 +02:00
Guillermo Rauch
0080f1da81 bump version 2017-05-12 14:50:04 -07:00
Guillermo Rauch
79e12de2ff only use a 2000 interval for non-push watch file approaches (e.g.: windows)
LGTY @paulbouwer @shama??
2017-05-09 14:12:41 -07:00
Guillermo Rauch
0bf5fade30 Release 1.3.2 2017-05-09 12:20:23 -07:00
CHaBou
00693de12e Open Hyper config in the native desktop's default manner (#1784) 2017-05-08 20:00:58 -07:00
Max Shepard
fc51f97283 Round up float values for hamburger menu positioning. Fixes #1462 (#1753) 2017-05-04 00:30:00 +02:00
Paul Bouwer
ae70eb1e17 Modify config watch interval to 2s (#1699) (#1772) 2017-04-30 15:50:46 -04:00
Albin Ekblom
aa7e79a039 🐛 Handle electron default env (#1764) 2017-04-28 13:57:17 -07:00
Regin Larsen
ec18537d96 Simplify and correct newlines replacement logic on Windows (#1713) 2017-04-05 14:37:04 +02:00
Matheus Fernandes
a4618a55af
1.3.1 2017-03-10 14:31:53 -03:00
CHaBou
3fb2e04eae Fix decorators check and documentation (#1601) 2017-03-05 18:19:28 -05:00
CHaBou
1f3ea081e8 Fix flicks after a full reload or when close tab button (dis)appear. (Fix #1490, #1575, #1579) (#1602)
* Fix term text flick when mouse is hovering tab

* Fix flick issue after a full reload
2017-03-05 13:34:03 -03:00
OJ Kwon
3df8274bf0 Falls back to default shell to install plugin on win32 (#1565)
- related to #1480
2017-02-27 15:09:22 -08:00
Matheus Fernandes
7aa8188ddd
1.3.0 2017-02-23 08:10:59 -03:00
Henrik
1cd2620da0 lowercase readme.md (#1577)
Lowercasing `README.md` to match commit changing the readme and license files to lowercase 3fbf1b0dca
2017-02-23 11:02:36 +01:00
Matthias Winkelmann
fc829d23e8 Add note about future config options to default configuration (#1562)
* add note about future config options to default configuration (fixes #1531)

* Remove unnecessary slash
2017-02-20 15:53:45 -03:00
Guillermo Rauch
9f9da68408 use string based RPC for data events for better perf 2017-02-18 00:55:48 -03:00
Henrik
0ee48c9841 add hterm cursor blink support (#1547)
* add hterm cursor blink support

* update website with cursorblink doc
2017-02-17 21:11:23 -03:00
Martin van Driel
7ae7a523d1 Fix typo in default config (#1530) 2017-02-16 16:56:33 -03:00
Henrik
63ab33daa9 fix undefined fish shell match (#1516)
* fix undefined fish shell match

* check for string
2017-02-16 14:23:57 -03:00
Guillermo Rauch
bdafe49c9f Release 1.2.1 2017-02-15 23:09:55 -03:00
Matheus Fernandes
6842e8500a
Make quickEdit true by default on Windows 2017-02-15 18:51:13 -03:00
Matheus Fernandes
d44deb32c8
Fix wrong comparison 2017-02-15 18:03:39 -03:00
Liudas Dzisevicius
270fe5bef9 [Windows] Add right click copy/paste (#1247)
* Add right click copy/paste

* Add quick edit config option
2017-02-15 17:22:09 -03:00
Matheus Fernandes
ef984a488d
Remove node-pty from the development package.json
Thanks @Tyriar – closes #1468
2017-01-31 18:01:42 -02:00
Matheus Fernandes
28e7e8e75c
Add info about the rebuild-node-pty script 2017-01-31 10:37:39 -02:00
Graham Kennery
df0a3c60ed Added http and https handler for will-navigate event (#1451)
Prevented navigation when a user drops content from a browser into a terminal. Instead, enter in the URL of the content the user dropped.
2017-01-25 23:24:01 -02:00
Matheus Fernandes
e34dab54a8
1.2.0 2017-01-21 21:52:14 -02:00
Josh Adams
993b8f6833 Add support for the fish shell (#1181)
* Add support for the fish shell

Fixes #1142

The fish shell is not POSIX-compliant.  As a result, the installation
command's use of `&&` caused `updatePlugins` to fail, erroneously
claiming there would be details in `~/.hyper_plugins/npm-debug.log`.

They of course weren't there because the command it tried to run was an
invalid command.  I've added an object to choose the install command to
run based on the shell you're in, and a very basic test to determine if
we're in fish.  Most shells should be able to be handled by the
'default' key, so for now it just checks to see if it's fish by doing a
regex on the configured `shell` option.

* Rename default -> posix
2017-01-21 17:03:58 -02:00
Sam Marder
edff890f5f Add --help and --version command line arguments (#1278)
* Added --help command line argument.

Also looks for -v and --version.

* Fixing linting issues.

* Deleted incorrect comment that used to make sense.

* Cleaner arguments checking.

* Used newer JS syntax.
2017-01-21 16:54:32 -02:00
Matheus Fernandes
a0a8484158
Always open the DevTools in the detached mode – closes 1173 2017-01-21 16:42:33 -02:00
Matheus Fernandes
bbd14bca09
Bump node-pty to 0.6.0 – Closes #1186 #1127 2017-01-21 16:07:08 -02:00
Paul Betts
2670b17872 On Win32, write out default .hyper.js as CRLF so Notepad doesn't have a fit (#1383)
* On Win32, write out default .hyper.js as CRLF so Notepad doesn't have a fit

* Fix hwhoops

* Add explanatory comment
2017-01-19 12:11:35 -02:00
Matheus Fernandes
d54fa3889b
Add notes about full paths for the shell config and about PowerShell
Closes #1020
2017-01-15 21:06:22 -02:00
Matheus Fernandes
3cb09e0480
pty.js => node-pty 2017-01-15 13:22:39 -02:00
Guillermo Rauch
fcd56b596a let's try again 2017-01-12 12:47:04 -08:00
Paul Betts
0ff1cb9584 Windows titlebar improvements (#1307)
* Make double-clicking on the titlebar work

* We don't actually need this

* Draw a Restore icon when the window is Maximized

* Update React State when BrowserWindow changes behind our back

* Cleanup

* Don't show the border if the window is maximized

* Fight with the linter
2017-01-10 21:45:49 -08:00
Albin Ekblom
fc685c7d02 Make default config clearer (#1379) 2017-01-10 12:53:32 -08:00
Nathan White
470d02dbfd Nw/pty fixes (#1353)
* changed pty package and update references

* fixed linting issues

* added npm clean script
2017-01-09 18:37:46 -08:00
Guillermo Rauch
bcd5b75795 Release 1.1.0 2017-01-09 14:35:54 -08:00
Guillermo Rauch
12ae25a60b 20% faster bootup time (#1350)
* bump webpack, babel and include babili

* fix for babili

* add heuristics for faster v8 parsing

* lint fixes

* fix windows build. infinitely grateful to @stefanivic for helping us test windows
2017-01-09 13:32:15 -08:00
chabou
0c71863560 Use local config file in dev. Fix #903 (#904)
* Use local config file in dev

* Fix typo

* Reuse path variable to compose localPath

* Fix lint errors
2017-01-04 20:05:19 -05:00
aoki
5773a83dc3 Bump win.show() back (#1316)
Bump `win.show()` back
2016-12-29 15:52:37 -05:00
Derek Kniffin
f2ffafbd10 Fix a bug related to the alpha hex calculation (#1048) 2016-12-21 21:31:30 -05:00
Philippe Potvin
ef5caeeb09 Reset bgColor (#1262)
* Reset bgColor

* remove unused

* add precisions comments
2016-12-19 08:17:26 -08:00
Mahmoud Al-Qudsi
5d1533c31d Using Consolas as the default font on Windows (#1196)
Consolas is the default fixed-width font on Windows Vista+ for
the Windows platform.
2016-12-17 14:34:07 -08:00
Guillermo Rauch
17df56d397 bump version + trigger build 2016-12-15 12:40:30 -08:00
Leo Lamprecht
23bff8b4b9
Hyper isn't just on macOS 2016-12-13 08:06:56 +01:00
Matheus Fernandes
2b3c49b1ec
Update hyper-news notification fetching 2016-12-12 13:04:32 -02:00
Brian Reber
7df5cbac08 Specify cols key when spawning pty shell (#1075)
The column size param in pty.js is named ‘cols’, but the shorthand
notation treats it as ‘columns’, causing the column count to not be
correct.
2016-12-07 12:28:41 -02:00
Brian Reber
e345ba4f60 Use homedir() from os package instead of env vars 2016-12-03 22:03:10 +01:00
Matheus Fernandes
6508d05e5f
Fix a regression introduced by #1058
Such regression broke the character composition/paste on macOS
2016-12-02 11:22:25 -02:00
Matheus Fernandes
be286c0d5a Fix keyboard shortcuts on Linux and Windows (#1058)
* `command` => `mod`

* `Option` => `Alt`

* Allow hterm to consume a keyboard event only if it's not a Hyper accelerator

* Remove `console.log`s

* Say no to bikeshedding

* We already clear the selection on `onKeyDown`

* Add comments

* Remove meaningless comment

* Add fullscreen shortcut for Windows and Linux

* Use the accelerators defined in `accelerators.js` for the app menu
2016-11-30 15:19:45 -05:00
Matheus Fernandes
833383a1cc
v1.0.0 2016-11-22 12:23:17 -02:00
Liudas Dzisevicius
0c30fc0bcf Add shell menu feature (#1017)
* Add shell menu feature

* Rename and remove cofig option
2016-11-22 10:06:03 -02:00
Dylan Frankland
a5b457ed13 Update old electron target engine for dependencies (#970)
This fixes dependencies of Hyper that build based on the engine being
used (`nodegit` for example).
2016-11-19 14:38:27 -02:00
Matheus Fernandes
b97b2dde7c
Bummp uuid to match the root package.json 2016-11-19 10:56:10 -02:00
Zach Buttram
fb2f1d8e1e Start the shell with the correct cwd on Windows (#1016)
* fixes zeit/hyper#1011

* more succinct fix for zeit/hyper#1011
2016-11-18 18:27:38 -02:00
Matheus Fernandes
27a20e0cfc Add support for composed chars and fix issues with "foreign" keyboard layouts (#1006)
* ime

* Fix code style

* Add visual feedback for composition events

* Temporarily disable `hterm`'s `onKeyDown` hacks

* Replicate the focus/blur state of our caret on the `hterm` caret

* Fix: focus our caret when there's a tab change

* `caret_` => `hyperCaret`

* Reorg: move the caret hacks to the `hterm.js` extensions

* Remove `console.log`

* Remove the `Dead key` hack and reenable keyboard commands

* Add a (temporary?) fix to re-enable text selection

* Check for a selection `onMouseUp` instead `onFocus`

* Fix wrong buggy hterm's cursor styling on term focus/blur

* Fix the cursor style after the bell rings – closes #674

* Enable `acceptFirstMouse` to focus the correct term – closes #861

* Fix code style

* Fix: clear the `hyper-caret` when a char is inserted via the IME dialog

* Remove useless function

* Add coments regarding text selection

* Fix code style
2016-11-16 10:44:04 -08:00
Matheus Fernandes
9c90e19760 Add Windows support and first-class Linux support (#946)
* `child_pty` => `pty.js`

* Create a frameless window on Windows and Linux

* Add a brand new UI for Linux and Windows 💅

* [Windows] Fix plugin installation

* [Windows] Fix the `build` script

* [Windows] Add a bigger `icon.ico`

* [Mac] Add `WebKitAppRegion: drag` when running on macOS

* Fix code style 🤔

* Add `appveyor.yml`

* Fix code style (again)

* [Windows] Fix AppVeyor's `install` script

* [Windows] Try a new AppVeyor config

* [Windows] Set the binary path so Spectron can run the tests

* [Windows] Try to build on x64

* Try again to build on x64

* Try one more time 😩

* Throw an error to indicate that `pty.js` was built incorrectly

* [Win/Linux] Add `display: hidden` to <Tabs /> if tabs.length === 1

* [Win/Linux] Reorganize SVGs – via @CodeTheory

* [Win/Linux] Fix the hamburger menu height

* Make the SVGs look better with `shape-rendering: crispEdges;`

* [Win/Linux] Add config options for the window controls and the 🍔 menu

* Add `electron-squirrel-startup` dependency

* [Win] Handle Squirrel commands

* [Win/Linux] Fix default color for the 🍔 and window controls – via @CodeTheory

* [Win/Linux] Add some padding - via @CodeTheory

* [Win/Linux] Add hover states – via @CodeTheory

* [Win] Fix empty window/tab titles

* [Win] Fix opening Preferences (#978)

* [Win] Fix opening Preferences

* Update ui.js

* Update ui.js

* Enhance messages and default editor

* [Win] Add dependency instructions to the README.md [skip ci]

* Fix code style

* [Win/Linux] Check the number of open windows before quitting the app
2016-11-11 15:18:04 -02:00
Vladimir Starkov
41d54d58de add onRendererWindow, because it actually available. check ./lib/utils/plugins.js:193 (#924) 2016-10-29 13:15:46 +02:00
Vladimir Starkov
7d05d0f148 increase timeout for update checks (#928)
* increase timeout for update checks

It seems like, there are lots of them and GitHub is not happy.
So increasing timeout 6x should fix that. In the end there is no need
to check updates every 5 minutes.

Fix #880

* restore check updates on start
2016-10-29 13:14:39 +02:00
Mike Engel
8cc47a498c Make the close menu items less ambiguous
@Tyriar brought up a good point in #123 that the close menu items can be
ambiguous and misleading. This clarifies them so you know exactly what
you're closing.

Fixes #123.
2016-10-25 22:34:28 -04:00
Vladimir Starkov
698cdb0e31 log plugins' errors in Electron console (#923)
Default `err.message` notification is not helpful,
because it lacks stack and context.

it doesnt hurt for end users to add `console.error(err)`,
because they arent gonna see it. Though, as far as `console.error`
is being logged in Electron console, developers will get
enough information to identify problems with plugin they are developing.
2016-10-23 09:42:58 -02:00
Andrea Parodi
97432df7a4 Improve tabs title (#892)
* Set tab title when asked by the contained shell process via ANSI code

* Commented out process polling code

* Removed unused module and constant

* Remove getTitle method

* Removed props binding

* Removed polling clearTimeout

* Removed session focus & blur

* Remove listening for session `title` event

* Removed SESSION_SET_PROCESS_TITLE action

* Removed remainig blur
2016-10-22 13:05:32 -07:00
Vladimir Starkov
3f772311db increase notification timeout up to 30m (#913)
fetchNotifications error can happen in two cases:
* https://hyper-news.now.sh is down
* you are offline

In both cases it doesn't hurt to wait half an hour.

PS. right now it hurts, when you are offline and developing
anything for Hyper, `console.error` logs the same error
every 10s and ruins your investigation.
2016-10-22 12:16:05 -07:00
Guillermo Rauch
a8b17e6322 0.8.3 2016-10-17 17:37:13 -07:00
Guillermo Rauch
91d3b9afbf 0.9.0 2016-10-17 17:23:20 -07:00
Guillermo Rauch
2ebb2369d1 Revert "Quick full screen (#803)"
This reverts commit 64e87d0d27.
2016-10-17 17:16:39 -07:00
Kyle Robinson Young
235b289bee Ignore file watch errors. Fixes GH-225 (#893) 2016-10-17 16:58:43 -07:00
Leo Lamprecht
83b47a553d
Make description match the repo's 2016-10-17 10:29:49 +02:00
Leo Lamprecht
a639965669
Remove duplicates from package files 2016-10-17 10:29:12 +02:00
Marshall Bowers
64e87d0d27 Quick full screen (#803)
* Add pseudo quick full screen

* Record window size before entering full screen

* Restore window size when leaving full screen

* Toggle menu items for quick full screen

* Remove redundant filters

* Add accelerators for Linux

* Only save window state when not full screen
2016-10-16 00:20:10 -05:00
Guillermo Rauch
d6009888a3 0.8.2 2016-10-15 17:47:28 -05:00
Guillermo Rauch
396a938ffc package: bump gaze to hopefully resolve uncaughts 2016-10-15 16:46:43 -05:00
Martin Ek
7a08b1dc3e Fix xo 0.17 errors and use root xo config for app (#859)
* Use parent xo config in app/

* lint: Fix xo 0.17 errors

* app: add missing semver dependency
2016-10-12 20:35:44 -05:00
chabou
ec9787fda4 Change default cursor opacity. Fix #869 (#870) 2016-10-12 19:42:28 -05:00
Hrvoje Šimić
7e71bf356b fix various typos and grammar errors in comments (#834) 2016-10-10 12:26:47 +02:00
Martin Ek
fe91b4c76e Refactor plugin retrieval (#695)
* plugins: refactor props decorators

* plugins: add missing plugin functions to notifier

* plugins: refactor reducer decorators

* bug: make sure reduceTermGroups are added from plugins
2016-10-08 14:38:47 -07:00
Daniel Bayerlein
aa285a8bc6 Cleanup (rename HyperTerm to Hyper) (#812)
* Rename container

* Rename hyper container itself

* Add HYPER_DEBUG for debug

* Rename HyperTerm to Hyper

* Rename HyperTerm connector and extension

* Add HyperTerm state and dispatch for backwards compatibility
2016-10-08 09:26:07 -07:00
Martin Ek
2ffc1aee3d Move notification fetching to the main process (#804)
* Move notification fetching to the main process

* Add npm run app
2016-10-07 20:28:40 -07:00