Wez Furlong
82d825ab37
split padding out from truncation
...
This makes these functions a bit more composable!
Heads up @jankatins; this is a breaking change (for the better!)
refs: https://github.com/wez/wezterm/issues/647
2021-05-01 18:26:53 -07:00
Wez Furlong
e119313e37
ssh: add basic support for Match Host, Match User in ssh_config parser
2021-05-01 08:53:51 -07:00
Wez Furlong
bc0766396d
use -$SHELL
rather than $SHELL -l
to trigger a login shell
...
Since the original code was written, Rust grew and stabilized
an interface for specifying argv0 for the child process, so
we can remove the fragile `-l` argument passing.
refs: https://github.com/wez/wezterm/issues/753
2021-05-01 07:31:35 -07:00
Wez Furlong
d4da670294
docs for and minor tweak of curly underline improvement
...
refs: https://github.com/wez/wezterm/pull/733
2021-04-30 09:22:01 -07:00
Wez Furlong
acb4df4934
term: clear mouse button when focus is lost
...
refs: https://github.com/wez/wezterm/issues/744
2021-04-27 08:38:40 -07:00
Wez Furlong
45262c3091
macos: fix numpad enter key reporting
...
refs: https://github.com/wez/wezterm/issues/739
2021-04-27 07:39:10 -07:00
Wez Furlong
e9fcc98d4a
quickselect: allow pasting when typing the uppercase prefix
...
revise the colors to be a bit less glaring.
Updated the screenshot
refs: https://github.com/wez/wezterm/issues/732
2021-04-27 07:06:55 -07:00
Wez Furlong
bc6f93ccf0
docs: changelog for #742
...
refs: https://github.com/wez/wezterm/pull/742
2021-04-27 06:27:15 -07:00
Wez Furlong
c4dc358282
add truncate_left_to_width
...
refs: #647
2021-04-27 06:23:19 -07:00
Wez Furlong
7e996950f6
add wezterm.truncate_to_width
...
refs: https://github.com/wez/wezterm/issues/647
2021-04-26 22:27:12 -07:00
Wez Furlong
d176af9c30
tidy up format-tab-title, add tab_max_width parameter
...
refs: https://github.com/wez/wezterm/issues/647
2021-04-26 21:43:30 -07:00
Wez Furlong
be9c60bfc8
removed tab_bar_style options in favor of format-tab-title
...
refs: https://github.com/wez/wezterm/issues/647
2021-04-26 20:16:47 -07:00
Wez Furlong
0f2f3734d9
add wezterm.column_width
...
refs: https://github.com/wez/wezterm/issues/647
2021-04-26 20:10:27 -07:00
Wez Furlong
32c2aa03d2
docs: third time's the charm!
2021-04-25 22:45:36 -07:00
Wez Furlong
5c96dab2e0
docs: fixup screenshot path
2021-04-25 22:38:52 -07:00
Wez Furlong
a554acc5d0
docs: add screenshot for quickselect
2021-04-25 22:36:41 -07:00
Wez Furlong
3028756ccb
add tab_bar_at_bottom config option
...
closes: https://github.com/wez/wezterm/issues/278
2021-04-25 20:49:48 -07:00
Wez Furlong
f3706c706c
de-hover tab when moving cursor down into the terminal
...
It's not perfect; this only handles the case where you move down
into the terminal. I couldn't easily make the same thing happen
when moving the mouse up or left outside of the window. It's
probably fixable but this is better than it was.
closes: https://github.com/wez/wezterm/issues/591
2021-04-25 17:01:21 -07:00
Wez Furlong
8ce376753f
round out quick select mode
...
* Make alphabet and patterns configurable
* add docs
* Enhance scrollback search to support regex captures so that
searching for eg: `fo(o)` will select the last `o` in `foo`.
refs: https://github.com/wez/wezterm/issues/732
2021-04-25 16:27:39 -07:00
Wez Furlong
87677a73bf
Add support for iTerm2's SetUserVar escape
...
This doesn't propagate across wezterm's mux protocol
at this time.
refs: https://github.com/wez/wezterm/issues/647
https://iterm2.com/documentation-scripting-fundamentals.html#setting-user-defined-variables
2021-04-25 14:30:06 -07:00
Wez Furlong
1cb2856223
add hover parameter to format-tab-title
...
refs: https://github.com/wez/wezterm/issues/647
2021-04-25 13:53:06 -07:00
Wez Furlong
a69447fc2a
nominally support toast notif timeouts
...
I've built this on linux, which doesn't respect the timeout.
I've made speculative changes that should build on mac and windows,
but that don't plumb the timeout functionality on those systems
as of yet.
refs: #619
2021-04-25 08:52:43 -07:00
Wez Furlong
5b281c42b9
docs: changelog for https://github.com/wez/wezterm/issues/729
2021-04-25 08:15:07 -07:00
Wez Furlong
2c89e47f9e
add force_reverse_video_cursor option
...
refs: https://github.com/wez/wezterm/issues/706
2021-04-24 21:16:58 -07:00
Wez Furlong
09e101c268
add format-tab-title event
...
refs: https://github.com/wez/wezterm/issues/647
2021-04-24 17:59:39 -07:00
Wez Furlong
e3fcdc9f36
add format-window-title event
...
This provides a flexible way for users to customize what gets
shown in the window title bar.
closes: https://github.com/wez/wezterm/pull/603
2021-04-24 16:47:26 -07:00
Wez Furlong
87d49e45fc
fix: multi-glyph tab titles
...
closes: https://github.com/wez/wezterm/issues/711
2021-04-23 22:51:53 -07:00
Wez Furlong
52b57ca512
fix splitting panes while a pane is zoomed
...
closes: https://github.com/wez/wezterm/issues/723
2021-04-23 22:32:47 -07:00
Wez Furlong
d705886b53
Add pane_focus_follows_mouse
...
closes: https://github.com/wez/wezterm/issues/600
2021-04-23 22:17:33 -07:00
Wez Furlong
657ed92d82
add swallow_mouse_click_on_pane_focus option
...
refs: https://github.com/wez/wezterm/issues/724
2021-04-23 22:17:06 -07:00
Wez Furlong
501836fece
docs: changelog for https://github.com/wez/wezterm/issues/714
2021-04-23 19:11:59 -07:00
Wez Furlong
d6cfa9c610
fix a possible panic when word-selecting off the top of viewport
...
refs: https://github.com/wez/wezterm/issues/713
2021-04-23 19:10:26 -07:00
Wez Furlong
115fb1e6d4
docs: mention window width/height
...
refs: #256
2021-04-23 17:45:55 -07:00
Wez Furlong
2a79d2506d
docs: fix typo
...
closes: https://github.com/wez/wezterm/issues/700
2021-04-17 11:57:48 -07:00
Wez Furlong
76353a6240
fix: InputMap reading global config instead of window overrides
...
refs: #656
2021-04-16 08:59:49 -07:00
Wez Furlong
aea4fd5020
macos: ensure window is always miniaturizable
...
We need to keep the miniaturizable flag in even when there is no
titlebar, otherwise the miniaturize action has no effect.
2021-04-15 18:12:14 -07:00
Wez Furlong
27f4c01ea1
docs: a couple of changelog updates
2021-04-15 17:36:22 -07:00
Wez Furlong
1b12b0a23d
fonts: improve font_rules behavior
...
We now always append the synthetic rules to the those in the config,
and include rules for generating half-bright font selection.
2021-04-15 09:43:24 -07:00
Wez Furlong
d5886e6297
changelog for fixing mouse cursor hiding
...
closes: https://github.com/wez/wezterm/issues/618
2021-04-14 19:42:22 -07:00
Wez Furlong
adbe545d44
fix window vanishing when a tab is closed
...
We weren't fixing up the active tab position correctly after removing
a tab. I think this bug crept in around the ActivateLastTab changes.
We now try harder to set active idx back to the tab that was active
prior to the remove, and ensure that we set the active index to
something within range if it was the active tab that was removed.
Refs: https://github.com/wez/wezterm/issues/690
2021-04-13 08:18:52 -07:00
Wez Furlong
776aedf97e
fonts: allow specifying weight/stretch/italic for each fallback font
2021-04-12 22:30:55 -07:00
Wez Furlong
fcd7ceef5c
docs: add missing docs for selection_fg and selection_bg
...
refs: https://github.com/wez/wezterm/issues/684
2021-04-12 09:55:35 -07:00
Wez Furlong
ca1a261892
docs: changelog for https://github.com/wez/wezterm/issues/614
2021-04-11 22:37:32 -07:00
Wez Furlong
e5665e80a1
add window:toast_notification method
...
refs: https://github.com/wez/wezterm/issues/619
2021-04-11 22:01:06 -07:00
Wez Furlong
406d1044fa
fonts: restore messaging about missing glyphs
...
Now that all platforms know whether the system fallbacks
covered the requested glyph range, it is reasonable to
restore the configuration error window to advise the user
if they are missing fonts for the text they want to display.
refs: https://github.com/wez/wezterm/issues/671
2021-04-10 21:35:58 -07:00
Wez Furlong
33ca16df44
docs: changelog for recent font unload/stream/mmap improvements
2021-04-10 14:18:30 -07:00
Wez Furlong
1415d16c9f
window: x11: explicitly set titles in utf8
...
closes: https://github.com/wez/wezterm/issues/673
2021-04-10 07:44:51 -07:00
Wez Furlong
438b7540ba
docs: typo
2021-04-09 22:05:16 -07:00
Wez Furlong
21ce3f3262
docs: clean up the font documentation
...
Migrate information into the relevant config option pages, and
instead summarize with a demonstration of configuring the font.
For wezterm.font, there's now an expanded discussion on naming
and matching fonts.
closes: https://github.com/wez/wezterm/issues/560
2021-04-09 21:52:25 -07:00
Wez Furlong
7524dc3826
changelog for #667
...
closes: https://github.com/wez/wezterm/issues/667
2021-04-09 19:53:38 -07:00
Wez Furlong
6a817fd26e
changelog for https://github.com/wez/wezterm/issues/668
...
closes: https://github.com/wez/wezterm/issues/668
2021-04-09 19:52:26 -07:00
Wez Furlong
99fc3ee3cd
fonts: rename width/FontWidth to stretch/FontStretch
...
This terminology is consistent with that used in CSS to describe
this same property of the font.
2021-04-09 12:00:18 -07:00
Wez Furlong
ecc500af05
ssh: don't override the ssh config User value
2021-04-08 16:17:49 -07:00
Wez Furlong
dcf41d7338
docs: freetype_render_target
...
refs: #639
2021-04-08 15:52:06 -07:00
Wez Furlong
43ea2f192a
Allow matching font weight and font width in wezterm.font
...
refs: https://github.com/wez/wezterm/issues/655
2021-04-08 15:42:53 -07:00
Wez Furlong
c14ec06ff6
docs: changelog for #655
2021-04-08 12:47:04 -07:00
Wez Furlong
b689d192c6
docs: changelog for #661
2021-04-08 12:45:22 -07:00
Glenn Waters
5c7e07bb60
Update docs/config/lua/window/get_dimensions.md
...
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2021-04-07 19:00:28 -07:00
Glenn Waters
84a9cd6da3
Create get_dimensions.md
...
Missing document.
Was not sure how to populate "Since" from the git has. Here is the commit: ba5d50ba9e
2021-04-07 19:00:28 -07:00
Wez Furlong
5cd414244d
docs: link to the macports port page for wezterm
2021-04-07 10:36:03 -07:00
Herby Gillot
e1d07dee62
docs: add info on installing via MacPorts
2021-04-07 10:34:22 -07:00
Wez Furlong
a1aa6e3d6c
docs: try to steer away from Allsorts shaper
...
It isn't finished, and I've seen a few people try to use it.
Make it clearer that they probably shouldn't use it.
refs: https://github.com/wez/wezterm/issues/66
refs: https://github.com/wez/wezterm/issues/587
2021-04-07 08:51:32 -07:00
Wez Furlong
fc20c6a047
docs: changelog for #639
...
refs: #639
2021-04-07 08:46:45 -07:00
Wez Furlong
81946d0144
fix under-invalidation of the selection
...
The repro scenario for this case was:
* open GNU nano
* hit enter twice
* type hello
* move the text cursor to the top line
* double click on hello
* hit enter
Prior to this commit, the selection would remain on the now-blank line
that previously held `hello`.
refs: #644
2021-04-07 08:43:45 -07:00
Wez Furlong
b8c2b309fe
docs: changelog update for 20210405-110924-a5bb5be8
2021-04-05 11:42:30 -07:00
Wez Furlong
e0da31f2e3
docs: changelog for #648
2021-04-05 11:11:11 -07:00
Wez Furlong
97d4de80ba
docs: update for wezterm being promoted to the Arch Community repo
2021-04-04 17:33:11 -07:00
Wez Furlong
8ab9468ba5
docs: revise wording about the nightly builds
2021-04-04 11:31:06 -07:00
Wez Furlong
7be590ecc0
docs: update for 20210404-112810-b63a949d release
2021-04-04 11:30:58 -07:00
Wez Furlong
b63a949df8
config: fix wezterm.config_dir, add wezterm.config_file
...
refs: https://github.com/wez/wezterm/discussions/635#discussioncomment-567968
2021-04-04 08:53:50 -07:00
Wez Furlong
c22765c1a7
docs: changelog updates
2021-04-03 15:14:44 -07:00
Wez Furlong
7deb215303
macos: recognize CTRL-Tab
...
macOS only sends key up events for this, so we remap them to
key down events.
closes: https://github.com/wez/wezterm/issues/630
2021-04-03 11:29:03 -07:00
Wez Furlong
708b383791
docs: mention transparent in the window opacity docs
...
This should make it easier for folks to find this feature if they
are searching for transparent as a keyword.
refs https://github.com/wez/wezterm/issues/626
2021-04-03 05:14:02 -07:00
Wez Furlong
2dfba9aff7
docs: fix CLTR -> CTRL typo
...
closes : #625
2021-04-03 05:05:07 -07:00
Shawn Xu
bf4a64f7d5
move sudo into script to not use sudo for rust checking
2021-04-02 22:36:27 -07:00
Wez Furlong
298e0b8d76
hide mouse cursor each time we send key input to a pane
...
Mouse movement will show the cursor again.
macOS: fix hiding the cursor
refs: https://github.com/wez/wezterm/issues/618
2021-04-02 22:34:58 -07:00
Sandro
d179da3e87
docs/hyperlinks: revert s -> S
...
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2021-04-02 21:05:47 -07:00
Sandro
d6a08d0e6e
docs/hyperlinks: fix invalid escape sequence
2021-04-02 21:05:47 -07:00
Wez Furlong
547b58f223
docs: clarify that all config dirs apply on all operating systems
...
refs: https://github.com/wez/wezterm/issues/622
2021-04-02 21:01:13 -07:00
Wez Furlong
47e62cc243
Avoid confusing error when the font has no bold/italic variant
...
refs: https://github.com/wez/wezterm/issues/617
2021-04-02 17:59:27 -07:00
Wez Furlong
f2334fc46c
docs: changelog for https://github.com/wez/wezterm/issues/609
...
closes: https://github.com/wez/wezterm/issues/609
2021-04-02 17:37:11 -07:00
Wez Furlong
4a3e0615f5
tweak ActivateLastTab and add a changelog entry for it
...
refs: https://github.com/wez/wezterm/pull/610
2021-04-02 09:29:52 -07:00
Alex Gartrell
ee4b4b598c
Add ActivateLastTab command
...
This replicates `last-window` in tmux. To pull this off, I
deliberately store the last tab whenever I'm activating a new one or
spawning a new one. I had to do this explicitly rather than hooking
set_active, because we end up setting the active tab briefly for some
common operations like moving a tab.
2021-04-02 09:14:59 -07:00
Wez Furlong
62f7589066
docs: fix typo in ssh docs
2021-04-02 08:57:39 -07:00
Wez Furlong
c4cac94aab
docs: changelog for https://github.com/wez/wezterm/pull/599
2021-04-01 08:44:04 -07:00
Wez Furlong
0e581b151f
docs: changelog and ssh doc updates
2021-03-29 07:46:14 -07:00
Wez Furlong
c6308202cb
hyperlinks, selection by word and line deal with wrapping better
...
These now operate in terms of logical lines so they deal with
lines that have wrapped outside the viewport better than in
previous releases.
closes: https://github.com/wez/wezterm/issues/408
2021-03-26 14:52:00 -07:00
Wez Furlong
0643e8b0ed
add window:get_selection_text_for_pane
...
refs: https://github.com/wez/wezterm/issues/575
2021-03-25 22:10:29 -07:00
Wez Furlong
dbd7fc28a5
Raise minimum Rust version to 1.51, de-vendor openssl on unix
...
Rust 1.51 allows addressesing a long-standing TODO which was that we
shouldn't need to build a vendored copy of openssl on most sensible unix
systems.
We do require a vendored copy on macOS and Windows, but due to the way
that Cargo's feature resolver worked, it wasn't possible for this
requirement to be respected.
Rust 1.51 introduces `resolver="2"` which can deal with this feature
resolution!
https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
The upshot of this is that building wezterm on real unix systems that
are not macos will now link against the system libssl, resulting in both
a shorter compile time and less headaches arising from having a slightly
different openssl used by wezterm than the rest of the system.
cc: @jsgf
2021-03-25 09:43:50 -07:00
Wez Furlong
eefdb667d5
changelog for #508
...
closes: https://github.com/wez/wezterm/issues/508
2021-03-23 20:01:27 -07:00
Wez Furlong
8d4138bca6
fix X10 mouse encoding issue
...
This manifests under GNU screen when the window is large.
cc: @babar
2021-03-23 11:09:56 -07:00
Wez Furlong
3cf7c9c3c2
refine skip_close_confirmation_for_processes_named to look at proc tree
...
That means that we won't be fooled by a shell with a backgrounded
editor.
refs: https://github.com/wez/wezterm/issues/562
2021-03-22 21:34:10 -07:00
Wez Furlong
785645cd86
changelog for https://github.com/wez/wezterm/issues/572
...
closes: https://github.com/wez/wezterm/issues/572
2021-03-22 14:10:17 -07:00
Wez Furlong
4d4fa35557
skip_close_confirmation_for_processes_named now also works on macos
...
refs: https://github.com/wez/wezterm/issues/562
2021-03-22 12:57:36 -07:00
Wez Furlong
ad4b3b4648
add skip_close_confirmation_for_processes_named option
...
Currently only respected on linux.
refs: https://github.com/wez/wezterm/issues/562
2021-03-22 12:42:46 -07:00
Wez Furlong
7ace4d1efb
docs: clarify how to disable per-tab close prompts
...
https://github.com/wez/wezterm/issues/562
2021-03-22 11:51:56 -07:00
Wez Furlong
b27e4ce2b2
keys: CMD-Q for QuitApplication is now a default on macos
2021-03-22 11:43:53 -07:00
Wez Furlong
22522dc39e
render more symbol/icon/emoji at double width by default
...
Default `allow_square_glyphs_to_overflow_width="WhenFollowedBySpace"`,
and expand its meaning from mostly square glyphs to glyphs that are
also wider than they are tall.
refs: https://github.com/wez/wezterm/issues/565
2021-03-22 11:36:45 -07:00
Wez Furlong
510580bc48
docs: changelog updates
...
closes: https://github.com/wez/wezterm/issues/506
Refs: https://github.com/wez/wezterm/issues/546
2021-03-21 20:12:46 -07:00
Wez Furlong
70d2351b7d
docs: changelog for https://github.com/wez/wezterm/issues/542
...
closes: https://github.com/wez/wezterm/issues/542
2021-03-21 20:05:48 -07:00