Commit graph

89 commits

Author SHA1 Message Date
Philip Peterson
fa460d697c
Search command should re-focus search box if already open (#164)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
2025-06-07 21:15:54 -07:00
Labhansh Agrawal
776360bdcd fix lint errors 2023-12-20 13:20:15 +05:30
Labhansh Agrawal
36ff6e9b95 sort imports 2023-07-26 00:16:14 +05:30
Labhansh Agrawal
f48c0e0608 move constants to typings as well 2023-07-25 16:49:24 +05:30
Labhansh Agrawal
c62ed62752 move typings into a separate directory 2023-07-25 15:34:59 +05:30
Labhansh Agrawal
8003736150 fix term crash when bell is false 2023-07-13 11:26:00 +05:30
Labhansh Agrawal
041d403249 add profile info to sessions 2023-06-30 10:14:05 +05:30
Labhansh Agrawal
f0316e90c9 add profiles to config 2023-06-30 10:14:05 +05:30
Labhansh Agrawal
9527757d9b upgrade eslint and fix errors 2023-06-26 22:57:57 +05:30
Labhansh Agrawal
5f0e80df08 remove unnecessary session url field 2023-06-26 20:06:17 +05:30
Labhansh Agrawal
928209b914 eslint: consistent type imports 2023-06-26 16:02:13 +05:30
Labhansh Agrawal
e31d72cc31 cleanup and type fixes 2023-06-25 18:17:01 +05:30
Marvin A. Ruder
95807fa7ed
Add support for displaying images (#6987) 2023-06-16 19:36:18 +05:30
Labhansh Agrawal
11c923842a use new windowsPty xterm option 2023-06-16 11:25:10 +05:30
dependabot[bot]
6b8271abff
Bump prettier from 2.8.1 to 2.8.4 (#7023)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Labhansh Agrawal <labhansh.agrawal@gmail.com>
2023-02-14 19:47:52 +05:30
Labhansh Agrawal
089b90fff1 refactor search redux actions
explicit open and close instead of toggle and close
2022-01-09 11:42:56 +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
cbe95a45ea Emit isMaximized on window geometry change 2021-09-08 11:39:29 +05:30
Labhansh Agrawal
aa9a50e8f9 Update state and reducer typings 2021-05-10 14:44:11 +05:30
Labhansh Agrawal
c347ce8483 Fix @typescript-eslint/no-unsafe-call errors 2021-04-07 21:50:32 +05:30
Labhansh Agrawal
e554e1db4f Fix errors reported after upgrading to typescript 4.2
Removed ResizeObserver polyfill and added explicit type declaration for HyperState
2021-03-04 22:42:50 +01:00
Benjamin Staneck
5692d32f2a
Update eslint and a few ZEIT references to Vercel 2020-07-13 15:05:34 +02:00
Labhansh Agrawal
d0e954def5 typing improvements 2020-06-19 22:12:42 +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
039b90aa65 Remove unnecessary eslint-disable directives 2020-03-03 00:24:12 +01:00
Labhansh Agrawal
01ea81823e Bump @types/uuid from 3.4.7 to 7.0.0 and fix breaking changes 2020-03-02 17:38:50 +01:00
Labhansh Agrawal
955566f6bf update typescript to 3.8.2 2020-02-21 17:25:18 +01:00
Labhansh Agrawal
c71b24ebea improve reducer typings 2019-12-30 23:40:56 +01:00
Labhansh Agrawal
f0b92cb8be Fix lint errors 2019-11-20 23:33:22 +01:00
Benjamin Staneck
03ff483bea add TODO comments for the new Electron async APIs that replace the remote module 2019-10-25 15:34:56 +02:00
Labhansh Agrawal
d232ec27c0 Typings fixes in terms and sessions 2019-10-20 22:20:05 +02:00
Labhansh Agrawal
537c746c75 porting files in lib/ actions, reducers and utils/plugins to ts (#3887)
* add type definitions

* rename files in lib/actions

* rename files from lib/reducers to ts

* renamed plugins.js to ts

* Add hyper types

* Fix ts errors in lib/reducers

* Fix ts errors in lib/actions

* Fix ts errors in plugins.ts
2019-10-19 18:59:56 +02:00
Jason Gauci
71953e0fdf Allow plugins to set the parent/predecessor of a new session (#3723) 2019-10-15 02:09:30 +02:00
ivan
97242c5d78 fix closing tab containing multiple panes 2019-10-13 03:09:23 +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
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
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
Zachary Riedlshah
970a98f60b fix: prettier fullscreen for macOS
fixes #5
2019-09-11 04:20:06 +02:00
Philippe Potvin
d0f03f52e5
url are now interpreted by xterm (#3507)
* url are now interpreted by xterm

* no need

* .DS_STORE banished

* remove from reducer
2019-03-03 13:13:50 -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
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
7a40fd7c97 WebGL renderer (using xterm.js fork) (#3368)
* Enabling webGL renderer

* Use @zeit/xterm fork of xterm

* Adding webGLRenderer config

* Fix linting issues

* Allow for hot-reloading of webGLRenderer

* Adding link to WebGL renderer issue we're working around

* Using NPM tarball instead of resolutions (which wasn't working

* Hard-coding selection color to white because nothing else is yet supported
2018-12-28 14:42:05 -08:00
Jarid Margolin
28f778037b Add scrollback option to config (#3038) 2018-05-29 12:11:21 +02:00
Ricardo Amaral
a14c55640c Add letter spacing configuration option (#3002) 2018-05-10 12:54:00 +02:00
Brad Dougherty
bba14f6324 Add line height config (#2858)
Fixes #2858
2018-04-21 00:22:34 +02:00
CHaBou
dc33d4846b
Fix color configuration with an array (#2729)
Fixes #2728
2018-03-21 10:00:29 +01:00