Commit Graph
1572 Commits
Author SHA1 Message Date
Kirill Chibisov e4e0218ede Run rustfmt on sr.ht
This should provide more clear feedback whether rustfmt
job is failed or not.
2020-06-23 11:13:14 +00:00
Christian Duerr 43c0ad6ea9 Add selection expansion
This allows for expanding the selection using the right mouse button.
The new selection type depends on the number of clicks and applies to
both sides of the selection.

Fixes #1554.
2020-06-23 12:57:15 +03:00
Christian Duerr 87e5b1aa25 Add automatic scrolling during selection
This adds a new `Scheduler` which allows for staging events to be
processed at a later time.

If there is a selection active and the mouse is above or below the
window, the viewport will now scroll torwards the direction of the
mouse. The amount of lines scrolled depends on the distance of the mouse
to the boundaries used for selection scrolling.

To make it possible to scroll while in fullscreen, the selection
scrolling area includes the padding of the window and is at least 5
pixels high in case there is not enough padding present.
2020-06-18 01:02:56 +00:00
Kirill Chibisov d526649ee6 Use compile_error! instead of panic! in build.rs
The compile_error! failure is way more readable and noticeable than
panic!.
2020-06-15 23:01:21 +03:00
Kirill Chibisov b15b476371 Rework default config binding replacement
This reworks the criteria necessary for default bindings to be
overwritten by custom user bindings. It should provide a better
heuristic which accounts for the possibility that notmodes are added
which prevent a conflict between the bindings, so the default isn't
unnecessarily removed.

It is still possible to define a new binding that intersects a default
binding without the default getting removed, if the user explicitly
specifies a mode that doesn't include the default binding's mode. This
is based on the assumption that users explicitly specifying a new mode
are trying to make a mode-specific addition and are capable of removing
the default when desired.

This helps with old modes still being present in user's config files,
since a lot of new config options just have the additional ~Vi mode set.

Fixes #3476.
2020-06-15 03:12:39 +03:00
Steve Dondley 00870b2c5c Improve documentation for install on macOS via brew cask 2020-06-15 01:06:14 +03:00
Kirill Chibisov 6ee8717917 Add missing docs for ScrollHalfPageUp/Down 2020-06-09 21:25:34 +00:00
Christian Duerr 3c7a960121 Cleanup window.rs imports
The window.rs imports have been extremely messy due to heavy
platform-specific import usage. While some of them are just stray
imports for a single platform, a lot of these are specific to Linux/BSD.

To make these a little easier to read and maintain, the Linux/BSD
specific imports were grouped together, since this allows us to just
have a single platform annotation.

Most of our imports follow the order of how relevant and foreign these
imports are to Alacritty, putting our own frequently used imports at the
far bottom and STD with things people usually don't need to care about
at the top. Since platform specific imports are generally important to
fewer people, I've decided to put them before all the other imports
rather than behind them.
2020-06-08 02:09:07 +00:00
Kirill Chibisov 3233ede028 Update dependencies 2020-06-07 01:07:22 +03:00
Kirill Chibisov 4f5f841296 Remove copypasta dependency from alacritty_terminal 2020-06-07 00:33:20 +03:00
Christian Duerr 7aafbb757d Remove copyright notice from files
Keeping the license as part of every file bloats up the files
unnecessarily and introduces an additional overhead to the creation of
new modules.

Since cargo already provides excellent dependency management, most of
the code-reuse of Alacritty should occur through Rust's dependency
management instead of copying it source.

If code is copied partially, copying the license from the main license
file should be just as easy as copying from the top of the file and
making some adjustments based on where it is used is likely necessary
anyways.
2020-06-06 21:49:14 +03:00
Kirill Chibisov de3437bcd6 Fix class and cursor thickness deserialization
Fixes #3820.
2020-06-05 22:31:57 +00:00
Kirill Chibisov f99220f015 Refactor Shell, Command, and Launcher to share impl 2020-06-05 01:10:31 +03:00
Jade Michael Thornton 1e32e5a515 Fix font rendering regression on macOS
This fixes a regression introduced in
77f2d6e853.

Fixes #3809.
2020-06-04 20:24:09 +00:00
Christian Duerr e6475c6753 Add version 0.4.3 entries to changelog 2020-06-03 19:52:50 +00:00
Fernando e009869623 Add whitespace after dropped file paths
Fixes #3767.
2020-06-03 00:01:26 +00:00
David Hewitt c102e845cd Add cargo feature for WinPTY 2020-06-02 21:31:06 +00:00
Christian Duerr 1dacc99183 Refactor Term/Grid separation
This commit aims to clear up the separation between Term and Grid to
make way for implementing search.

The `cursor` and `cursor_save` have been moved to the grid, since
they're always bound to their specific grid and this makes updating
easier.

