Commit Graph

1272 Commits

Author SHA1 Message Date
Roman Holovin f49350fd5b Respect fontconfig's embeddedbitmap setting
Fixes #2655.
2019-07-23 21:21:11 +00:00
Christian Duerr a23b372f34
Fix NetBSD build failure
Fixes #2631.
2019-07-22 18:56:08 +00:00
Mihyaeru 76dd84bef8 Remove redundant use statement on macOS 2019-07-16 15:45:46 +00:00
Christian Duerr 3c3239b1cb
Override default bindings with subset mode match
Fixes #2641.
2019-07-15 21:32:48 +00:00
Alex 1c05b3bb0c Query DirectWrite for the rendering mode to use 2019-07-14 10:53:04 +00:00
Kirill Chibisov 9a159a7760 Fix cursor color setting with escape sequence
The cursor rework introduced a regression where cursor color was always picked
from a config file, rather then using `ansi::NamedColor::Cursor` for this
purpose.

This commit also removes `CursorText` option from `NamedColor` enum,
since we can't speculate with `CursorText` during runtime.

Cursor rework commits:
  cfc20d4f34
  371d13f8ef
  0d060d5d80
2019-07-10 21:24:04 +00:00
Christian Duerr c4d2725e14
Fix row occ not set during new and reset
Since ref tests were only stored whenever winit requested the window
close, they would not get stored properly when the terminal was closed
through Alacritty using `exit`, Ctrl+D or similar.

This moves the ref test code to the and of the main entry point, which
will always be executed regardless of how the terminal was shutdown.

Fixes #2613.
2019-07-10 21:17:20 +00:00
Kirill Chibisov a99547cc6d Fix mouse move handling
This commit fixes the regression introduced in
84aca67296.

Fixes #2635.
2019-07-10 18:27:43 +00:00
Elaina Martineau 84aca67296 Change mouse cursor when hovering over the message bar 2019-07-08 18:13:55 +00:00
Kirill Chibisov 7331e89122 Add class and short title completions
Fixes #2612.
2019-07-08 15:19:42 +00:00
Christian Duerr 165246f50a
Fix saving of ref tests
Since ref tests were only stored whenever winit requested the window
close, they would not get stored properly when the terminal was closed
through Alacritty using `exit`, Ctrl+D or similar.

This moves the ref test code to the and of the main entry point, which
will always be executed regardless of how the terminal was shutdown.
2019-07-07 14:51:11 +00:00
Kirill Chibisov ed7ed473da Fix doc box drawing symbols 2019-07-07 13:14:04 +00:00
Brian Koropoff 228c641769 Allow setting gtk variant and general class on X11 2019-07-06 19:34:56 +00:00
Lê Viết Hoàng Dũng e398eb8406 Use Menlo as fallback font on macOS
This commit makes alacritty use Menlo as a fallback font on macOS if the config specified font family isn't found.
2019-07-06 09:00:16 +00:00
Fabian Homborg 707f429366 Suggest installing fish completions per-user
This uses $fish_complete_path[1], which should be in the
user's home directory, so `sudo` is no longer needed.
2019-06-30 16:04:09 +00:00
Christian Duerr a3f56a5f09
Fix X11 clipboard hanging with mime set 2019-06-29 14:35:53 +00:00
Christian Duerr af30f3735a
Fix rows only resetting partially
This resolves an issue with rows only resetting partially, based on
their `occ` state. However this state is not always accurate, so more
than just the occupied elements need to be cleared.

Fixes #2340.
2019-06-28 20:19:15 +00:00
Kirill Chibisov 0815774cbf Perform clear and buffer swap before showing window
This should fill window with background color while it is offscreen instead of
showing it with uninitilized surface and then performing `clear`. So, the new
behavior should prevent glitches during startup. e.g. content of the windows
below, garbage from drivers and so on.
2019-06-25 21:34:55 +00:00
Christian Duerr e2e25b3206
Fix first unfullscreen on fullscreen mode launched window 2019-06-25 21:32:28 +00:00
Benjamin Bauer 5ad1e8b75f Fix dependencies for Archlinux in INSTALL.md 2019-06-25 15:04:14 +00:00
Christian Duerr f002171c84
Fix performance issues with text reflow
Fixes #2567.
Fixes #2414.
2019-06-23 23:29:01 +00:00
Gabriel Silva Simões 743d5d9c66 Update manual install instructions for Void Linux 2019-06-23 15:46:24 +00:00
Kirill Chibisov 72088dafec Fix inconsitent cursor position when scrolling
This commit fixes regression introduced in cfc20d4f34.
`self.cursor.line` forced the cursor to hold a fixed location while scrolling
until its "original" location (usually the shell prompt) went off the screen.
So cursor position should be keep updated, which can be achieved by using
`self.inner.line()`.

