Wez Furlong
a697b30223
window: add xsettings support on X11 systems
...
This allows reading xsettings which contain information about
both the active theme as well as the DPI.
refs: #947
2021-07-18 12:54:52 -07:00
Wez Furlong
88a2162823
docs for wayland window_frame config options
...
closes #761
2021-07-17 09:37:13 -07:00
Wez Furlong
ac5199c216
config: add bypass_mouse_reporting_modifiers option
...
This allows changing eg: SHIFT to ALT for bypassing mouse reporting.
refs: https://github.com/wez/wezterm/issues/911
2021-07-11 22:02:23 -07:00
Benoit de Chezelles
4f7b21d532
docs: Add note on issues with binding mouse Up event only
2021-07-04 09:53:57 -07:00
Wez Furlong
c61ac590f8
docs: fixup markdown on the mouse binding page
2021-06-30 07:52:01 -07:00
Wez Furlong
cc19aaca9f
revise skip_close_confirmation_for_processes_named for Windows
...
closes : #843
2021-06-10 07:39:00 -07:00
Wez Furlong
cb4da18021
key assignment and docs for ShowDebugOverlay
...
refs: https://github.com/wez/wezterm/issues/641
2021-05-30 19:56:11 -07:00
Wez Furlong
db45238769
improve exit_behavior messaging
...
The status information now explains the exit status and the
exit_behavior, as well as links to the docs on exit_behavior.
refs: https://github.com/wez/wezterm/issues/795
2021-05-15 08:32:29 -07:00
Kerfuffle
258038cd16
docs: Correct Lua example for PasteFrom action. ( #773 )
2021-05-09 06:54:09 -07:00
Wez Furlong
9a1314c5b1
docs: changelog for voidsymbol
2021-05-07 07:59:26 -07:00
Chris
2add312c5c
Allow VoidSymbol keycode to be seen by wezterm ( #759 )
...
* allow voidsymbol for key code
* update docs, cleanup
* cleanup and fmt of files
* remove unnecessary inputs
2021-05-07 07:54:24 -07:00
Wez Furlong
0e9d86f9f9
lua: print -> log_info
...
Make print equivalent to log_info.
Improve the various log functions so that all of their arguments
are considered.
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:52 -07:00
Frieder Bluemle
0b84df38db
Fix docs typos
2021-05-02 19:44:29 -07:00
Wez Furlong
fbcea3a2f4
docs: update for 20210502-154244-3f7122cb
2021-05-02 16:13:32 -07:00
Wez Furlong
3d70949d1b
docs: fix typo
2021-05-02 07:29:43 -07:00
Wez Furlong
04c083ee8a
docs: for use_cap_height_to_scale_fallback_fonts option
2021-05-01 19:50:31 -07:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Daniel Lemm
5805928081
docs: fix typo
2021-03-20 09:27:21 -07:00
Wez Furlong
46227a741f
docs: update for version 20210314-114017-04b7cedd
2021-03-14 11:55:12 -07:00
Wez Furlong
9ddc2da625
docs: document styling the tab bar elements
...
refs: https://github.com/wez/wezterm/issues/500
2021-03-12 09:23:00 -08:00
Wez Furlong
f6c37ae371
increase default font size to 12 points
2021-03-10 19:43:02 -08:00
Wez Furlong
da2239f1be
docs: fixup screenshot links
...
refs: #500
2021-03-10 19:32:23 -08:00
Wez Furlong
d853be02ad
docs: for the new status bar feature
...
refs: https://github.com/wez/wezterm/issues/500
2021-03-10 19:29:17 -08:00
Wez Furlong
fc3ebcedc1
docs: improve SEO for finding how to specify window size
2021-03-10 00:12:28 -08:00
Wez Furlong
229df874b7
docs: break out events into their own pages
...
Take the existing open-uri docs and move to their own page.
Add docs for the new window events.
2021-03-09 21:50:48 -08:00
Wez Furlong
354a12a0ff
docs: mention the CLI config overrides and per-window overrides
2021-03-09 21:26:03 -08:00
Wez Furlong
8f3b8586b0
docs: changelog for https://github.com/wez/wezterm/issues/515
...
closes: https://github.com/wez/wezterm/issues/515
closes: https://github.com/wez/wezterm/issues/523
2021-03-09 21:13:17 -08:00
Wez Furlong
64a0aab3be
docs: mention F1-F24 as available keys
...
closes: https://github.com/wez/wezterm/issues/521
2021-03-09 07:47:27 -08:00
Benoit de Chezelles
abcc73fd22
Extract doc of treat_left_ctrlalt_as_altgr and leave a reference
2021-03-07 12:52:03 -08:00
Benoit de Chezelles
683d8e96e8
windows: Add option to treat left ctrl-alt as altgr
...
The previous behavior was to always treat ctrl-alt as altgr on Windows,
this has been done to better support altgr through a VNC session,
but this is very unintuitive when you don't need this behavior.
ref: #472
2021-03-07 12:52:03 -08:00
Wez Furlong
ec12eed180
docs: migrate misc.md to individual config pages
2021-03-07 00:10:28 -08:00
Wez Furlong
90eb69f68a
docs: add wezterm.battery_info docs with an example
...
refs: https://github.com/wez/wezterm/issues/500
2021-03-06 16:42:31 -08:00
Wez Furlong
014acf1a4a
add docs for window decoration stuff
2021-03-06 11:32:15 -08:00
Wez Furlong
ff8bda29e3
lua: add wezterm.strftime
...
refs: https://github.com/wez/wezterm/issues/500
2021-03-02 09:52:54 -08:00
Wez Furlong
565a4c69d5
lua: add wezterm.format function
...
The intent is to use this to compose text for a configurable tab bar.
refs: https://github.com/wez/wezterm/issues/500
2021-03-02 09:52:54 -08:00
Wez Furlong
62e14efcb3
lua: add log_info and log_warn
2021-03-02 09:52:54 -08:00
Wez Furlong
522d4ad814
make exit_behavior = "CloseOnCleanExit" the default
...
It seems generally useful and non-intrusive, so do that.
2021-02-28 12:01:07 -08:00
Wez Furlong
0597684ebd
Render custom block glyphs
...
As explained in the docs included in this commit, ideally this
wouldn't be needed, but due to a long-standing hinting bug in
freetype <https://gitlab.freedesktop.org/freetype/freetype/-/issues/761 >
it seems most expedient to just render our own block glyphs,
so that's what this does!
refs: #433
2021-02-28 09:43:26 -08:00
Wez Furlong
db08b8c1dc
add window:set_config_overrides lua method
...
This commit expands on the prior commits to introduce the concept
of per-window configuration overrides.
Each TermWindow maintains json compatible object value holding
a map of config key -> config value overrides.
When the window notices that the config has changed, the config
file is loaded, the CLI overrides (if any) are applied, and then
finally the per-window overrides, before attempting to coerce
the resultant lua value into a Config object.
This mechanism has some important constraints:
* Only data can be assigned to the overrides. Closures or special
lua userdata object handles are not permitted. This is because
the lifetime of those objects is tied to the lua context in which
they were parsed, which doesn't really exist in the context of
the window.
* Only simple keys are supported for the per-window overrides.
That means that trying to override a very specific field of
a deeply structured value (eg: something like `font_rules[1].italic = false`
isn't able to be expressed in this scheme. Instead, you would
need to assign the entire `font_rules` key. I don't anticipate
this being a common desire at this time; if more advance manipulations
are required, then I have some thoughts on an event where arbitrary
lua modifications can be applied.
The implementation details are fairly straight-forward, but in testing
the two examplary use cases I noticed that some hangovers from
supporting overrides for a couple of font related options meant that the
window-specific config wasn't being honored. I've removed the code that
handled those overrides in favor of the newer more general CLI option
override support, and threaded the config through to the font code.
closes : #469
closes : #329
2021-02-27 14:53:19 -08:00
Wez Furlong
60be1a98a0
lua: add window::effective_config() method
...
Expose the current window configuration to lua scripts.
refs: https://github.com/wez/wezterm/issues/469
2021-02-27 12:39:22 -08:00
Wez Furlong
02828c708a
docs: fix a typo, expand exit_behavior example
2021-02-27 00:24:23 -08:00
Wez Furlong
697a6abd04
add exit_behavior config option
...
`exit_behavior = "Hold"` will keep the pane alive until explicitly
closed. More details in the docs that are part of this commit.
refs: https://github.com/wez/wezterm/issues/499
2021-02-27 00:15:51 -08:00
Wez Furlong
181ed704c9
docs for freetype_load_target and deprecation of font_antialias
...
refs: #491
2021-02-23 08:49:46 -08:00
Wez Furlong
9eb85e9cbc
docs: link Nop -> DisableDefaultAssignment
2021-02-23 08:13:25 -08:00
Wez Furlong
c964b69b1d
Add ScrollByLine key assignment
...
refs: #497
2021-02-23 08:02:07 -08:00
Wez Furlong
7a16e71e07
Add ResetFontAndWindowSize key assignment
...
closes: https://github.com/wez/wezterm/issues/480
2021-02-20 21:50:20 -08:00
Wez Furlong
528a4846c7
docs: changelog and improve the foreground_text_hsb docs
...
refs: #491
2021-02-20 11:36:04 -08:00
Wez Furlong
39b5a21107
docs: document foreground_text_hsb
...
It even has screen shots!
refs: #491
2021-02-20 11:24:10 -08:00
Wez Furlong
088d8e5455
docs: note about config being a "pure function"
...
closes : #477
2021-02-20 10:53:29 -08:00
Wez Furlong
58fde836c3
docs: document various missing things
...
refs: https://github.com/wez/wezterm/issues/63
refs: https://github.com/wez/wezterm/issues/461
2021-02-20 10:40:26 -08:00
Wez Furlong
6c1c5f8714
docs: move mouse binding to its own page
2021-02-20 08:38:46 -08:00
Wez Furlong
6fbc54b93d
docs: break out allow_square_glyphs_to_overflow_width separately
...
move this to is own file in the docs
refs: #462
2021-02-11 23:35:09 -08:00
Wez Furlong
561feaa710
Update docs/config/lua/config/show_update_window.md
...
Co-authored-by: Muhammed Zakir <8190126+MuhammedZakir@users.noreply.github.com>
2021-02-11 23:32:07 -08:00
Benoit de Chezelles
2a5118f002
docs: Extract check_for_updates* & show_update_window from misc
2021-02-11 23:32:07 -08:00
Benoit de Chezelles
9298c0e450
doc: Update scroll_to_bottom_on_input description
2021-02-11 23:32:07 -08:00
Benoit de Chezelles
a54c6b2dfd
Extract some added options doc to individual files
2021-02-11 23:32:07 -08:00