Since the selection is independent of the active grid, it has been moved
to the `Term`.
2020-05-30 20:45:44 +00:00
Kirill Chibisov f7fb67f870 Update dependencies 2020-05-30 22:54:56 +03:00
Christian Duerr f1bf481eb8 Remove env_logger depedency
The env logger has been broken for over a year and is not used by anyone
as far as I know. This removes this option entirely in favor of
Alacritty's built-in logger level selection flags.
2020-05-29 06:22:16 +00:00
Christian Duerr 2b2b2bfd2a Add documentation about patch releases 2020-05-27 19:39:44 +03:00
Kirill Chibisov a669f12793 Set IUTF8 input setting on supported platforms
Fixes #3769.
2020-05-27 18:24:01 +03:00
Kirill Chibisov a14c51797f Fix build warnings on macOS/Windows 2020-05-27 14:46:52 +00:00
Matthias Krüger 88d87cfa86 Remove unused dependencies 2020-05-24 00:52:47 +00:00
Kirill Chibisov 69a9ee5e0e Update dependencies 2020-05-24 02:52:36 +03:00
Kirill Chibisov 0f82817c03 Update copypasta to v0.7.0
Fixes #3592.
2020-05-21 01:22:39 +03:00
Casper Rogild Storm ab1f173ccd Add subpixel anti-aliasing support on macOS 10.14+ 2020-05-17 21:14:13 +00:00
Christian Duerr 395fee2b01 Fix crash when writing wide char in last column
This resolves an issue where trying to write a fullwidth character in
the last column would crash Alacritty, if linewrapping was disabled.

Instead of assuming that the linewrap put after the linewrapping spacer
was successful, the character writing is now skipped completely when
trying to put a wide character in the last column.
2020-05-17 15:32:06 +00:00
Christian Duerr 922f48e52c Bump winit to 0.22.2
Fixes #2601.
Fixes #2475.
2020-05-16 23:31:00 +00:00
Alexey Chernyshov 9a0eac0a14 Change default color scheme to 'Tomorrow Night'
Fixes #3404.
2020-05-16 22:27:31 +00:00
Christian Duerr 7987002dcf Fix vi ScrollToBottom motion
This resolves an issue with the ScrollToBottom motion in vi mode where
it would jump between the first unoccupied cell across wrapped lines and the
first unoccupied cell in the current line.
2020-05-16 03:16:21 +03:00
Tyler G. Sherrard 058b036fe7 Refine documentation on disabling the URL launcher 2020-05-14 05:35:23 +03:00
Kirill Chibisov 7ae701d57b Add support for Fontconfig embolden and matrix options
Fixes #1754.
2020-05-14 04:25:11 +03:00
Christian Duerr b656fba35e Fix OSCs terminated by \x9c byte in unicode
Fixes #3591.
2020-05-13 12:58:34 +03:00
Christian Duerr 73c7f0c48d Remove prebuilt linux binaries
Fixes #3628.
2020-05-12 15:18:37 +00:00
lbonn 77f2d6e853 Fix emojis being blended with background
Fixes #1864.
2020-05-12 16:23:35 +03:00
Christian Duerr 2c2104a517 Fix INSTALL.md platform ordering 2020-05-07 23:10:51 +00:00
Pierre Massat 989f839d5d Add fontconfig to Clear Linux install requirements 2020-05-07 23:10:51 +00:00
Alexey Chernyshov 49a1ac96f4 Treat Shift + Backspace as Backspace 2020-05-07 15:37:49 +03:00
David Herberth becd7cf459 Don't hide cursor on modifier press
Fixes #2761.
2020-05-06 21:58:43 +00:00
Christian Duerr 81ce93574f Extend style guideline documentation 2020-05-05 22:50:23 +00:00
Kirill Chibisov 04f0bcaf54 Use frame callbacks instead of vsync on Wayland
Instead of blocking on vsync, Alacritty now requests a notification from
wayland about when the next frame should be rendered. this helps with
input latency, since it gives alacritty more time to process events
before a redraw. it also prevents alacritty from drawing unless the
compositor tells it to do so.

Fixes #2851.
2020-05-03 23:29:11 +00:00
Jeff Windsor a425fe6bfe Fix scrolling multiplier documentation
Fixes #3189.
2020-05-02 01:01:22 +00:00
David Herberth 17a3b85265 Use numbers instead of strings for additional mouse bindings
Fixes: #2861.
2020-05-02 02:03:28 +03:00
Kirill Chibisov 38d20d0c39 Call glFinish right after swap_buffers on X11
On X11 `swap_buffers` does not block for vsync. However the next OpenGl command
will block to synchronize (this is `glClear` in Alacritty), which causes a
permanent one frame delay.

Calling `glFinish` after swapping buffers forces Alacritty to finish the buffer
swap before returning control to the event loop.

Fixes #3061.
2020-05-01 20:57:25 +00:00
Matthias Krüger 6b45780f3a Fix clippy warnings 2020-05-01 19:28:43 +00:00
Casper Rogild Storm 7901b454ee Fix startup locale on macOS
Fixes #2800.
Fixes #2566.
2020-04-30 18:04:02 +00:00
David Hewitt f4689a1c36 Use embedded resource for window icon 2020-04-25 14:39:27 +00:00
Christian Duerr f48c43f4d2 Update depedencies 2020-04-23 19:04:13 +00:00
Christian Duerr 738c8de232 Bump minimum supported Rust version to 1.41.0 2020-04-23 19:04:13 +00:00