Mitchell Hashimoto
243379c50f
apprt/embedded: ghostty_surface_pwd
2023-12-23 16:59:09 -08:00
Mitchell Hashimoto
7600c761ef
fix callback struct ordering, use internal_os.open
2023-12-18 08:00:40 -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
Mitchell Hashimoto
89348fd73e
include: add new keycodes
2023-12-13 18:46:55 -08:00
Gregory Anders
86b7442f3c
macos: implement desktop notifications
2023-11-15 11:21:30 -06:00
Mitchell Hashimoto
5001e2c60c
macos: filter option in AppKit when option-as-alt set
...
Fixes #872
In #867 we fixed macos-option-as-alt, but unfortunately AppKit ALSO does
some translation so some behaviors were not working correctly.
Specifically, when you had macos-option-as-alt set, option+e would
properly send `esc+e` to the pty but it would ALSO set the dead key
state for "`" since AppKit was still translating the option key.
This commit introduces a function to strip alt when necessary from the
translation modifiers used at the AppKit layer, preventing this
behavior.
2023-11-13 13:26:37 -08:00
Gregory Anders
98b43007a0
core: use ClipboardRequestType instead of ClipboardPromptReason
...
Instead of making a separate enum that must be translated from the
ClipboardRequest type, simply re-use ClipboardRequest to determine the
clipboard confirmation reason.
2023-11-10 23:12:39 -05:00
Gregory Anders
86245ff0cf
macos: add option to prompt user for confirmation on OSC 52 commands
2023-11-10 23:12:39 -05:00
Mitchell Hashimoto
dd1faf5e50
macos: handle preedit in AppKit, enables Korean input
2023-11-10 09:53:56 -08:00
Gregory Anders
cd01340cce
macos: add key binding for equalizing split sizes
2023-11-07 16:23:28 -06:00
Gregory Anders
9b14398153
macos: support resizing splits
2023-11-05 20:42:59 -06:00
Mitchell Hashimoto
ef44551522
apprt/embedded: hook up paste confirmation
2023-11-05 09:20:16 -08:00
Mitchell Hashimoto
9b134a60c1
apprt/embedded: add API to detect if a single surface needs quit confirm
2023-10-30 09:06:23 -07:00
Gregory Anders
2ee80a52df
macos: set window resizeIncrements when cell size changes
...
The resizeIncrements property is only modified when the cell size of the
focused window changes. If two splits have the same cell size then the
property is not modified when focusing between the two splits.
2023-10-26 20:27:58 -05:00
Mitchell Hashimoto
29bbcbbf92
core: add input binding to control terminal inspector
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
92d172377e
macos: don't do full surface-style key translation for imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
52ccef3b8e
macos: only re-render the inspector when requested
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
d50ff6ece7
macos: complete cimgui events
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
2c40183c3c
macos: rendering basic imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
ee832aa361
apprt/embedded: ghostty_surface_text function, remove _char
2023-10-04 07:56:56 -07:00
Mitchell Hashimoto
140afb395f
apprt/embedded: supporting setting working directory in config
2023-10-03 17:34:44 -07:00
Mitchell Hashimoto
a1a8aeb104
initial window size needs to take into account window chrome
2023-09-30 21:35:50 -07:00
Mitchell Hashimoto
cc8e1cd936
macos: support initial window size
2023-09-30 20:47:31 -07:00
Mitchell Hashimoto
7059b4f74d
apprt/embedded: ghostty_cli_main
2023-09-20 12:35:52 -07:00
Mitchell Hashimoto
5a02635d2c
macos: async style clipboard reading
2023-09-19 10:36:17 -07:00
Mitchell Hashimoto
de0f71c6a1
c api: add ghostty_info to get metadata about the build
2023-09-15 12:32:41 -07:00
Mitchell Hashimoto
724900f143
macos: implement setCursorVisibility
2023-09-14 19:37:30 -07:00
Mitchell Hashimoto
cb2931cb27
rename cursor shape to mouse shape for OSC 22
2023-09-14 11:12:17 -07:00
Mitchell Hashimoto
3356146bb4
macos: support cursor style
2023-09-14 10:40:40 -07:00
Mitchell Hashimoto
56ccadd7f1
core: app needsConfirmQuit to streamline quitting if no active sessions
2023-09-11 15:44:08 -07:00
Mitchell Hashimoto
2f0905b60c
macos: reload config MUST go through Zig core
2023-09-11 15:20:31 -07:00
Mitchell Hashimoto
f0ee2fb454
macos: log configuration errors
2023-09-11 09:39:58 -07:00
Mitchell Hashimoto
2820db55be
config: add C API ghostty_config_get to read configuration values
2023-09-10 18:45:02 -07:00
Mitchell Hashimoto
f31bde48fc
macos: add prev/next tab custom binding support
2023-09-09 13:00:23 -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
Will Pragnell
86122624e0
macos: add visible-menu non-native-fullscreen option
2023-09-01 21:45:45 -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
c71979804e
apprt/embedded: ghostty_surface_binding_action can now run any action
2023-08-30 21:46:38 -07:00
Thorsten Ball
a76aea4d0a
macOS: new split can inherit font size
2023-08-19 09:59:04 +02: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
Mitchell Hashimoto
5eb902592c
c include: u8 => u16
2023-08-18 09:19:22 -07:00
Mitchell Hashimoto
79971c62a6
macos: pass around a base surface_config_s rather than a new tab
2023-08-18 09:09:43 -07:00
Thorsten Ball
cda87a6963
embedded: use separate struct to pass options to new_tab_cb
2023-08-18 06:50:47 +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
721087be76
macos: send the left/right status of modifier keys
2023-08-14 12:40:48 -07:00
Mitchell Hashimoto
d02bf322f8
apprt/embedded: remove old _key api, new only!
2023-08-11 12:02:00 -07:00
Mitchell Hashimoto
57a527b0c9
macos: detect keyboard layout change and reload the keymap
2023-08-11 12:01:59 -07:00
Mitchell Hashimoto
3d23f26326
input, macos: initial work on keymapper and macos usage of it
2023-08-11 12:01:58 -07:00