Mitchell Hashimoto
a75ee29f2d
Merge pull request #1981 from injust/adjust-line
...
Add `adjust_selection` actions for `beginning_of_line` and `end_of_line`
2024-07-22 09:40:45 -07:00
Mitchell Hashimoto
d912c144f2
Merge pull request #1987 from rockorager/main
...
inspector: fix mode prefix by prepending '?' only to private modes
2024-07-22 09:31:13 -07:00
Mitchell Hashimoto
8d0532d59e
Merge pull request #1986 from multifreded/working_branch
...
Fix multiple deprecated names for Zig lib/std
2024-07-22 09:30:35 -07:00
Tim Culverhouse
8211e7e83a
inspector: fix mode prefix by prepending '?' only to private modes
...
The inspector lists modes by their parameter when used to enable or
disable the mode. Private modes are enabled by using a '?' in the
sequence - however this '?' character was prepended to the ANSI modes.
2024-07-22 05:59:07 -05:00
Justin Su
64f9327a7d
Add unit tests
2024-07-21 23:24:11 -04:00
multifred
72c672adb7
Fix multiple deprecated names for zig lib/std
2024-07-22 00:07:17 +02:00
Justin Su
a917d80a1d
Merge branch 'ghostty-org:main' into adjust-line
2024-07-21 17:52:46 -04:00
Mitchell Hashimoto
76e0cf1046
Merge pull request #1982 from injust/fix-relabel-tabs
...
Fix tab relabelling when opening >9 tabs
2024-07-21 10:09:57 -07:00
Mitchell Hashimoto
5268780f00
macos: comment on clearing tab
2024-07-21 10:09:18 -07:00
Mitchell Hashimoto
d656b0650d
Merge pull request #1985 from ghostty-org/fcmono
...
font: fontconfig always prefer monospace in pattern
2024-07-21 09:57:20 -07:00
Mitchell Hashimoto
4b5ad77b70
font: fontconfig always prefer monospace in pattern
...
Fixes #1984
2024-07-21 09:48:07 -07:00
Justin Su
f57f9f2ec9
Use 1-indexed values when dealing with tabs
2024-07-21 03:32:43 -04:00
Justin Su
823e073795
Relabel all tabs and clear labels for tabs with no key equivalent
2024-07-21 02:27:51 -04:00
Justin Su
7919cb266e
Update comment
2024-07-21 02:12:47 -04:00
Justin Su
97bd46de7f
Add adjust_selection
actions for beginning_of_line
and end_of_line
2024-07-20 23:06:47 -04:00
Justin Su
3ad478044b
Fix some words
2024-07-20 23:04:24 -04:00
Mitchell Hashimoto
e6a4bb99f7
Merge pull request #1980 from ghostty-org/scrollweird
...
terminal: Pin.isBetween broken logic
2024-07-20 14:56:27 -07:00
Mitchell Hashimoto
9198adcba3
terminal: Pin.isBetween broken logic
...
Two bugs:
1. If our pin is the top page, and self.y == top.y, then x will tell us
the answer. Before, we'd fall through.
2. If our pin is not the top or bottom, but the top == bottom, then we
can't possibly be between. Before, we'd incorrectly check the linked
list starting AFTER top.
2024-07-20 14:50:31 -07:00
Mitchell Hashimoto
3a5b940703
Merge pull request #1978 from injust/xcode-16
...
Fix build on Xcode 16
2024-07-20 11:12:04 -07:00
Justin Su
5d71ab9f26
Fix build on Xcode 16
2024-07-20 13:13:49 -04:00
Mitchell Hashimoto
019561d8c2
Merge pull request #1959 from kareigu/open_scrollback
...
Support opening scrollback file in default text editor
2024-07-19 20:27:27 -07:00
Mitchell Hashimoto
a62b76eda3
core: add binding to write screen to file
2024-07-19 20:24:51 -07:00
Mitchell Hashimoto
55657465a7
add write_selection_file
...
Based on the work by @gigamaax
2024-07-19 20:20:49 -07:00
Mitchell Hashimoto
10198d88dc
core: make the write scrollback file logic more generic
2024-07-19 20:16:17 -07:00
Mitchell Hashimoto
e3df08039a
some bikeshedding
2024-07-19 20:03:20 -07:00
Mitchell Hashimoto
9f6e85eba7
Revert "macos: add button and menu item for opening scrollback file"
...
This reverts commit bc525f63a028a9aeecf659a2e0f3df178e327a60.
2024-07-19 19:56:02 -07:00
Mitchell Hashimoto
fa264ca160
Revert "apprt/gtk: add menu button for opening scrollback file"
...
This reverts commit 44dda62d68620937aa6de01ff0097df0b4ff9696.
2024-07-19 19:56:01 -07:00
karei
f9c14c55b4
macos: add button and menu item for opening scrollback file
2024-07-19 19:56:01 -07:00
karei
4e9639711c
apprt/gtk: add menu button for opening scrollback file
2024-07-19 19:56:01 -07:00
karei
6fde429728
core: support opening scrollback file in default text editor
2024-07-19 19:56:00 -07:00
Mitchell Hashimoto
5ed0bcc4ac
Merge pull request #1864 from SkamDart/text-selection-keybinds
...
feat: keybinds for text selection on copy mode
2024-07-19 14:26:04 -07:00
Mitchell Hashimoto
72c0f9dd32
adjust selection
2024-07-19 14:20:28 -07:00
Mitchell Hashimoto
72d8af5d0b
rename to expand_selection
2024-07-19 14:19:21 -07:00
Cameron Dart
cdeeeb9f88
feat: keybinds for text selection on copy mode
2024-07-19 14:08:52 -07:00
Mitchell Hashimoto
1eb18895bf
Merge pull request #1964 from jparise/osc-133-secondary
...
terminal: differentiate OSC 133 continuation and secondary kinds
2024-07-18 21:39:23 -07:00
Mitchell Hashimoto
53d59eb93d
Merge pull request #1971 from hauleth/fix/append-to-manpath-instead-of-overriding
...
fix: instead of overriding MANPATHs set by OS, append to them
2024-07-18 18:53:56 -07:00
Mitchell Hashimoto
66ed6798ed
Merge pull request #1970 from qwerasd205/shaper-cache-reset
...
shaper/coretext: reset font cache on grid change
2024-07-18 18:49:45 -07:00
Mitchell Hashimoto
f4c26dfaf5
shaper/coretext: use pointer address for cache comparison
2024-07-18 18:46:09 -07:00
Mitchell Hashimoto
1100145cf3
tweaks
2024-07-18 15:57:55 -07:00
Łukasz Niemier
255e50124c
fix: instead of overriding MANPATHs set by OS, append to them
...
Quoting `man man`:
> If MANPATH begins with a colon, it is appended to the default list;
Alternatively we can think about:
> if it ends with a colon, it is prepended to the default list;
To take preference over existing values, but that shouldn't be really a
problem, as there rather isn't much of another projects named `ghostty`.
2024-07-19 00:36:42 +02:00
Qwerasd
12e8d96b1a
shaper/coretext: reset font cache on grid change
...
Not doing this caused issues with spacing of ligatures and
multi-substitutions when changing the font size with cmd +/-
2024-07-18 17:39:57 -04:00
Mitchell Hashimoto
bf2450479e
Merge pull request #1969 from vancluever/gtk-mouse-shape-drag
...
apprt/gtk: set mouse shape on GL area widget instead of overlay
2024-07-18 09:34:12 -07:00
Mitchell Hashimoto
ffb31bbd03
Merge pull request #1967 from jparise/bash-prompt-end
...
bash: always send "end of command" prompt sequence
2024-07-18 09:34:01 -07:00
Mitchell Hashimoto
7a50d37bc2
Merge pull request #1962 from jparise/screen-clearprompt-continuation
...
terminal: test clearPrompt with a continuation
2024-07-18 09:30:26 -07:00
Mitchell Hashimoto
b387796cc9
Merge pull request #1965 from jparise/editorconfig
...
editorconfig: indent styles for shell scripts
2024-07-18 09:28:39 -07:00
Chris Marchesi
d0446a8444
apprt/gtk: set mouse shape on GL area widget instead of overlay
...
In b7699b9a, mouse shape functionality was moved from the GL area widget
to the overlay that was newly created for the URL target information
that was included as part of #1928 . This seems to have the side effect
of causing the pointer shape to revert to the default shape (here, the
basic arrow pointer) when dragging the mouse during selections.
This moves it back to the GL area, which seems to correct this. It
doesn't seem to need to be added to both - everything seems to function
correctly when a link is moused over, and then selection is made down to
the overlay area (not that this scenario is very likely, though).
2024-07-18 08:56:24 -07:00
Jon Parise
00fe956b3b
bash: always send "end of command" prompt sequence
...
I noticed that both wezterm[0] and the OSC 133 reference script[1] (upon
which wezterm and our bash integration appear to be based) always send
the "end of prompt" sequence in their precmd functions (except during
their first execution, when no previous command has been executed).
This is a subtle logical difference: `$_ghostty_executing=""` (first
run) versus `$_ghostty_executing="0"` (reentrancy check). I'm not sure
how much a difference it makes except in rare edge case scenarios, but I
think it makes sense to be consistent and always report the end of the
current command.
[0] https://github.com/wez/wezterm/blob/main/assets/shell-integration/wezterm.sh#L479
[1] https://gitlab.freedesktop.org/Per_Bothner/specifications/-/blob/master/proposals/prompts-data/shell-integration.bash
2024-07-18 10:31:41 -04:00
Jon Parise
8218a19421
editorconfig: indent styles for shell scripts
...
We're consistently using 2-space indentation in our shell scripts with
the exception of bash-prefix.sh, which is a vendored script uses 4-space
indentation (https://github.com/rcaloras/bash-preexec ).
Add editorconfig rules to help maintain this consistency going forward.
2024-07-18 09:17:14 -04:00
Jon Parise
a4bc98a031
terminal: differentiate OSC 133 continuation and secondary kinds
...
OSC 133 defines distinct continuation (c) and secondary (s) prompt
kinds. They're both treated as prompt continuations but have different
semantic meanings: `c` allows the user to "go back" and edit previous
lines, while `s` does not.
We don't (yet) handle this "editable" distinction, but this change makes
our OSC parser slightly more correct.
2024-07-18 09:09:00 -04:00
Mitchell Hashimoto
a2f0dbcecf
Merge pull request #1955 from ghostty-org/ibsr
...
terminal: implement in-band size reports (Mode 2048)
2024-07-17 19:54:24 -07:00