2343 Commits

Author SHA1 Message Date
Matthew Winter
212b30a163 feat: change minimum height to 2 2023-11-01 11:51:32 +11:00
Chinmay Dalal
481af8039b disable zig fmt for aligned comments 2023-10-31 23:08:51 +05:30
Mitchell Hashimoto
59a53251cf apprt/gtk: create new tab after current tab
This behaves the same as macOS, and personally I prefer this behavior
because when I create a new tab, it is often contextual to what I'm
currently working on and keeping the tab nearby feels right.
2023-10-31 09:49:39 -07:00
Mitchell Hashimoto
0659a98867 Merge pull request #772 from mitchellh/macos-confirm-quit
macos: refactor main terminal window, split state, fix some bugs
2023-10-31 09:42:28 -07:00
Matthew Winter
d7a16e0245 feat: update undercurl thickness and wave height 2023-10-31 21:53:04 +11:00
Matthew Winter
60b69a32d0 feat: update undercurl thickness and wave height 2023-10-31 21:23:53 +11:00
Chinmay Dalal
4a0e53c1cc expose selectOutput via ctrl+triple click
closes #752
2023-10-30 21:46:59 +05:30
Mitchell Hashimoto
9b134a60c1 apprt/embedded: add API to detect if a single surface needs quit confirm 2023-10-30 09:06:23 -07:00
Mitchell Hashimoto
3a5f12b8ab font: box sprite use saturated subtraction
Fixes #757

