Commit Graph
1521 Commits
Author SHA1 Message Date
Rémi Garde 34daa1237b Clear selection on grid swap
Fixes #3290.
2020-04-20 23:38:25 +00:00
Bastien Orivel 03bce99ab6 Update depedencies 2020-04-18 14:34:34 +00:00
David Hewitt 840cb1b93a Add Windows font fallback 2020-04-16 18:46:17 +00:00
Kirill Chibisov 33abfe34a8 Add config option to set cursor thickness
Fixes #3526.
2020-04-15 03:50:34 +00:00
Kirill Chibisov ab2db49af5 Log critical errors with error! instead of println! 2020-04-12 04:27:09 +03:00
Kirill Chibisov f14d24542c Fix various mouse mode + vi mode interactions
This commit fixes some issues introduced by
1a8cd172e5:

 1. Vi cursor not moving properly on double/triple click
 2. URL not launching via mouse click in vi mode + mouse mode
 3. Ability to select in mouse mode with double/triple click regardless
    of shift modifier
2020-04-10 21:23:50 +03:00
Kirill Chibisov 2fc5120327 Use config colors to theme Wayland decorations
Fixes #2092.
2020-04-09 04:02:10 +03:00
Kirill Chibisov 13eb50de79 Remove 0.4.2 changelog suffix 2020-03-30 17:22:01 +00:00
Kirill Chibisov f80e8eca73 Fix tabstops not being reset with 'reset' 2020-03-30 11:46:20 +03:00
Christian Duerr fde2424b39 Remove fs::read_to_string reimplementations
After two previous PRs already removed some instances of
reimplementations of the `fs::read_to_string` functionality, this
removes the last remaining occurence and with it all instances of
`File::open`. So this should remove them all for good.
2020-03-26 14:56:41 +00:00
Cole Helbling 06c07d3c75 Remove orphan servo-freetype-proxy folder 2020-03-26 03:07:07 +00:00
Christian Duerr 637c775a99 Update Linux/BSD font dependencies
This updates font dependencies to make use of the newly unified
freetype-sys crate, allowing us to get rid of Alacritty's patch section
in the Cargo.toml.
2020-03-25 16:52:03 +03:00
Matthias Krüger 69ca895176 Remove std::fs::read_to_string reimplementation from tests 2020-03-25 15:08:30 +03:00
Christian Duerr c35dbc9657 Fix cursor position after alt screen resize
This fixes a regression introduced in 4cc6421, which ignored the main
grid's cursor when increasing the number of lines available, causing
incorrect cursor position after restoring to the primary screen.

Additionally another similar bug has been fixed where the grid was not
scrolled correctly when shrinking while in the alternate screen.

When the grid is resized multiple lines at once, there was also an issue
with Alacritty either pulling all lines from history or none at all,
instead of mixing both approaches and pulling just what is required.
This lead to incorrect cursor positions when the resize could partially
make use of history.

Fixes #3499.
2020-03-24 01:29:07 +00:00
Kirill Chibisov c9c5fbbe2b Add CopyPrimary keybinding action on Linux/BSD 2020-03-23 23:46:33 +00:00
Kirill Chibisov a2875454b1 Add FreeBSD to CI
Fixes #2248.
2020-03-23 23:22:31 +03:00
Christian Duerr 232aea46c0 Add changelog entry for minimum Rust version bump 2020-03-23 19:24:47 +03:00
Christian Duerr ba05e505d5 Fix invisible selection
This resolves a bug where the very first/last cell would still be
selected when both the start and the end were below/above the viewport.
2020-03-21 03:47:52 +03:00
Stefan Devai 3d7a789fd3 Remove right click deselection
Fixes #3144.
2020-03-19 15:39:00 +03:00
Christian Duerr 01e603519a Fix default keybinding documentation 2020-03-19 15:00:32 +03:00
Christian Duerr 1ddd3118dd Fix scrolling with selection outside of vimode 2020-03-19 03:30:30 +03:00
Christian Duerr 1a8cd172e5 Add modal keyboard motion mode
This implements a basic mode for navigating inside of Alacritty's
history with keyboard bindings. They're bound by default to vi's motion
shortcuts but are fully customizable. Since this relies on key bindings
only single key bindings are currently supported (so no `ge`, or
repetition).

Other than navigating the history and moving the viewport, this mode
should enable making use of all available selection modes to copy
content to the clipboard and launch URLs below the cursor.

This also changes the rendering of the block cursor at the side of
selections, since previously it could be inverted to be completely
invisible. Since that would have caused some troubles with this keyboard
selection mode, the block cursor now is no longer inverted when it is at
the edges of a selection.

Fixes #262.
2020-03-18 02:35:08 +00:00
Nathan Lilienthal 64db7d3daa Add default keybinding for SpawnNewInstance on macOS 2020-03-17 22:37:36 +03:00
Kirill Chibisov 6ad0be5fb3 Use font style for fontconfig fallback 2020-03-17 01:50:12 +00:00
Matthias Krüger b48e2fc2d8 Remove std::fs::read_to_string reimplementation 2020-03-17 00:50:27 +00:00
Christian Duerr e272572168 Fix changelog version 2020-03-14 22:09:28 +00:00
Christian Duerr 6801c4a4fd Bump version to 0.5.0-dev
This is a bump of the development version and does not represent a
stable release.
2020-03-14 16:39:02 +00:00
Christian Duerr ead8d68c69 Fix live config reload for window title
This enables live config reload for the window title. This includes
updating the title after it has been pushed and popped from the title
stack.

