4392 Commits

Author SHA1 Message Date
Chris Marchesi
b84fb25e55 Add rectangle select
This adds rectangle select mode; when dragging with ctrl+alt (or
super+alt on MacOS), this allows you to select a rectangular region of
the terminal instead of the full start-end points of the buffer.
2023-11-30 12:35:52 -08:00
Mitchell Hashimoto
e27eb727c4 Merge pull request #972 from mitchellh/claer-screen
termio: clear_screen binding does not trigger scrollback preservation
2023-11-30 12:33:27 -08:00
Mitchell Hashimoto
810242b472 termio: clear_screen binding does not trigger scrollback preservation
Fixes #970
2023-11-30 12:32:35 -08:00
Mitchell Hashimoto
ee08346dfe Merge pull request #968 from mitchellh/urls
Clickable URLs
2023-11-30 12:15:55 -08:00
Mitchell Hashimoto
e5380822ea Merge pull request #956 from rockorager/fix-associated-text
key-encode: only set associated text when there is printable text
2023-11-29 21:38:16 -08:00
Mitchell Hashimoto
bc7643eae9 input: update preventsText comment 2023-11-29 21:36:10 -08:00
Mitchell Hashimoto
659b43de37 input: Kitty encoding suppress associated text on macOS with alt 2023-11-29 21:34:30 -08:00
Mitchell Hashimoto
eac1731d9d apprt/gtk: translate modifier-only presses to proper modifier state 2023-11-29 20:37:56 -08:00
Mitchell Hashimoto
2d2495350f core: on mod change, rerun cursor pos callback 2023-11-29 18:44:22 -08:00
Mitchell Hashimoto
e6f7fb76a8 config: ability to disable URL matching 2023-11-29 16:50:26 -08:00
Mitchell Hashimoto
be1be2c64d core: only process link detection on cursor pos if cell changes 2023-11-29 15:54:13 -08:00
Mitchell Hashimoto
9326e21339 nix: update cache hash 2023-11-29 15:30:46 -08:00
Mitchell Hashimoto
bb60d2c1c0 renderer/opengl: urls 2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
c66273e91c input: better docs on links 2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
0938a0d638 core: handle URL clicking properly with shift-escaping mouse events 2023-11-29 15:30:23 -08:00
Mitchell Hashimoto
056e96748a core: don't crash if link processing fails 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
995e4e3757 os: open 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
dcbe0b8a5f core: only update mouse hover point when no other mouse action 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
8fcf3f08dd core: send mouse hover point 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
3a599ec7df renderer: link sets handle hover links 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
b94c607256 renderer: matchset tests 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
5a7596e1b1 renderer: link set for more efficient matching 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
172a91e95d core: change mouse cursor over link 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
20cc369561 core: detect link click 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
aa86031ff6 terminal: move line searching here, unit test 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
be05c3af53 input: add Link 2023-11-29 15:30:22 -08:00
Mitchell Hashimoto
5db002cb12 renderer/metal: underline urls 2023-11-29 15:30:21 -08:00
Mitchell Hashimoto
c7ccded359 terminal: Screen.getLine 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
3aba42c3f7 terminal: stringmaps 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
0487dbfb25 terminal: selectionString uses arraylist to build results 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
7fc95690bc terminal: basic lineIterator on screen 2023-11-29 15:30:07 -08:00
Mitchell Hashimoto
af04d891ff build: dynamically link oniguruma 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
b85174c7ac build: add oniguruma 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
27585ae18a pkg/oniguruma: better regex api 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
364020973c pkg/oniguruma: search 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
4d3c7212d8 pkg/oniguruma: init regex object 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
c0a06ab523 pkg/oniguruma: basic build 2023-11-29 15:29:43 -08:00
Mitchell Hashimoto
af44f5da3b Merge pull request #964 from mitchellh/dependabot/github_actions/cachix/install-nix-action-24
build(deps): bump cachix/install-nix-action from 23 to 24
2023-11-29 09:31:39 -08:00
dependabot[bot]
191c4a061a build(deps): bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 00:46:10 +00:00
Mitchell Hashimoto
7a9f979646 nix: update zig cache hash 2023-11-28 08:17:47 -08:00
Mitchell Hashimoto
2ee493c972 Merge pull request #942 from mitchellh/themes
Built-in Themes (based on iTerm2-Color-Schemes)
2023-11-28 08:13:19 -08:00
Mitchell Hashimoto
dde2339e4d move back to zig pm 2023-11-28 08:11:34 -08:00
Mitchell Hashimoto
23944265a6 Merge pull request #961 from byildiz/main
fix selection clearing after a key press
2023-11-27 13:30:43 -08:00
Burak Yildiz
44a3b22db8 fix selection clearing after a key press 2023-11-27 21:03:24 +01:00
Mitchell Hashimoto
1a813280a2 Merge pull request #959 from vancluever/vancluever-disable-nix-build
workflows: disable nix build job
2023-11-25 14:46:41 -08:00
Chris Marchesi
47c249cc30 workflows: disable nix build job
Unfortunately building LLVM/Zig is much too slow on default GHA, so we
will need to keep this off until we don't need to do that.
2023-11-25 10:55:44 -08:00
Mitchell Hashimoto
a176f67f22 Merge pull request #951 from vancluever/vancluever-nix-action
nix: add GitHub Actions workflow
2023-11-24 20:08:37 -08:00
Chris Marchesi
c3b44020f4 nix: add GitHub Actions workflow
This adds a nix workflow that does the following:

* Checks to see if the Zig cache fixed derivation needs its hash
  updated. It does this by downloading a new cache, calculating the
  hash, and comparing it against what has already been set. If the hash
  is different, the workflow fails.
* Runs a Nix build if the hash is OK, testing the build of
  packages.ghostty (using "nix build .")

The cache workflow we use in the build job comes from:
  https://github.com/DeterminateSystems/magic-nix-cache-action/

Fixes #937.
2023-11-24 17:07:55 -08:00
Tim Culverhouse
07e6cf900f key-encode: only set associated text when there is printable text
Associated text should only be sent to the terminal when printable text
is generated from the keypress. Prevent sending associated text when any
modifier is pressed, except for Shift, NumLock, and Capslock

This brings Ghostty inline with the output of Kitty.
2023-11-24 14:27:37 -06:00
Mitchell Hashimoto
115e8130ba Merge pull request #955 from mitchellh/text_action
Text action: input any text you want
2023-11-24 10:37:12 -08:00