Now that WezTerm uses UNUserNotificationCenter, it needs to have
a proper app bundle. Rather than symlinking from `WezTerm.app/`
to `bin/`, do it the other way around.
Alternatives to symbolic links such as copies, hard links, or clones
also will not work when WezTerm is invoked from the command line
(i.e. as `.../bin/wezterm`).
The tmux control code support depends on `pest`, which might be a
dependency that some projects won't need. This change makes it
optional with a Cargo feature. It's default on to maintain compatibility.
This is the same version that is captured in the lock file,
but that lock file doesn't get propagated through to eg: termwiz
when published on crates.io.
Let's be explicit that we need this version because 2.1 doesn't
compile the `continue` token in our pest file:
https://github.com/wezterm/wezterm/pull/6810#issuecomment-2739610838
We don't need to check if the alphabet includes 'j', 'k' because if a
character is included in the alphabet, the code corresponding to the
first arm is executed
* 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_r1986085350https://github.com/wezterm/wezterm/pull/6696#discussion_r1986085949
refs: https://github.com/wezterm/wezterm/issues/1422
refs: https://github.com/wezterm/wezterm/issues/6637
When we encounter a zero-width grapheme we need to be
a little bit smarter about how we handle it.
In the original implementation we'd unconditionally
remap these graphemes into a cell, effectively making
them appear as a blank cell with width of one.
Later we discovered that eg: BIDI control characters
should not be forced to display in this way, so the
logic was changed to elide these graphemes from the
model.
Subsequently we've found that the unicode line separator
should be treated as a blank. The unicode FAQ says
that any character that has the White_Space property
should be treated that way.
This commit applies that logic: if we get a zero-width
grapheme, if it is white space we'll force it to
have a width of 1, otherwise we'll elide it from
the model.
This probably is still not perfect, but hopefully
balances things out to be good enough, at least
until we find an example of where it isn't the right call!
These are not really expected to be used by most applications.
They are being added to the cell module to support some higher
level checks as part of trying to handle these wezterm issues
a bit better:
https://github.com/wezterm/wezterm/issues/1422https://github.com/wezterm/wezterm/issues/6637
These functions use the White_Space properties as defined by
the UCD version 16.
I'm using the trie form of the data here because I'm already
using the ucd-trie module on other properties. The dataset
for White_Space is quite small, and is probably fine to use
a binary search on the non-ucd form of the data, I just didn't
have an example of that code hanging around and didn't want
to have to get distracted debugging that; I somehow always
end up with an off-by-one somewhere when hooking up a binary
search for the first time!
This commit has no functional impact on termwiz or any
other crate in the wezterm repo.
* 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>