The dynamic title option also isn't disabled automatically anymore when
the title is set in the config. If the title is set from CLI, the
behavior is unchanged and dynamic title changes are still disabled.

If the dynamic title is disabled in the config, the title is still
updated when the config title is changed. Dynamic title now only
prevents changes to the UI's title.
2020-03-14 15:09:10 +00:00
Nathan Lilienthal d20051b5e5 Capitalized the .desktop Filename (#3425)
Follow free desktop file naming conventions.
2020-03-13 15:17:19 -04:00
Kirill Chibisov 4000ec04d8 Add option to pick Linux/BSD backends
This commit adds two cargo features `x11` and `wayland` to pick
Linux/BSD backends, with both enabled by default.

Fixes #3340.
2020-03-13 03:33:12 +03:00
Christian Duerr 6d60a49956 Run clippy on oldest supported version
Since there were some problems with clippy suggesting changes that were
not yet available in the oldest supported Rust compiler of Alacritty,
the clippy stage has been moved from stable to 1.37.0.
2020-03-12 22:49:46 +00:00
Christian Duerr c2e39085e3 Fix crash when selecting last column
This resolves a bug where the selection start would be set to the number
of columns, causing an out of bounds when trying to index with it.
Instead of extending the selection beyond the grid when the right side
of the last column is the start of the selection, the selection will now
start in the beginning of the next line.

Fixes #3446.
2020-03-12 03:14:00 +03:00
Christian Duerr cc2fc0b1c3 Update to glutin 0.24.0
Fixes #3266.
Fixes #3248.
Fixes #3188.
Fixes #3177.
Fixes #2445.
Fixes #1574.
2020-03-12 01:31:59 +03:00
Kirill Chibisov bb0a214a15 Bump copypasta to 0.6.3
Fixes #3050.
2020-03-10 02:15:30 +03:00
Christian Duerr 64a3115648 Fix selection with invisible start and end
This resolves an issue with the selection clamping, where no selection
would be rendered at all when the start was above the viewport while the
end was below it.
2020-03-07 22:17:38 +00:00
Kirill Chibisov de5d770416 Fix caching of variable font faces 2020-03-06 23:15:43 +00:00
Christian Duerr 33cabfc3d2 Remove ref_test option from configuration file
This removes the `debug.ref_test` option from the configuration file,
after this change was originally requested from kchibisov in
https://github.com/alacritty/alacritty/pull/3396.

While this option is valueable for the CLI, it provides no value in the
configuration file.
2020-03-04 11:32:07 +00:00
Rémi Garde f7561850b4 Remove HollowBlock/Hidden config cursor styles
Fixes #3367.
2020-03-02 20:41:26 +00:00
Timo f83d55f0f0 Fix ignoring of slow touchpad scrolling
Fixes #3377.
2020-03-02 08:32:18 +03:00
Christian Duerr 1972cce8a4 Fix DCS escape parsing crash
This resolves a problem with the vte depedency, where the parser would
crash when trying to parse a DCS escape with more than 16 parameters.
2020-03-02 01:19:06 +00:00
Christian Duerr a710866007 Move debug to bottom of config
Since this information is the least relevant to the user, it should be
the last thing in the configuration file.
2020-03-01 21:41:05 +00:00
Christian Duerr 8c64224582 Remove tabspaces config option
This completely removes the tabspaces option from the Alacritty
configuration, due to frequent misuse of it. Based on some research,
none of the terminal emulators support setting the value for tabspaces
or read the terminfo to determine init_tabs value at startup. The tested
terminal emulators were URxvt, XTerm, and Termite.
2020-03-01 07:07:36 +03:00
Christian Duerr bea6ece3f6 Fix tabs across linewrap
This resolves an issue with tabs not breaking across line boundaries,
instead the characters would just all get written to the last column and
thus be lost.

It also tweaks the behavior of what happens when the terminal resizes
with the default tabspaces changed, using something like the `tabs`
program. Previously all tabstops would be reset to the default on
resize, which is what URxvt does. Now the tabspaces are kept and the new
columns are filled with the default tabstops, which emulates Termite.
2020-03-01 06:27:23 +03:00
Valentin Ignatev 31e01cc0e0 Add GNU Guix installation instructions 2020-03-01 04:33:36 +03:00
Kirill Chibisov 2ac017fa64 Update terminfo dependency 2020-02-29 21:10:51 +03:00
Kirill Chibisov 2365425fd2 Fix log target of color config errors
Due to incorrect log target in the color config errors, the message bar was not
cleared when the error was fixed.
2020-02-28 02:28:15 +00:00
Christian Duerr 43f89a64c2 Remove unnecessary macos focus check
Since winit now filters out clicks on unfocused windows on macOS
anyways, we don't need to implement this logic ourselves anymore.
2020-02-27 23:42:39 +00:00
Christian Duerr 17b8bbb908 Remove docs for 0xRRGGBB color notation 2020-02-27 23:06:04 +00:00
Kirill Chibisov e3f095ca96 Fix crash on Wayland compositors with wl_seat version 7+ 2020-02-28 01:02:34 +03:00
Kirill Chibisov 223f8dcfd0 Revert caching of font pixelsize
We can't reliably do that, because some fonts are bitmap,
but marked as scalable by Fontconfig.

Fixes #3387.
2020-02-27 23:44:35 +03:00