This is a partial implementation of keepalives; it has the good
part (the sending of the packet on the requested interval), but
not the other part (disconnecting if we don't hear anything after
some number of packets).
The reason for not having the latter is that it isn't obvious to me how
to expose whether the channel had more incoming packets since sending
the ignore, so we cannot confidently act to terminate the connection.
refs: https://github.com/wezterm/wezterm/issues/4023
* feat(mark-last-tab): append last tab name with '*'
I think there should be a better method instead of make the save function so crowded.
But this works for now similar to `tmux` windows. But, `tmux` is using '*' for current and '-' for last
Hardcoded '*'
* Revert "feat(mark-last-tab): append last tab name with '*'"
This reverts commit 6f11c16dd9b034977088820fbc86a4456df9d513.
* feat(tab): add is_last to indicate previous active tab - last tab.
Add usage example to format-tab-title.md
Add docs to TabInformation.md
Couldn't add tests, perhapse can you guide on adding test for this?
* Update docs/config/lua/TabInformation.md
renaming as suggested.
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* Update wezterm-gui/src/termwindow/mod.rs
renaming as suggested.
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* Update docs/config/lua/window-events/format-tab-title.md
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* refactor: rename `TabInformation` attribute to `is_last_active`
---------
Co-authored-by: Omar Elmasri <omarmasri@duck.com>
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* 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
* 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>
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
* 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>
* 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>