1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 12:51:31 +03:00
Commit Graph

1756 Commits

Author SHA1 Message Date
Wez Furlong
6b78d1ad27 Implement tab movement via key assignment
This commit adds the ability to change the relative or absolute
position of a tab within its containing window through the
use of a key assignment.

We include a default assignment of CTRL+SHIFT+PageUp for moving
left and CTRL+SHIFT+PageDown for moving right.

Closes: https://github.com/wez/wezterm/issues/84
2019-12-31 15:31:50 -08:00
Wez Furlong
cc27f3f902 Only highlight cells that use exactly the highlight URL
If the cells refer to the same object instance (rather than equivalent
instances), then we treat them as part of the same highlight.

Refs: https://github.com/wez/wezterm/issues/94
2019-12-31 14:35:36 -08:00
Wez Furlong
699d092a6b Ignore mouse clicks that coincide with window focusing
Now that we can track focus changes, we can eliminate an annoyance:
clicking in the window to focus it would cause a click event to
be passed to the terminal and clear the selection.

This commit will swallow button events that occur within 200ms
of the focus being gained by the window.
2019-12-31 14:11:09 -08:00
Wez Furlong
8485e5db0c docs: maybe do a better job at caching mdbook 2019-12-30 15:12:51 -08:00
Wez Furlong
b4b24aacca suppress warning 2019-12-30 11:11:41 -08:00
Wez Furlong
3f2e29b024 macos: fix keyboard repeat issue with backspace
wtf?  Not sure why this only impacted backspace
2019-12-30 11:09:19 -08:00
Wez Furlong
5540b2e66b Don't default to swapped backspace and delete on macos
With the changes in Refs: https://github.com/wez/wezterm/issues/88
we don't need to swap them by default on macos any more.
2019-12-30 10:33:52 -08:00
Wez Furlong
d58f1ff5dc Implement focus_change for macos
Refs: https://github.com/wez/wezterm/issues/93
2019-12-30 10:32:12 -08:00
Wez Furlong
f09145756c Add note about backspace handling to the changelog for nightly 2019-12-30 08:40:31 -08:00
Wez Furlong
a396a64550 Revert "wayland: implement focus_change callback"
This reverts commit bfa8d0c207,
which proved not to be needed because it was already covered
by the `KeyboardEvent::Enter` and `KeyboardEvent::Leave` handling.
2019-12-30 08:35:52 -08:00
Wez Furlong
f0e94084d1 change backspace/delete handling
Previously we would try to pass through the Backspace and Delete
code points without interference, but that behavior wasn't quite
right.

With this commit our behavior is now:

- At the window layer: Classify a `Backspace` key press as logically
  `BS` and a `Delete` key press as logically `DEL` unless the
  `swap_backspace_and_delete` is true (macOS is true by default), in
  which case `Backspace` is mapped to `Delete` and vice versa.

- At the terminal input layer: A `Backspace` input from the Window sends
  the `DEL` sequence to the pty as that matches the default `VERASE` stty
  configuration.  A `Delete` input from the Window emits `\033[3~`,
  which matches up to the `TERMINFO` for `xterm-256color` which we
  claim to be compatible with, and is our default `$TERM` value.

The net result of this is that `Backspace` will now start to emit `^?`
which should match folks stty verase.   Heads up to @fanzeyi!

I've tested this only on a linux system so far and will follow up on
a macOS system a little later today.

Refs: https://github.com/wez/wezterm/issues/88
Refs: https://github.com/wez/wezterm/issues/63
2019-12-30 08:14:20 -08:00
Wez Furlong
d3c4e8e8b6 docs: tweak download page and add source tarball info 2019-12-29 23:06:29 -08:00
Wez Furlong
e364191058 docs: Ensure that we fetch release info on each build 2019-12-29 22:37:06 -08:00
Wez Furlong
eb3588726c cache the mdbook binary itself 2019-12-29 22:35:13 -08:00
Wez Furlong
fdf4c4ca3f fix pages.yml syntax 2019-12-29 22:26:47 -08:00
Wez Furlong
dec2653373 Rebuild and deploy the docs hourly 2019-12-29 22:22:14 -08:00
Wez Furlong
028e928cb2 default to darker styling 2019-12-29 22:05:49 -08:00
Wez Furlong
8f5802bf7e Add workflow to build GH pages on pushes to master 2019-12-29 21:55:40 -08:00
Wez Furlong
13582adddf Remove azure GH page build 2019-12-29 21:40:54 -08:00
Wez Furlong
76c1dff6b3 style download buttons a bit better 2019-12-29 21:39:23 -08:00
Wez Furlong
4681436bd1 docs: code generation for release info 2019-12-29 21:24:08 -08:00
Wez Furlong
a11f036d87 Start migrating to mdbook for the docs
Build the docs by installing mdbook and then running:

