Commit Graph
2073 Commits
Author SHA1 Message Date
Wez Furlong f06d6fc04f docs: changelog for #6328 #6873 #6875 2025-04-15 05:23:44 -07:00
Wez Furlong d2df5b755f docs: changelog for #6860 #6868 2025-04-13 06:54:14 -07:00
Wez Furlong 12b971ac44 docs: changelog for #6696 2025-03-09 15:37:01 -07:00
mgpinf 9606fa2569 Add font configuration option for ActivateCommandPalette, CharSelect, PaneSelect (#6696)
* feat: option to configure font for ActivateCommandPalette, CharSelect, PaneSelect

Add configuration option for font for the below entities:
- ActivateCommandPalette
- CharSelect
- PaneSelect

For the above entities, if the font is not set in configuration, it
defaults to the font resolved in config.window_frame.font. This is in
order to maintain existing behavior of using the font resolved in
config.window_frame.font

* docs: documentation for added configuration options

Add documentation for below configuration options:
- command_palette_font
- char_select_font
- pane_select_font

* refactor: rename EntityFont to Entity

* docs: add example configuration in char_select_font

Apply changes mentioned in suggestion:
https://github.com/wezterm/wezterm/pull/6696#discussion_r1986085165

* docs: add example configuration in pane_select_font

Apply changes mentioned in suggestion:
https://github.com/wezterm/wezterm/pull/6696#discussion_r1986085165

* docs: add example configuration in command_palette_font

Apply changes mentioned in suggestion:
https://github.com/wezterm/wezterm/pull/6696#discussion_r1986085165

* refactor: calculate make_bold in make_entity_font_impl method

* refactor: resolve font_size based on Entity

Since we can fetch font_size based on entity, we resolve it in
'make_entity_font_impl'. This removes the need to pass the pref_size
parameter

Apply changes mentioned in suggestions:
https://github.com/wezterm/wezterm/pull/6696#discussion_r1986085350
https://github.com/wezterm/wezterm/pull/6696#discussion_r1986085949
2025-03-09 15:34:32 -07:00
Wez Furlong 824df44296 update bundled Noto Color Emoji
This version (2.047) has unicode 16 support.

Source file is https://github.com/googlefonts/noto-emoji/blob/main/fonts/Noto-COLRv1.ttf
2025-03-09 07:00:38 -07:00
Wez Furlong 9aac7b3dec docs: changelog for #6682 2025-03-09 04:32:04 -07:00
mgpinfandWez Furlong 413ebd5681 Add configuration option for InputSelector label background and foreground color (#6682)
* feat: add configuration option for InputSelector label bg and fg

Add below configuration option in config.colors:
- input_selector_label_bg
- input_selector_label_fg

If above mentioned options are not set in the configuration file then:
- input_selector_label_bg defaults to default background color
- input_selector_label_fg defaults to default foreground color

* docs: add InputSelector label bg, fg options to Colors & Appearance

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-09 04:29:13 -07:00
Wez Furlong cdd70030ea docs: docs and changelog for #6558 2025-03-08 17:21:09 -07:00
Wez Furlong 7aadebfe48 termwiz: fix panic when appending long runs to clusterline
There were two different overflows that could happen here when
resizing the terminal from a narrow width to a much wider width,
when the input consists of very very long logical lines.

The first was that we could overflow the maximum number of
cells in the ClusteredLine struct, which had u16 as its type.

The second, after changing u16 to u32, was the maximum length
of a run of cells with the same attribute.

The former could be fixed, preserving the smaller integer type,
by adjusting the API to allow it to return the overflow, but
that feels awkward and we could just increase the size of
the integer type.

The latter can be caught with an overflowing_add operation
and breaking the run in the overflow case.

That is what this commit does.

+bump codec version because this causes a small change
in the serialization of line data used by the mux
protocol.

refs: https://github.com/wezterm/wezterm/issues/6729
2025-03-08 12:25:06 -07:00
Wez Furlong e8d84eeb53 docs: changelog for #6677 2025-03-08 10:24:14 -07:00
mgpinfandWez Furlong 46f74a5bf7 Add alphabet to launcher args (#6677)
* feat: add alphabet argument to ShowLauncherArgs

- The labels are now based on the provided argument or the default value
- The 'alphabet' string defaults to "1234567890abcdefghilmnopqrstuvwxyz"
- Optional argument 'alphabet' is added to 'ShowLauncherArgs'

* docs: update documentation for ShowLauncherArgs

* fix: push (max_label_len+3) whitespaces if always_fuzzy false in InputSelector

This is to handle the edge case in InputSelector when max_label_len is 2
and the labels shift one place to the left when entering fuzzy mode and
back one place to the right when exiting fuzzy mode.

* fix: push (max_label_len+3) whitespaces if 'FUZZY' not present

This is to handle the edge case in Launcher when max_label_len is 2
and the labels shift one place to the left when entering fuzzy mode and
back one place to the right when exiting fuzzy mode.

* feat: add configuration option for Launcher alphabet

- This is in order to be able to configure the alphabet for
  actions corresponding to KeyAssignment enums 'ShowLauncher',
  'ShowTabNavigator'
- If `launcher_alphabet` configuration option not set, the value
  defaults to '1234567890abcdefghilmnopqrstuvwxyz'

* docs: add launcher_alphabet documentation

* docs: update documentation for ShowLauncherArgs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-08 10:22:11 -07:00
Wez Furlong 4e5341efd0 docs: changelog for #6707 2025-03-08 10:19:53 -07:00
mgpinfandWez Furlong 2dda592ba6 Add Confirmation to Key assignment (#6707)
* feat: add Confirmation to KeyAssignment

This displays a confirmation menu similar to close menu.
An optional cancellation action that is triggered when the user
cancels/declines.

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-08 10:18:40 -07:00
S H 622e404be2 Update custom_block_glyphs.md
Correct link for u2500
2025-03-07 12:08:43 -08:00
Wez Furlong 60c3f756e4 docs: changelog for #6602 #336 2025-03-07 10:02:37 -07:00
Wez Furlong 9574ded6cd deps: update harfbuzz to 10.4.0 2025-03-06 15:23:38 -07:00
Wez Furlong f61e9d9f7d docs: changelog for #6749 2025-03-06 11:42:04 -07:00
Ross WilliamsandWez Furlong f8f5cc4aac Improve documentation of pane:paste vs pane:send_paste (#6730)
* Improve documentation of pane:paste vs pane:send_paste

* docs: remove ambiguity in documentation of pane:paste and
  pane:send_paste

Since 20221119-145034-49b9839f, `paste` has been an alias of
`send_paste`, but this was not documented. I went commit-reading to find
this out, so went ahead and fixed the docs to show this.

Signed-off-by: Ross Williams <ross@ross-williams.net>

* Apply suggestions from code review

---------

Signed-off-by: Ross Williams <ross@ross-williams.net>
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-03-06 11:28:28 -07:00
Wez Furlong fd532a8c2f docs: changelog for #6683
refs: #4022
2025-02-23 15:38:57 -07:00
mgpinf 85409e57a3 Option to disable attributes for non matching text in quick select mode (#6683)
* feat: optionally disable non-matching text attributes in Quick Select

Add a configuration option
'disable_attributes_for_non_matching_text_in_quick_select' that disables
all attributes for non-matching text in Quick Select Mode.
The default value for
'disable_attributes_for_non_matching_text_in_quick_select' is false

This resolves the issue https://github.com/wezterm/wezterm/issues/4022

* docs: documentation for disabling attributes for non matching text in QuickSelect

Add documentation for the below configuration option:
- `disable_attributes_for_non_matching_text_in_quick_select`

* feat: display quick select label and match in bold

* refactor: fetch colors from existing reference to config

* fix: reset additional attributes for non matching text

Reset additional below mentioned attributes to default for non matching
text if the configuration option
disable-attributes-for-non-matching-text-in-quick-select-mode is true
- Italic
- Blink
- StrikeThrough
- Invisible
- Hyperlink

* fix: update attributes to reset

* feat: add reset_attributes function in termwiz cell

Add reset_attributes function in termwiz cell
Use the above function to reset cell attributes for the cell

* refactor: update method name to clear_attributes

* termwiz: update version because public method has been added

Update termwiz version because a new method 'reset_attributes' has been
added in termwiz/src/cell.rs

* fix: update get_lines method in quickselect to be same as with_lines_mut

* termwiz: simpler method name, implementation to clear cell attributes

Use simpler method name and implementation as per suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966596988

* refactor: clear cell attributes for every line if flag is set

Clear attributes for every line if the configuration option
disable-attributes-for-non-matching-text-in-quick-select has been set
Partially implement changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966597826

* refactor: replace for loop with for_each method to iterate through cells

Partially implement changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966597826

* refactor: rename configuration option to quick_select_remove_styling

Rename option to remove styling in quick select from
'disable_attributes_for_non_matching_text_in_quick_select' to
'quick_select_remove_styling'
Implement changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966598496

* fix: remove bold attribute when displaying quick select label, match

This is in order to raise this in a separate PR

Suggestion mentioned here
https://github.com/wezterm/wezterm/pull/6683#issuecomment-2676394535

* docs: update documentation for quick_select_remove_styling

* termwiz: just bump minor part

Since the only change in termwiz is addition of a public method, it
should be forward compatible, so we can just bump the minor part

Apply changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966600258

* fix: clear attributes for each cell in all lines in get_lines method

Apply changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966848308

* fix: clear appdata for line after clearing attributes of each cell

Move call to clear appdata for line after the call to clear attributes
from each cell when configuration option 'quick_select_remove_styling'
is enabled
Apply changes mentioned in suggestion
https://github.com/wezterm/wezterm/pull/6683#discussion_r1966848015
2025-02-23 15:37:09 -07:00
Wez Furlong 4ff581a8aa docs: changelog for 6248
closes: #5806
closes: #5346
2025-02-23 06:24:04 -07:00
Wez Furlong 912ca6ad7a docs: changelog for #6704
closes: #6671
2025-02-22 14:18:33 -07:00
Wez Furlong edde66155f docs: fixup windows logo on downloads page
It looks like the windows logo was removed from the simpleicons
collection, replace with the fontawesome brands alternative.
2025-02-22 13:30:42 -07:00
Wez Furlong d363c115b6 docs: fix tags page
How tags work was changed in upstream mkdocs, so update here to fix it
up.
2025-02-22 13:24:20 -07:00
Wez Furlong a2fc1c2123 docs: changelog for #5759 2025-02-22 08:18:42 -07:00
Ryan Zimmermanandvolskaya c6b67877b6 Add option to extend the osx non-native fullscreen behind the notch to the top of the screen (#5759)
* Adding an option (disabled by default) to disable the notch avoidance so you can use the full screen if your terminal config already handles the notch.

Co-authored-by: volskaya <38878482+volskaya@users.noreply.github.com>
2025-02-22 08:17:33 -07:00
Thomas Klausner 287b97456f Adapt get-deps for NetBSD, and add NetBSD installation instructions. 2025-02-22 05:37:27 -08:00
Wez Furlong ee0c04e735 docs: add missing version info for window_content_alignment 2025-02-13 13:33:49 -07:00
Wez Furlong 2471433d1f docs: changelog for #6661 2025-02-11 13:20:37 -07:00
Wez Furlong 488dd37239 docs: cooler looking example for progress state 2025-02-09 21:21:44 -07:00
Wez Furlong 874750e34c update nerdfonts to 3.3.0 2025-02-09 20:36:44 -07:00
Wez Furlong 0c7a8fc816 docs: fix build 2025-02-09 18:43:42 -07:00
Wez Furlong fa63a66b66 docs: fix formatting 2025-02-09 18:43:24 -07:00
Wez Furlong 44866cc137 new: ConEmu progress reporting OSC sequence
This commit parses and captures the progress state as set by
ConEmu style progress reporting escape sequences.

Changes to the state will propagage through the mux via the
existing MuxNotification Alert system, and should also transit
across multiplexer connections.  However, there is no separate
multiplexer state transfer for the progress state, so reconnecting
to a mux in the middle of a progress sequence will show as None
for the progress state, until the next update occurs.

Aside from propgating and exposing the state to lua via PaneInformation
and a Pane::get_progress method, wezterm doesn't do anything with
the progress information at this time.

This commit includes an example of how you might customize your
tab title to reflect the progress in the active pane.

refs: https://github.com/wezterm/wezterm/issues/6581
2025-02-09 18:26:23 -07:00
Wez Furlong 10a145773f docs: changelog for #6029 2025-02-09 13:32:55 -07:00
Wez Furlong 300ebd1875 docs: mention plugin docs in the changelog
refs: #6188
2025-02-09 13:32:02 -07:00
Alec Clews 2bf84fb100 Fix typo 2025-02-09 13:15:13 -07:00
Alec Clews f541b0fe9c Changes after code review -- improve links and tips 2025-02-09 13:15:13 -07:00
Alec Clews 20a44962d6 Add reference material for plugin module
Addresses https://github.com/wez/wezterm/issues/6177
2025-02-09 13:15:13 -07:00
Alec Clews 5f0614f148 Refinie content
1. Remove references to my specific example repo
2. Improve Lua code
2025-02-09 13:15:13 -07:00
Alec Clews 05b510890c Added new page to describe Plugins.
WIP for review

TODO:

1. Add a section to the reference for `wezterm.plugins`
2. Create a plugin starter project

https://github.com/wez/wezterm/issues/6177
2025-02-09 13:15:13 -07:00
Wez Furlong 0eed1166a3 docs: changelog for #6606 2025-02-09 13:08:35 -07:00
mgpinf 4c32d6fd50 Add help_text and fuzzy_help_text arguments to ShowLauncherArgs (#6606)
* feat: add help_text, fuzzy_help_text arguments in ShowLauncherArgs

Add help_text, fuzzy_help_text optional arguments in ShowLauncherArgs.
Similar to description, fuzzy_description arguments present in
InputSelector.
If help_text argument is not provided, default value of `"Select an item
and press Enter=launch Esc=cancel  /=filter"` is displayed
If fuzzy_help_text argument is not provided, default value of `"Fuzzy
matching: "` is displayed

* docs: update documentation for ShowLauncherArgs

* perf: pass LauncherActionArgs struct rather than reference

Since fields are being cloned in the callee function, pass the struct
rather than reference to it.
2025-02-09 13:05:54 -07:00
Wez Furlong a441669a36 docs: missing entry for updated freetype 2025-02-09 13:01:22 -07:00
Wez Furlong 10a5a4c232 deps: update harfbuzz to 10.2.0 2025-02-09 12:59:51 -07:00
Wez Furlong 9270da12c5 update libssh to 0.11.1
refs: https://github.com/wezterm/wezterm/pull/6156
2025-02-09 12:53:31 -07:00
Wez Furlong 6fe9d01e65 ci: remove fedora 38
It's EOL

refs: https://github.com/wezterm/wezterm/pull/6156
2025-02-09 12:24:08 -07:00
Wez Furlong 9abf85cabf macOS: switch to UNUserNotificationCenter for toast notifs
I want to move all the objc stuff over to the objc2 crate.

The older notification center is deprecated and doesn't
have any bindings that are supported by the objc2 crate.

This is mostly straightforward, except I lost hours running
down the delegate was being dropped. Best guess is that
there's some autorelease pool magic that I don't understand;
I tried stashing the object into a global but that still didn't
keep it retained.

In the end, the simplest solution is to take it out of its
Retained wrapper and just leak it; it doesn't hold any
meaningful amount of data anyway, but it is vital to keep
it alive for the notification center callbacks to trigger.

Note that UNUserNotificationCenter requires that the application be
code-signed in order to function. I don't like this, but that's the way
that apple want it: sponsors are supporting the cost of my apple
developer account to enable this.
2025-02-09 09:50:12 -07:00
Wez Furlong a3b4d5e85a docs: changelog for #6405 2025-02-08 19:40:37 -07:00
nhurlockandWez Furlong b374d383ce QuickSelectArgs: optionally bypass custom action on paste (#6405)
* QuickSelectArgs: optionally bypass performing action on paste

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-02-08 19:38:40 -07:00