Wez Furlong
ae4bfae5c4
mouse cursor -> Arrow when app grabs mouse
...
closes: https://github.com/wez/wezterm/issues/859
2021-06-19 17:35:16 -07:00
Wez Furlong
fdf871c3cb
fonts: add wezterm ls-fonts --text "hello"
to explain per-glyph font
...
```
; ./target/debug/wezterm ls-fonts --text "␉ ␌ ␍ ␊ ␋"
␉ \u{2409} glyph=885 wezterm.font("Terminus", weight="Bold", stretch="Normal", italic=false)
/home/wez/.fonts/terminus-bold.otb, FontDirs
\u{20} glyph=2 wezterm.font("Operator Mono SSm Lig", weight="DemiLight", stretch="Normal", italic=false)
/home/wez/.fonts/OperatorMonoSSmLig-Medium.otf, FontDirs
␌ \u{240c} glyph=888 wezterm.font("Terminus", weight="Bold", stretch="Normal", italic=false)
/home/wez/.fonts/terminus-bold.otb, FontDirs
\u{20} glyph=2 wezterm.font("Operator Mono SSm Lig", weight="DemiLight", stretch="Normal", italic=false)
/home/wez/.fonts/OperatorMonoSSmLig-Medium.otf, FontDirs
␍ \u{240d} glyph=889 wezterm.font("Terminus", weight="Bold", stretch="Normal", italic=false)
/home/wez/.fonts/terminus-bold.otb, FontDirs
\u{20} glyph=2 wezterm.font("Operator Mono SSm Lig", weight="DemiLight", stretch="Normal", italic=false)
/home/wez/.fonts/OperatorMonoSSmLig-Medium.otf, FontDirs
␊ \u{240a} glyph=886 wezterm.font("Terminus", weight="Bold", stretch="Normal", italic=false)
/home/wez/.fonts/terminus-bold.otb, FontDirs
\u{20} glyph=2 wezterm.font("Operator Mono SSm Lig", weight="DemiLight", stretch="Normal", italic=false)
/home/wez/.fonts/OperatorMonoSSmLig-Medium.otf, FontDirs
␋ \u{240b} glyph=887 wezterm.font("Terminus", weight="Bold", stretch="Normal", italic=false)
/home/wez/.fonts/terminus-bold.otb, FontDirs
```
2021-06-19 16:55:45 -07:00
Wez Furlong
d57bc9b3dc
CloseCurrentPane on last pane in a tab results in window closing
...
The issue is that the pane was only removed from the tab when explicitly
closed, leaving it to be later detected and flushed.
However, in the meantime, when performing eg: cursor blink maintenance,
if the set of panes in the tab is empty then the window would close.
The resolution is to ask the mux (rather than the tab) to kill the pane,
so that the cascading closure of the tab causes the window's active
tab to reference the correct remaining tab.
refs: #890
2021-06-19 11:06:14 -07:00
Wez Furlong
e0b62d07ca
ls-fonts: add --list-system flag to list system fonts
...
heads up @bew!
This is implemented on windows and font-config systems;
needs to be fleshed out for macos.
refs: https://github.com/wez/wezterm/issues/347
2021-06-17 09:11:54 -07:00
Wez Furlong
1be3d016b1
deps: windows 0.9 -> 0.11
...
closes : #872
2021-06-16 08:29:09 -07:00
Wez Furlong
a4550385fc
adjust zeno paths to allow for curves, add rounded powerline
...
refs: #584
2021-06-13 23:21:55 -07:00
Wez Furlong
1b3df56a91
custom powerline triangle glyphs
...
refs: #584
2021-06-13 22:04:42 -07:00
Wez Furlong
a217f96d6b
Add some smooth mosaic custom glyphs
...
This proves the concept of using the zeno crate to draw filled
polygons.
refs: #584
refs: #588
2021-06-13 16:50:35 -07:00
Wez Furlong
6c702b568f
glyphcache: adopt zeno crate for drawing
...
This changes the fill_rect function over to use the zeno crate.
zeno allows describing a path and filling or stroking.
This commit doesn't strictly need that, but it sets things
up for more interesting custom glyphs in later commits.
refs: #584
refs: #588
2021-06-13 15:49:37 -07:00
Wez Furlong
c036a7864b
fix unused doc comment warning
2021-06-13 07:40:47 -07:00
nick black
5ca940c6d9
[sextants] fix copy-and-paste error on U+1FB06
2021-06-12 13:27:45 -07:00
Wez Furlong
ad0ee8f832
improve 1/8th block drawing
...
* Rename `draw_quad` to `fill_rect` to better indicate what it is doing.
* Switch the 1/8th block rendering to use `fill_rect` with math that is
consistent with quad drawing to compute the bounds.
refs: https://github.com/dankamongmen/notcurses/issues/1715#issuecomment-860072690
2021-06-12 10:04:08 -07:00
Wez Furlong
2e7dc70eaf
fixup tests
2021-06-10 20:40:57 -07:00
Wez Furlong
c7ec47e2c0
add sextant glyphs to custom block glyphs
...
While I'm in here, teach the font fallback code that it doesn't
need to search for these glyphs when custom block glyphs are
enabled.
refs: https://github.com/dankamongmen/notcurses/issues/1715
refs: #584
refs: #588
2021-06-10 20:38:48 -07:00
kas
4fcfb4b222
Use configured default program when running subcommand "start" with CWD option set and program unset
...
closes: https://github.com/wez/wezterm/pull/851
2021-06-10 07:11:40 -07:00
Wez Furlong
4feefdd04a
cargo update
2021-06-07 08:32:05 -07:00
Roland Fredenhagen
e5806a6ac3
Better antialiasing for Undercurl
2021-05-31 16:33:20 -07:00
Wez Furlong
1a44255529
mux client: connect all mux panes in window to clipboard when attaching
...
refs: https://github.com/wez/wezterm/issues/836
2021-05-31 08:40:19 -07:00
Wez Furlong
b03e27adb1
deps: ordered-float 2.1 -> 2.5
...
closes: https://github.com/wez/wezterm/pull/831
2021-05-31 00:17:18 -07:00
Wez Furlong
5359f39dcf
mux: fix an issue where auth window would linger before closing
...
Same vein as 8931afba5cee07ab12990f06c2ff34d6f8426b19; the auth
window could sometimes get stuck until an input event was sent
to it.
Wire up a mux event so that the window can close itself.
2021-05-31 00:11:47 -07:00
Wez Furlong
87cb593554
mux: client would prune out the empty window when connecting via ssh/tls domain
...
When the client connected to an empty remote mux, it would allocate an
empty window and then spawn a new tab into it.
Meanwhile, the authentication window would close and trigger a prune of
all empty windows, causing the in-flight spawn to fail because its
destination window was removed.
This commit defers window pruning while Activity is in progress;
the MuxWindowBuilder has an associated Activity count.
2021-05-30 23:50:13 -07:00
Wez Furlong
717a2157f6
fonts: synthesize dim when a light weight font is unavailable
2021-05-30 20:52:10 -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
f5f393bf2c
term: notify embedding application when palette changes
...
refs: #748
2021-05-30 09:29:04 -07:00
Wez Furlong
d1e2108ce0
improve invalidations when resizing, adjusting viewport from overlay
2021-05-30 08:26:42 -07:00
Wez Furlong
8931afba5c
fix more laggy invalidations
...
in the same vein as d657721163
, the
increased idle loop means we need to be careful not to suppress
invalidation events.
In this case, overlays aren't from the window in the mux model,
so we'd ignore invalidations for those.
While looking at this I realized that we'd also do the same
for output being emitted in panes that were not the active pane,
so tidy that up.
2021-05-29 09:36:30 -07:00
Wez Furlong
257d323062
fixup laggy mux connections for recent idle changes
...
in the same vein as d657721163
this commit introduces more assertive signalling from the remote
mux when a pane is closed so that the client can update.
2021-05-29 00:16:27 -07:00
Wez Furlong
030e517b43
deps: metrics 0.15 -> 0.16, cargo update
2021-05-24 07:57:03 -07:00
Wez Furlong
930927fb69
gui: refactor: move resize method to resize module
2021-05-23 18:39:02 -07:00
Wez Furlong
f78190ec9c
filedescriptor: remove anyhow from public interface
...
Use thiserror instead
2021-05-23 14:24:01 -07:00
Arvedui
dbc278e59a
Fix spawning new tabs/windows in directory with urlunsafe paths
...
The CWD is internally stored as URL. The path component is therefore
stored percent_encoded. It must be decoded before use.
2021-05-18 08:33:06 -07:00
Wez Furlong
69561b96c8
fix wrong starting row for split paints when tab bar is at bottom
...
refs: https://github.com/wez/wezterm/issues/797
2021-05-15 07:47:33 -07:00
Wez Furlong
a59e9b1706
update metrics 0.14 -> 0.15
...
closes: https://github.com/wez/wezterm/pull/778
2021-05-11 19:20:24 -07:00
Wez Furlong
c2afe83d5d
optimize resize event processing during live resize
...
This works by coalescing a sequence of resize/repaint events and
taking the most recent one.
2021-05-09 10:28:25 -07:00
Wez Furlong
e92e912443
refactor WindowEvent handling
2021-05-09 09:58:20 -07:00
Wez Furlong
b8acdf592f
fix panic when double-click-selection drags across line boundary
...
closes: https://github.com/wez/wezterm/issues/762
2021-05-09 08:17:56 -07:00
Wez Furlong
f4e9668952
fix scaling of -->
ligature in base font
...
refs: https://github.com/wez/wezterm/issues/699
2021-05-09 07:19:18 -07:00
Wez Furlong
4e6f341f10
window: wayland support is no longer optional at build time
2021-05-08 17:48:58 -07:00
Wez Furlong
fdce2d71d0
decompose period maintenance function
...
Split it into its component parts, and change the new dispatch
loop to sleep the appropriate interval only when needed.
refs: #770
2021-05-08 12:28:19 -07:00
Wez Furlong
b5bf25a9c5
remove check_for_dirty_lines_and_invalidate_selection from periodic
...
Since we now always check this during rendering, and we have a reliable
event for pane output, we don't need this check in the period task.
refs: #770
2021-05-08 11:32:12 -07:00
Wez Furlong
ed6987298a
mux: remove window invalidation polling
...
Add a mux event for this insteead.
refs: https://github.com/wez/wezterm/issues/770
2021-05-08 11:25:03 -07:00
Wez Furlong
58157c47a9
config: can now subscribe to config change events
...
This removes a couple of periodic config polls
refs: https://github.com/wez/wezterm/issues/770
2021-05-08 11:06:07 -07:00
Wez Furlong
1cbaf55640
change mux empty poll to mux empty event
...
As part of reducing the amount of regularly scheduled stuff wezterm
does in the background, this commit restructures how an empty mux
is detected; now when the mux prunes dead windows it will emit
an Empty event.
The Activity type will now schedule a prune when it is dropped,
which will clean up and trigger the Empty event.
refs: https://github.com/wez/wezterm/issues/770
2021-05-08 10:25:49 -07:00
Wez Furlong
7cd9f32494
add some error context on notif dispatching
...
This was helpful when running down the situation in the previous
commit.
2021-05-08 10:21:44 -07:00
Wez Furlong
2e74663628
fixup log level for context loss
2021-05-08 09:36:19 -07:00
Wez Furlong
5d037eae52
adjust gui layer for window changes
2021-05-08 09:36:19 -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
d64b785290
deps: update windows dep to 0.4 -> 0.9
...
dependabot keeps trying and failing because lots of things changed.
Let's try and get ahead of it...
2021-05-03 22:05:35 -07:00
Wez Furlong
a594298947
add window
object to debug overlay
...
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 18:36:26 -07:00
Wez Furlong
09f0421b48
add lua repl to the debug overlay
...
`wezterm` is pre-imported.
The repl prints the result of the expressions to the overlay.
refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:44 -07:00