`mdbook build docs`

or run them live with `mdbook serve docs`
2019-12-29 20:41:08 -08:00
Wez Furlong
e536c80987 Update changelog 2019-12-29 19:42:33 -08:00
Wez Furlong
e7aa2f3806 fix typo for source upload 2019-12-29 19:34:20 -08:00
Wez Furlong
6421be1b7a Add Fedora rpm to download page 2019-12-29 19:32:26 -08:00
Wez Furlong
c6a918922f Label the package as github for GitHub Actions 2019-12-29 19:12:00 -08:00
Wez Furlong
847214c0a8 Yet another different way to upload release assets 2019-12-29 19:00:46 -08:00
Wez Furlong
437ace7ef7 try a different strategy for building on release 2019-12-29 18:47:23 -08:00
Wez Furlong
23766f6825 remove release creation from tag_posix.yml
This isn't smart enough to avoid making a new release when
one with the same name already exists
2019-12-29 18:37:06 -08:00
Wez Furlong
9762b247e6 Explicitly set the tag for the release 2019-12-29 18:27:12 -08:00
Wez Furlong
f1b6c9d9a0 remove azure status from readme 2019-12-29 17:46:21 -08:00
Wez Furlong
92f5c14373 More CI grunt work
Hook up fedora rpms to the "nightly" nee hourly builds.

Maybe make it so that tags build a release.

Nerf more of the old azure pipelines config
2019-12-29 17:45:00 -08:00
Wez Furlong
bfa8d0c207 wayland: implement focus_change callback
Refs: https://github.com/wez/wezterm/issues/93
2019-12-29 17:17:46 -08:00
Jeremy Fitzhardinge
fce215f10f Enable focus for Windows.
Untested; passes a `cargo check`, but I'm not sure whether I've got the right
event for focus.
2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
887991f464 Remove BlockOutline cursor style
Not really needed, since its something we can handle at rendering time.
2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
999ba79436 Use non-focused cursor shape for unfocused windows 2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
a499eedb86 Make sure cursor gets refreshed properly on focus change 2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
6d5fbf93ff Define outline cursor for unfocused use 2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
0bc0972f75 Track focus state and disable cursor blinking when not focused
Issue https://github.com/wez/wezterm/issues/93
2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
71acd7d2a9 Add focus tracking for Wayland 2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
6558230c9f Implment focus_change for X11 2019-12-29 16:58:15 -08:00
Jeremy Fitzhardinge
69ed1e7aed Add focus_change to WindowCallbacks 2019-12-29 16:58:15 -08:00
Wez Furlong
9596dfd97f Add CI for Fedora 2019-12-29 16:41:28 -08:00
Wez Furlong
b75d6ae62b Schedule rather than "Schedule" on windows 2019-12-29 16:39:51 -08:00
Wez Furlong
30910918f4 Update Cargo.lock 2019-12-29 13:43:59 -08:00
Wez Furlong
033ce1f565 Take a stab at migrating release upload from azure to GHA 2019-12-29 13:36:22 -08:00
Wez Furlong
8964ebd795 Add ability to build an rpm on Fedora
ci/deploy.sh can now emit an rpm to your `~/rpmbuild/RPMS` dir.
2019-12-29 13:09:53 -08:00
Wez Furlong
a251c3722b Enable GH actions build caching
We need to build in release mode so targets are cacheable.
GH has a limit of 400MB per cache blob and we're at 750MB with
the debug build.  Slim it down a bit.

The cache wants to hash the Cargo.lock file so I've removed that
from the ignore file and added it to the repo.  This might cause
an error for users checking out the repo after this change is
pushed; removing the local Cargo.lock should resolve that.
2019-12-29 13:09:18 -08:00
Jeremy Fitzhardinge
962b74c458 Only blink cursor when it's not moving
The cursor should only start blinking when its been sitting in once place;
a moving cursor should always be visible. Rather than making the cursor blink
relative to the creation time of the window, track its position, and use the
last time it moved as the blinking timebase.

Fixes https://github.com/wez/wezterm/issues/83
2019-12-29 09:38:59 -08:00
Wez Furlong
5d55b8bc2e Ensure that the scrollbar defines more vertex fields
This is a bit of a speculative change to see if it helps with
refs: https://github.com/wez/wezterm/issues/82

I have sometimes seen my scrollbar have a color that I didn't
choose and ISTR having some issues in the past when updating
the quads if I didn't set all of the fields of the vertex
to a better defined value.
2019-12-28 12:15:48 -08:00