Commit graph

103 commits

Author SHA1 Message Date
Labhansh Agrawal
32eeb6d0cf fix ssh url handling 2023-05-06 11:34:01 +05:30
Labhansh Agrawal
6bdb6fe195 remove mkdirp 2023-02-14 06:55:14 -08:00
Labhansh Agrawal
2981853e88 Migrate custom v3 config to local plugins if needed 2023-01-06 22:03:27 -08:00
Labhansh Agrawal
062ef6b397 Don't overwrite user config if parse fails 2022-12-31 11:44:48 +05:30
Labhansh Agrawal
3143f7b963 Update config schema 2022-12-31 11:40:46 +05:30
Labhansh Agrawal
bafa44845a Migrate config to json 2022-12-25 23:52:48 -08:00
Labhansh Agrawal
de9dd1433a basic changes 2022-12-25 23:52:48 -08:00
Labhansh Agrawal
f79006bae1 Add preserveCWD option 2022-01-08 18:11:57 +05:30
Labhansh Agrawal
87f231d582 add screenReaderMode option 2021-12-26 22:58:53 +05:30
Labhansh Agrawal
923518b72f Use WebGL Renderer by default
also set disableLigatures same as default config
2021-11-28 22:07:30 +05:30
Labhansh Agrawal
c6dfab9e67 Fix type errors due to unknow type in try catch 2021-08-30 19:16:39 +05:30
letsandeepio
61204f8d5c
Add disableAutoUpdates config option (#5805)
Co-authored-by: Labhansh Agrawal <labhansh.agrawal@gmail.com>
2021-08-02 14:35:47 +05:30
Labhansh Agrawal
eb2517d300 Import native-reg directly 2021-05-07 22:23:32 +05:30
Bet4
5224bc5c41 Fix logic in saveAsBackup 2021-05-06 18:32:37 +05:30
Labhansh Agrawal
e266dd00f2 Fix @typescript-eslint/no-unsafe-return errors 2021-04-07 21:50:32 +05:30
Labhansh Agrawal
c347ce8483 Fix @typescript-eslint/no-unsafe-call errors 2021-04-07 21:50:32 +05:30
Labhansh Agrawal
9b0a57db13 Fix @typescript-eslint/restrict-plus-operands errors 2021-04-07 21:50:32 +05:30
Labhansh Agrawal
b9a52b06c7 Fix @typescript-eslint/unbound-method errors 2021-04-07 21:50:32 +05:30
Labhansh Agrawal
ae70054e59 Fix @typescript-eslint/no-unnecessary-type-assertion errors 2021-04-07 21:50:32 +05:30
Labhansh Agrawal
8e58fd9235 remove outdated git bash example from config 2021-02-25 15:40:34 +01:00
Labhansh Agrawal
0863a46889 refactor config/open 2021-01-11 12:08:02 +01:00
Labhansh Agrawal
7ae9a328a3 move native-reg loading to utils 2021-01-11 12:08:02 +01:00
Tom Panning
a8803eca6d Show notfications after app is ready 2020-11-09 02:29:00 +01:00
Labhansh Agrawal
6eae01c7ae add default values to cfg.get call 2020-07-19 00:07:50 +02:00
Benjamin Staneck
5692d32f2a
Update eslint and a few ZEIT references to Vercel 2020-07-13 15:05:34 +02:00
Labhansh Agrawal
8bf1874706 disable webgl in default config 2020-06-26 23:28:54 +02:00
Labhansh Agrawal
8df05bba2c disable ligatures in default config 2020-06-26 22:57:37 +02:00
Labhansh Agrawal
a1b92dea3f fix breaking change in shell.openItem
https://github.com/electron/electron/pull/20682
2020-05-29 10:58:17 +02:00
Vassiliy Shvetsov
ffd4eb46e3 add web-link activation modifier 2020-05-25 13:11:17 +02:00
Labhansh Agrawal
6debd1e7f2 add config types 2020-04-27 22:53:49 +02:00
Labhansh Agrawal
41b1ac1852 fix prettier errors 2020-03-25 17:12:51 +01:00
Labhansh Agrawal
a6ba442c1d replace winreg with native-reg 2020-03-07 16:42:47 +01:00
Labhansh Agrawal
039b90aa65 Remove unnecessary eslint-disable directives 2020-03-03 00:24:12 +01:00
Labhansh Agrawal
c04b51874c port config/, ui/ & commands.js in app/ to ts 2019-12-25 03:44:42 +01:00
Labhansh Agrawal
58804a2d5b port es5 code to es6 2019-11-29 22:09:10 +01:00
Raz Friman
6039acd7a9 Update Electron to v6 (#3785)
* 3.0.0

* 3.0.2

* Save

* Save

* Upgrade yarn lock packages

* update node-gyp and node-pty

* update travis and appveyor to node 12

* appveyor is outdated as always

* update travis to xenial

* update node-pty@0.9.0-beta26

* update yarn.lock

* update electron to 6.0.8

* move node-pty to the correct package.json

* Fix linting failure

* Update yarn lockfile to try to fix appveyor build

* Remove unnecessary changes from package.json

* Try to fix appveyor by using a newer image

* Fix linting after my last change

* update electron to 6.0.9

* install windows-build-tools on appveyor

* fix syntax

* switch back to 2017 image

* remove old resolutions field

* revert accidental version change

* update electron to 6.0.11 and electron-rebuild to 1.8.6

* downgrade yarn to 1.18

until this issue is resolved https://github.com/yarnpkg/yarn/issues/7584

* update node-gyp to 6.0.0 and generate a fresh yarn lockfile

* update react and a few other dependencies

* fix lint

* this should actually be electron-builder, I think!

* update a few dependencies

* change to electron-store

electron-config was renamed to electron-store a while ago

* update xterm to v4.1.0 and ora to 4.0.2

* move pify to app/package.json

* TODO: Revert maybe. Throw a fit on every change to maybe fix the resizing issues

* a

* fix react ref problem

* fix split view focus problem

* remove the unnecessary fit

* remove the init col and row

* fix the problem that cannot show about hyper

* update electron to 6.0.12

* fix lint

* add more todos for componentWillReceiveProps deprecation

* update babel and plugins


Co-authored-by: Juan Campa <juancampa@gmail.com>
Co-authored-by: Benjamin Staneck <staneck@gmail.com>
Co-authored-by: ivan <ivanwonder@outlook.com>
2019-10-10 21:20:26 +02:00
Gaby
ab0c8fe13f Add support for font ligatures via xterm-addon-ligatures - Clos… (#3853)
* Add support for font ligatures via xterm-addon-ligatures

* Add disableLigatures config option, defaults to false

* Fix lint issue
2019-10-09 22:23:55 +02:00
Kaushik
19644f3fa2 Adding logic to support working directory config (#3769)
* #3000: Adding logic to support working directory config

* #3000: Removing unused import

* #3000: Removing extra space
2019-10-04 22:27:58 +02:00
Labhansh Agrawal
b52d8152bf Upgrade eslint to v6 and add TypeScript linting (#3843)
* Upgrade eslint to v6 and add TypeScript linting

* Fix pr checks


Co-authored-by: Benjamin Staneck <Stanzilla@users.noreply.github.com>
2019-10-03 02:56:50 +02:00
Joseph Amis
25fc964ae8 added extra colors to color palette (#3842) 2019-10-03 02:54:29 +02:00
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
Rongjian Zhang
c0571348f8 Add examples of Cygwin and Git Bash 2019-09-23 19:25:43 +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
6a05b7307c
Ignore line endings when comparing config file against default (#3645) 2019-05-09 18:31:11 +00:00
Juan Campa
377353e76f
Simplify migration to avoid handling complicated edge cases (#3643) 2019-05-09 17:32:32 +00: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
22b5bbb488
Use sane location for config (#3584) 2019-05-06 00:00:50 -04:00
Philippe Potvin
9581f5d5ee
Keep homedir as session startup endpoint (#3506) 2019-03-02 17:58:19 -05: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