The x/y is unsigned (as it should be, since top-left is 0,0). In the
case of a very small grid size and certain thickness settings, its
possible to overflow. In this scenario, the only reasonable thing to do
is just clamp to 0 because some sprites are going to look weird with
small enough grids anyways.
2023-10-30 09:01:14 -07:00
Mitchell Hashimoto
e188aba7f4 apprt/gtk: if no parent is set on new window, do not inherit wd 2023-10-30 08:50:58 -07:00
Mitchell Hashimoto
2c9420b742 Merge pull request #767 from dvorakluk/fix/padding-balance
fix window-padding-balance in combination with explicit padding
2023-10-30 08:45:13 -07:00
Lukáš Dvořák
bca7140248 balanced padding cleanup 2023-10-30 14:56:02 +01:00
Lukáš Dvořák
6887ea7e53 fix window-padding-balance in combination with explicit padding 2023-10-30 13:46:19 +01:00
Chinmay Dalal
bccf1216bc exit early when cursor is on a prompt line 2023-10-30 12:42:58 +05:30
Chinmay Dalal
0920ab08cd handle cursor on a prompt line 2023-10-30 11:52:35 +05:30
Chinmay Dalal
3ff20c7418 add tests 2023-10-30 10:19:21 +05:30
Chinmay Dalal
fae356be5a implement selecting output a ScreenPoint is in
This works by finding prompt markers provided by shell integration
Does not yet close #752 as this is not exposed
2023-10-30 01:30:43 +05:30
Mitchell Hashimoto
c182093934 Merge pull request #762 from mitchellh/mattpolzin-misc-typos
Just a couple of minor typos discovered while getting started.
2023-10-29 12:55:12 -07:00
Mitchell Hashimoto
155cd099ba terminfo: add E3 for clear scrollback
`clear(1)` uses this to clear scrollback unless supressed with `-x`.
2023-10-29 12:52:33 -07:00
Mitchell Hashimoto
68275d6afa config: update some comments around pwd inheritance
Fixes #760
2023-10-29 12:02:19 -07:00
Mitchell Hashimoto
177aaea1d3 Merge pull request #753 from mitchellh/update-undercurl
feat: update undercurl with antialiasing
2023-10-28 21:07:42 -07:00
Matthew Winter
58f1653a16 feat: cleanup types and reduce casting 2023-10-29 14:17:46 +11:00
Mathew Polzin
d5776ff017 Fix typo in Config.zig
key scan -> keys can
2023-10-28 18:54:32 -05:00
Mitchell Hashimoto
06edc311a1 renderer/opengl: reclaim cell buffer memory when resizing 2023-10-28 11:38:20 -07:00
Mitchell Hashimoto
95f0b4779d renderer/metal: reclaim cell buffer memory when resizing 2023-10-28 11:30:02 -07:00
Mitchell Hashimoto
a249e5973d font/underline: some additional type annotations 2023-10-28 10:40:51 -07:00
Matthew Winter
6d971de87a feat: add x_facter comment and remove old code 2023-10-29 03:13:17 +11:00
Matthew Winter
a5eb746cf5 feat: update undercurl with antialiasing 2023-10-29 02:49:31 +11:00
Mitchell Hashimoto
c2adf22858 apprt/gtk: comment on what is going on with keyval mapping 2023-10-28 08:42:35 -07:00
Vlad Pănăzan
6b7dd1479d apprt/gtk: handle non-unicode keyvals 2023-10-28 15:35:16 +02:00
Mitchell Hashimoto
641fb535b7 Merge pull request #749 from mitchellh/command-args
Command args, `-e` flag
2023-10-27 18:29:18 -07:00
Mitchell Hashimoto
2c541a7e86 config: -e replaces previous args 2023-10-27 18:26:44 -07:00
Mitchell Hashimoto
4f62526782 config: tests for -e parsing 2023-10-27 18:24:13 -07:00
Gregory Anders
3d898bf30d terminfo: remove focus reporting mode from XM entry (#748)
The XM entry enables mouse reporting events to applications. An
application that supports mouse events may not necessarily support focus
events, so these should not be bundled together.

Vim includes focus reporting mode (1004) in their example XM entry in
their docs [1], but they do not actually use it in the default value XM
value [2].

Ncurses also includes only modes 1000 and (optionally) mode 1006 in
their mouse driver [3]. The ncurses documentation for XM similarly does
not mention focus reporting (mode 1004) anywhere [4].

Including focus reporting causes bugs in some programs that want to use
mouse mode but do not handle focus events (e.g. `htop`).

[1]: https://vimhelp.org/term.txt.html#xterm-terminfo-entries
[2]: 87ca5e86fa/src/term.c (L477)
[3]: 87c2c84cbd/doc/html/man/curs_mouse.3x.html (L339)
[4]: https://www.man7.org/linux/man-pages/man5/user_caps.5.html
2023-10-27 17:40:41 -07:00
Mitchell Hashimoto
4104f78cba cli: handle "-e" as the command to execute 2023-10-27 15:57:20 -07:00
Mitchell Hashimoto
9c56bd5dba config: command-arg to specify arguments to the executed command
Fixes #744
2023-10-27 15:38:50 -07:00
Mitchell Hashimoto
25e3b21eae apprt/gtk: comment about future API 2023-10-27 15:09:52 -07:00
Mitchell Hashimoto
b985b28918 apprt/gtk: use gtk widget scale to get content scale 2023-10-27 15:03:41 -07:00
Vlad Pănăzan
ffaa7e11e2 apprt/gtk: handle surface scale changes 2023-10-27 23:27:53 +02:00
Mitchell Hashimoto
cf6ee6ed14 apprt/gtk: only create window header bar with window decorations
Fixes #737
2023-10-27 10:08:59 -07:00
Mitchell Hashimoto
069e16cb46 terminal: restore cursor should clamp x/y 2023-10-27 09:42:39 -07:00
Mitchell Hashimoto
306689b8a4 terminal: sgr direct bg also had wrong slice len 2023-10-27 09:27:45 -07:00
Mitchell Hashimoto
d28e6739c7 terminal: sgr direct color fg missing color doesn't crash 2023-10-27 09:25:16 -07:00
Mitchell Hashimoto
0b6cbfa141 terminal: only clear spacer tail if exists 2023-10-27 09:14:53 -07:00
Mitchell Hashimoto
4c45bfec9e terminal: improve some debug logging 2023-10-27 09:14:29 -07:00
Mitchell Hashimoto
597f95120b terminal: ECH minimum count is 1 2023-10-27 08:50:05 -07:00
Mitchell Hashimoto
3a77df7ce2 terminal: in mode 2027, do not attach any width=0 char unless grapheme 2023-10-27 08:23:43 -07:00
Mitchell Hashimoto
9330b25f1a config: make step resize opt-in for macos 2023-10-27 08:18:32 -07:00
Mitchell Hashimoto
403fac15f1 Merge pull request #735 from gpanders/resize-increments
macos: set window resizeIncrements when cell size changes
2023-10-27 08:09:00 -07:00
Mitchell Hashimoto
9b63da2ea7 config: slighty copy editing 2023-10-27 08:08:43 -07:00