Fixes #2570.
2019-06-21 23:00:01 +00:00
Nathan Lilienthal 6013d1ec3e
Reorder and clearify the mouse/keybinding docs. (#2509) 2019-06-21 10:35:28 -04:00
Christian Duerr e0a286515f
Add block selection
This implements a block selection mode which can be triggered by holding
Control before starting a selection.

If text is copied using this block selection, newlines will be
automatically added to the end of the lines.

This fixes #526.
2019-06-20 15:56:09 +00:00
Eric Engestrom a1c70b1d68 Bump appdata to v0.3.3 2019-06-19 18:26:59 +00:00
Matthias Krüger 4039f72000 Fix redundant static lifetime clippy lint 2019-06-18 21:23:03 +00:00
Christian Duerr a39459ece2
Fix ubuntu deployment 2019-06-17 21:22:10 +00:00
Paul Schyska 3950b5cb2f Add Fedora Copr install instructions 2019-06-16 19:47:59 +00:00
Christian Duerr fe4cfdc545
Unset DESKTOP_STARTUP_ID environment variable
This unsets the DESKTOP_STARTUP_ID environment variable at startup, to
prevent child processes from inheriting it. This solves problems with
child windows not properly spawning in the foreground with KDE.

More information can be found here:
https://specifications.freedesktop.org/startup-notification-spec/startup-notification-latest.txt
2019-06-16 16:03:52 +00:00
Christian Duerr cc3e4d3d5c
Bump version to 0.3.3 2019-06-16 14:10:15 +00:00
Christian Duerr 58e2365abe
Fix default fullscreen binding docs 2019-06-16 11:35:28 +00:00
Julien Sanchez 6b273fdf63 Fix default login shell documentation 2019-06-16 11:29:18 +00:00
pwrdwnsys 490a6528fc Add INSTALL.md note about OpenBSD user datasize limits 2019-06-15 20:30:17 +00:00
Christian Duerr 8ea28eb1b0
Bump version to 0.3.3-rc2 2019-06-15 21:34:13 +02:00
Christian Duerr 1b26059a06
Bump smithay-clipboard dependency version 2019-06-15 19:08:51 +00:00
Christian Duerr d3cc9743b7
Fix dynamic color escape response
The dynamic color escape response would answer to requests with
rgb:0/0/0 when the color was completely black, instead of properly
responding with double-digit hex colors. This has been changed so that
Alacritty now always properly responds with the same number of hex
digits for all colors.

The number of digits has also been changed from two to four digits per
color, since that is the more commonly used format.

Using the `write!` macro was also causing problems with NeoVim,
since it caused Alacritty to write the dynamic color escape in multiple
write calls, switching to `write_all` fixed that.

Fixes #2543.
2019-06-15 16:52:23 +00:00
Bastien Orivel 6cd0f12efb Remove reqwest dependency on Windows 2019-06-13 21:18:01 +00:00
pwrdwnsys b1dcd6b252 Add python 3 to OpenBSD dependencies 2019-06-13 15:28:01 +00:00
Christian Duerr 0b88b9fee4
Bump version to 0.3.3-rc1 2019-06-09 22:10:42 +02:00
Kevin Zheng 204c46c7f9 Fix dynamic multi-color escape codes 2019-06-09 18:02:15 +00:00
Matthias Krüger f59aa19892 Fix compiler warnings 2019-06-09 17:52:48 +00:00
Paul Schyska 55d346c7d4 Add RPM spec for building in COPR 2019-06-09 16:30:42 +00:00
Christian Duerr bc2c34eb7f
Add wayland primary selection clipboard support 2019-06-09 11:46:31 +00:00
Christian Duerr 4cd55acd78
Bump minimum supported Rust version to 1.32.0 2019-06-08 16:01:14 +00:00
Christian Duerr 527dc8f564
Fix ncurses backspace key
Ncurses does some special handling for backspace, normally comparing it
to the KEY_BACKSPACE constant. However to make this work, the right
backspace escape sequence needs to be set in the terminfo.

XTerm has this set to ^H, but it always sends ^H. Since Alacritty
usually sends ^? instead, this needs to be specified to allow correct
interpretation for ncurses.
2019-06-07 22:09:22 +00:00
绅士喵 f2b1bfdf37 Fix build without git 2019-06-06 18:46:32 +00:00
Christian Duerr f15ef63edb
Fix index out of bounds during selection
This reworks the selection logic to prevent any possible index out of
bounds exceptions by clamping the start and end points before doing
anything else with them when converting selections to spans.

This also fixes a bug where semantic selections would not automatically
expand across double-width characters.

Fixes #2486.
2019-06-06 13:04:12 +00:00
Elaina Martineau 45565bb9ca Re-invert cursor when in selection 2019-06-06 00:02:20 +00:00
Andy 3931fb6fbc Fix INSTALL.md relative windows/linux build link 2019-06-03 20:01:26 +00:00