Commit graph

493 commits

Author SHA1 Message Date
Donald Green
5d7142c2df Return of the Bell (#2938)
* 1. Restored the ability to turn the "bell" sound on and off using the "bell" config parameter.
2. Restored the ability to change the bell sound by providing a URL. These changes allow for a web url or local absolute file path to an audio file.

The goal with these changes was to fix the issue causing the bell to never sound due to a difference in the underlying terminal emulators configurations from the previous one. While in the area, also decided to make sure that the sound can be changed by supplying a web url to an audio file or an absolute path to an audio file within the local machine

* Code style changes

* Code style changes

* 1. More code style changes

* 1. Spacing changes to try and abide by the linter

* 1. Applied all suggested changes by eslint

* 1. Removed functionality to specify a remote url to set a sound file for the bell sound. The amount of effort for handling when there is no internet connection, queuing and so forth wasn't worth keeping the feature. It is likely that the url could be used to download the file in which the user would be able to specify the file path tho this download file.
2. Created a new property that gets passed down from the terms container all the way to the individual term. We want to be able to evaluate if the bellSoundURL has changed to determine if we really need to read the sound file.
3. Moved logic to read the audio file into the main process. Setup a new action in the 'actions/ui' that will update the bell sound when it is finished and ready. This should prevent blocking the terminal from loading and thus increasing loading times.

* 1. Modified the file reading method to be more generic to increase reusability.
2. Updated the "arrBuf2Base64" method to utilize the node Buffer class which helped to reduce some complexity and seems to run more efficiently.
3. Removed the CONFIG_ASYNC action and reducer in favor of reusing CONFIG_RELOAD when the process is finished reading the file for the bell sound. In order to achieve this, we had to merge the config from "config.getConfig()" method with the "bellSound" property before dispatching to "reloadConfig".

* 1. Removed reference to now removed method

* 1. Removed the arrBuf2Base64 as it seemed unnecessary now that the function would be reduced to a single line. Moved the one-liner into file.js. Removed references to arrBuf2Base64 method.
2. Refactored the logic that handles reloading the config when it has been updated to fix an issue that would set the bell sound back to the default sound when the config is saved without changing the value of "bellSoundURL". Setup now to either read file and reload the config, or reuse the "bellSound" value saved in state and reload the config. This removes an inefficiency with the reloadConfig being dispatched twice when "bellSoundURL" has changed as well.

* 1. Removed a file that contained a single function, referenced in only one place that is performing a fairly simple task.
2. Updated the "getBase64FileData" method to use "Buffer.from()" instead of "Buffer()" due to messages stating that "Buffer()" is deprecated due to security and usability issues.

* Adjustments and regression issues fixed

1. Updated the default config file to better explain the supported options for the "bell" config property.
2. Rearranged the bellSoundURL default property to make it easier to find should one decide to change the bell sound.
3. Typos fixed in comments.
4. Update fetchFileData to utilize the configData provided as function argument. There appeared to be no reason to reference different sources of config data within the same method.

* 1. Removed the "BELL_STYLE" constant since it was only being used in one place.
2. Updated comment block to accurately reflect the current logic and made the comment much more concise.
2019-10-03 02:08:40 +02:00
Brandon Lee Dring
5bc8e0b1e8 Feat/text search (#3075)
* Added persistent text box search

* Toggle search box now working

* Restyled search box

* Linter and bug squashing

* Added multi OS hotkey support

* PR changes as requested

* Added ability to use escape button to close search field

* Woops forgot key mapping on non mac platforms

* fixed bug where escape would open up search window

* Removal of unused vars that died in conflict
2019-09-23 19:37:22 +02:00
ivanwonder
67a1fc4dbb support config 'useConpty' 2019-09-23 19:32:12 +02:00
ivanwonder
b890cc23d1 fix: can not open hyper by the cli;
window freezes when I try to close it
2019-09-23 19:32:12 +02:00
Rongjian Zhang
c0571348f8 Add examples of Cygwin and Git Bash 2019-09-23 19:25:43 +02:00
dependabot[bot]
1952e046bb Bump debug from 2.6.8 to 2.6.9 in /app
Bumps [debug](https://github.com/visionmedia/debug) from 2.6.8 to 2.6.9.
- [Release notes](https://github.com/visionmedia/debug/releases)
- [Changelog](https://github.com/visionmedia/debug/blob/2.6.9/CHANGELOG.md)
- [Commits](https://github.com/visionmedia/debug/compare/2.6.8...2.6.9)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-11 04:25:22 +02:00
Zachary Riedlshah
970a98f60b fix: prettier fullscreen for macOS
fixes #5
2019-09-11 04:20:06 +02:00
J. Cameron McDonald
04a5e75c15 Split Vertically -> Split Right, Split Horizontally -> Split Down (#3559) 2019-07-31 00:03:33 +02:00
dependabot[bot]
a4e32b7ddf Bump lodash from 4.17.5 to 4.17.13 in /app (#3772)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.5 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.5...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-30 18:29:39 +02:00
Piolin Victor
8845d0261b Fix drag and drop directories onto command line (#3690)
Fixes #3582
2019-07-30 16:02:14 +02:00
Eric Taylor
d885acb064 fix: load scoped plugins (#3672)
fixes #3288
2019-07-30 15:53:55 +02:00
Guido
d946b688d9 Add Git-bash setting example to config (#3700) 2019-06-14 01:23:17 +02:00
Michael James
68639b6fd4 Updated Bash on Windows to use wsl.exe as bash.exe is deprecated and updated the branding name (#3711) 2019-06-14 01:22:51 +02:00
Juan Campa
ef14af49eb 3.0.1-canary.4 2019-05-09 15:12:10 -04:00
Juan Campa
6a05b7307c
Ignore line endings when comparing config file against default (#3645) 2019-05-09 18:31:11 +00:00
Juan Campa
efeedd0a9d 3.0.1-canary.3 2019-05-09 13:33:12 -04:00
Juan Campa
377353e76f
Simplify migration to avoid handling complicated edge cases (#3643) 2019-05-09 17:32:32 +00:00
Juan Campa
f73a23055b 3.0.1-canary.2 2019-05-08 17:23:49 -04:00
Juan Campa
1c87f255b3 3.0.1-canary.1 2019-05-08 15:13:38 -04:00
Juan Campa
a5f86d55c6
Add migration path from Hyper2 config location to Hyper3 (#3610)
* Add migration path from Hyper2 config location to Hyper3

* Use fs-extra, not fs-extra-p

* Better approach that also handles plugin migration

* Remove plugins migrationn

* Migrate local plugins

* Empty to force CI
2019-05-08 14:56:45 -04:00
Juan Campa
34fb41c23b 3.0.0-canary.10 2019-05-06 00:01:42 -04:00
Juan Campa
22b5bbb488
Use sane location for config (#3584) 2019-05-06 00:00:50 -04:00
Juan Campa
7d67b76715 3.0.0-canary.9 2019-05-05 17:51:47 -04:00
Jaimin Pandya
a7c9555c3e Update copyright year in Help->About Hyper (#3415)
* Update copyright year

I don't know if this is necessary or not as it's not for the license(from https://github.com/zeit/hyper/pull/2566).
Still mentioning it since I noticed it.

* Remove a typo
2019-04-16 21:47:59 +02:00
doniyor2109
81ff38c8d9 Add shortcut for opening hamburger menu (Windows) (#3444)
* Add shortcut for opening hamburger menu (Windows)

* Open hamburger menu if showHamburgerMenu config is truthy
2019-03-31 04:39:43 +02:00
Daniel Vos
4350ecd73a fix home & end keymaps (#3517) 2019-03-31 04:39:01 +02:00
Philippe Potvin
9581f5d5ee
Keep homedir as session startup endpoint (#3506) 2019-03-02 17:58:19 -05:00
Philippe Potvin
2d399baa87
Add Window class and options plugin decoration (#3485)
* Add Window class and optios plugin decoration

* Propatation to BrowserWindow
2019-03-02 17:09:15 -05:00
Philippe Potvin
1747c57bc3 Expose active window positon on move to reducer (#3470) 2019-02-27 00:22:52 +01:00
Benjamin Staneck
80bb82122a Use electron's getPath() API to get the user's app data directory (#2948)
Docs: https://github.com/electron/electron/blob/master/docs/api/app.md#appgetpathname
Closes: https://github.com/zeit/hyper/pull/1960
Fixes: https://github.com/zeit/hyper/issues/1944
2019-02-25 11:42:09 -05:00
Juan Campa
fadc2f058e 3.0.0-canary.8 2019-02-13 12:31:23 -05:00
CHaBou
663b16bc12 Add Session class and Session options decoration by plugins (#3464)
* Add Session class and options plugin decoration

* add init() method

* Add warning for non-overrided session methods
2019-02-10 16:31:52 -05:00
Evil Rabbit
ec1ee99715 Improve Hyper 3 Canary and Stable icons (#3466) 2019-02-09 14:40:39 +01:00
Juan Campa
3001518355 3.0.0-canary.7 2019-02-04 22:11:25 -05:00
Juan Campa
761d6445ec
Hyper v3 icons (#3451)
* Hyper v3 icons

* Updating app icons
2019-02-04 22:08:35 -05:00
Juan Campa
bb1f94e8b8
Bumping electron to 3.1.3 (#3458) 2019-02-04 21:28:20 -05:00
Juan Campa
4dd6177952 3.0.0-canary.6 2019-01-25 11:56:57 -05:00
onecamp
8733ecc84a
Display the renderer type in the About dialog (#3441)
* Now displaying the renderer type in the About dialog

* Show the number of renderers per type in the About dialog

* Use values instead of entries (key is unused)

Co-Authored-By: onecamp <juancampa@gmail.com>
2019-01-24 18:46:39 -05:00
Juan Campa
2828273424 3.0.0-canary.5 2019-01-22 11:47:12 -05:00
onecamp
519ca3e651
Fix webgl config (#3407)
* Fix location of webGLRenderer flag in default-config.js

* Fix incorrect check of webGLRenderer flag

* Explain that disabling WebGL enables transparent backgrounds

Co-Authored-By: juancampa <juancampa@gmail.com>

* Only use WebGL if background is opaque

The hardcoding to white was also removed in favor of a temporary hack in
xterm.js that uses either white-over-black or black-overwhite to
maximize contrast with the background color
2019-01-21 19:09:18 -05:00
Juan Campa
ee8e95b8f1 Downgrade electron to v3 (#3420)
* Reverting back to electron v3

Electron v4 has a big performance issue with 2d canvases Tracked here:

 https://github.com/electron/electron/issues/16439
2019-01-18 19:03:09 +01:00
CHaBou
b709a3a971
Add macOptionSelectionMode option (#3406)
Two possible value: 
* `'vertical'` (Default): enable column selection when Option key is hold
* `'force'`: force selection regardless of whether the terminal is in mouse events mode
2019-01-11 14:31:11 +01:00
Juan Campa
3136c64f4a Zoom with both cmd+= and cmd+plus (#3401) 2019-01-09 12:28:31 +01:00
Juan Campa
7a5c204395 3.0.0-canary.4 2019-01-08 12:16:19 -05:00
Juan Campa
62bb05c02f 3.0.0-canary.3 2019-01-06 18:27:08 -05:00
Juan Campa
2d618a10bd 3.0.0-canary.2 2019-01-06 16:10:37 -05:00
Juan Campa
bc2d32ba1d Emoji Fix (#3388)
* Upgrading xterm.js with emoji support

* Removing emoji shortcut

My understanding is that this was needed at some point because we
weren't typing into a textarea. No that we're typing into a textarea the
browser (i.e. Chromium) handles this for us
2019-01-04 17:35:17 -08:00
CHaBou
fbc11a03dd Update reat-dom to v16.2.1 in app (#3387)
* Update reat-dom to v16.2.1

* Update reat-dom to v16.2.1 in app
2019-01-04 13:17:36 -08:00
Pooya Parsa
b077005a30 fix(app): update os-locale to 3.1.0 (#3369)
fixes #3091

sindresorhus/os-locale#33
2019-01-04 00:33:52 +01:00
Leo Lamprecht
c3a13a7cd3 3.0.0-canary.1 2018-12-31 20:29:21 +00:00