ProfOak
96daf97d19
Add keybind support for shift+insert selection paste
2024-02-21 19:33:05 -06:00
Mitchell Hashimoto
f414787779
move SplitDirection to apprt
2024-02-04 20:42:42 -08:00
Tim Culverhouse
1824a0fe87
split: add auto
as split option
...
Add an `auto` split direction which splits along the larger direction.
2024-02-04 21:28:17 -06:00
Mitchell Hashimoto
eafc9559d7
core: add "reset" keybinding to reset the terminal
...
Fixes #1425
2024-02-01 08:46:39 -08:00
gabydd
6f04bd4a79
don't write ":" when printing keybinding action with no argument
2024-01-22 21:01:16 -05:00
Jeffrey C. Ollie
9b1f72987a
markdown-ify keybind actions help strings
2024-01-21 19:50:39 -06:00
Jeffrey C. Ollie
f4292bccfc
replace deprecated std.mem.tokenize with std.mem.tokenizeScalar
2024-01-03 10:22:33 -06:00
Mitchell Hashimoto
9c0de96c79
Merge pull request #1116 from clebs/feature/settings-shortcut
...
macos: Add settings shortcut
2023-12-18 08:08:48 -08:00
Mitchell Hashimoto
aa9b7cd2e9
input: clarify some limitations of opening config
2023-12-18 08:07:41 -08:00
Mitchell Hashimoto
97433d3aa1
macos: close all windows
...
Fixes #1052
This implements a `close_all_windows` binding in the core and implements
it for macOS specifically. This will ask for close confirmation if any
surface in any of the windows requires confirmation.
This is bound by default to option+shift+command+w to match Safari. The
binding is generall option+command+w but users may expect this to also
mean "Close All Other Tabs" which is the changed behavior if any tabs
are present in a standard macOS application. So I chose to follow Safari
instead.
This doesn't implement this feature for GTK, that's left as an exercise
for a contributor.
2023-12-17 20:54:57 -08:00
Borja Clemente
646e3c365c
Add settings shortcut on MacOS
...
- Settings shortcut opens the config file in the default editor.
Signed-off-by: Borja Clemente <borja.clemente@gmail.com>
2023-12-17 16:19:22 +01:00
RGBCube
d659b12fb9
input: add scroll_page_lines
2023-12-11 23:35:40 +03:00
Mitchell Hashimoto
6fc0d2d4a8
input: allocate for text bindings
2023-11-24 10:36:43 -08:00
Mitchell Hashimoto
0e2970bdeb
config: add string parse, tests
2023-11-24 10:26:55 -08:00
Mitchell Hashimoto
2e02083eef
Revert "parse string literal at load time"
...
This reverts commit 9c3e2b4ddd546e5f0c9d60c25a22bc5ab0be1283.
2023-11-24 10:06:34 -08:00
Guillaume Wenzek
9c3e2b4ddd
parse string literal at load time
2023-11-24 18:15:47 +01:00
Guillaume Wenzek
223accb4c8
add "text" action
2023-11-24 17:53:46 +01:00
Mitchell Hashimoto
cb0cfab438
comments
2023-11-17 21:37:37 -08:00
Raiden1411
e3b83249d6
core: implement select all binding
2023-11-17 18:01:39 +00:00
Gregory Anders
cd01340cce
macos: add key binding for equalizing split sizes
2023-11-07 16:23:28 -06:00
Mitchell Hashimoto
0ec225683e
input: allow modifier aliases
...
Fixes #824
2023-11-06 11:42:51 -08:00
Mitchell Hashimoto
7be5eba9cb
input: unit tests for pasing tuples
2023-11-06 09:23:24 -08:00
Mitchell Hashimoto
1ff81682f7
input: add format support for tuple args
2023-11-06 09:19:59 -08:00
Gregory Anders
0a2d435481
core: add resize_split binding with default keys
...
On macOS, use Cmd+Ctrl+Arrow keys as default bindings for resizing by 10
points in the given direction.
2023-11-05 20:20:39 -06:00
Gregory Anders
e7745dc820
core: add support for bindings with multiple parameters
...
This commit adds support for bindings with multiple parameters. For
example, a "resize_split" binding will have two parameters: the resize
direction and the resize amount. Multiple parameters are supported by
using a tuple as the enum value and are written in string form by
separating each argument with a comma. Example: "resize_split:up,10".
2023-11-05 20:20:39 -06:00
Mitchell Hashimoto
debeba99db
input: Binding.Trigger format
2023-11-03 17:48:19 -07:00
Mitchell Hashimoto
cb4bb8aaf6
input: add Binding.Action.format to convert action to string
2023-11-03 15:57:14 -07:00
Leo Razoumov
dc527bd2cb
feat: keybind escape sequence action "esc:text" similar to "csi:text"
2023-11-02 17:50:17 -04:00
Mitchell Hashimoto
29bbcbbf92
core: add input binding to control terminal inspector
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
47ee1e7355
input: Binding string can be unconsumed with "unconsumed:" prefix
2023-09-29 21:34:23 -07:00
Mitchell Hashimoto
9d0e7ab138
input: binding set can track unconsumed triggers
2023-09-29 20:18:41 -07:00
Mitchell Hashimoto
58a43f1980
config: store some basic errors on parse
2023-09-11 09:10:26 -07:00
Mitchell Hashimoto
4570356e57
turn zoom into a toggle rather than an explicit zoom/unzoom
2023-09-02 16:03:51 -07:00
Mitchell Hashimoto
519a97b782
core: add unzoom_split binding
2023-09-02 15:15:12 -07:00
Mitchell Hashimoto
50a1a52ae3
core: add zoom keybinding for splits
2023-09-02 14:52:43 -07:00
Mitchell Hashimoto
369ffebb72
input: when overwriting a binding, we must update the reverse map
2023-08-31 13:08:33 -07:00
Mitchell Hashimoto
fe5da86bb0
input: maintain a reverse mapping to quickly look up trigger by action
2023-08-31 12:45:43 -07:00
Mitchell Hashimoto
ba883ce39a
add ghostty_config_trigger C API to find a trigger for an action
2023-08-30 22:14:44 -07:00
Mitchell Hashimoto
17e46bf0f4
input: move action parsing to dedicating Action.parse
2023-08-30 21:39:25 -07:00
Mitchell Hashimoto
7ccf86b175
remove imgui and devmode
...
imgui has been a source of compilation challenges (our fault not theirs)
and devmode hasn't worked in awhile, so drop it.
2023-08-20 08:50:24 -07:00
Thorsten Ball
2e9b787668
macOS: new window can inherit font size
...
This is the second part of #281 and adds the same mechanism that was
added for tabs in #296 for windows.
It works exactly the same way.
2023-08-19 09:29:56 +02:00
Thorsten Ball
d2dae7a696
macOS: inherit font size when creating new tab
...
This is one part of #281 .
2023-08-17 20:56:56 +02:00
Mitchell Hashimoto
3556cf8407
input: unify binding-sensitive mods to a single func
2023-08-14 11:51:10 -07:00
Mitchell Hashimoto
65c4aada02
input: rename "unmapped" to "physical"
2023-08-11 12:02:01 -07:00
Mitchell Hashimoto
0ed76b4300
scroll_page_fractional keybinding
2023-08-09 07:37:18 -07:00
Mitchell Hashimoto
a8380e937d
scroll top, bot, page up, page down binding actions
2023-08-09 07:24:11 -07:00
Mitchell Hashimoto
22296b377a
Revert "Merge pull request #244 from mitchellh/alt-as-esc"
...
This reverts commit c139279d479682c17f63d9b57c2d56608d09d16a, reversing
changes made to 4ed21047a734d7c586debe0026e3b6ea90ed1622.
We do want to do this but this broke bindings.
2023-08-07 17:06:40 -07:00
Mitchell Hashimoto
32eb226fa3
non-macos doesn't support directional bindings
2023-08-07 14:52:20 -07:00
Mitchell Hashimoto
47bed51177
bindings can contain directional modifiers: left_shift+a
2023-08-07 14:43:44 -07:00
Mitchell Hashimoto
67cbabd605
make keyboard modifiers left/right-aware throughout core
2023-08-07 14:33:56 -07:00