Commit Graph

801 Commits

Author SHA1 Message Date
yshui 0d5edb7a7a Add support for LCD-V pixel mode 2018-07-21 18:05:14 +00:00
Aleksandr Pasechnik a6e8974a06 Send newline with NumpadEnter 2018-07-21 17:41:39 +00:00
Christian Duerr 48c0a7b067
Allow specifying modifiers for mouse bindings 2018-07-21 17:37:13 +00:00
Christian Duerr 5153c20ace
Switch from deprecated `std::env::home_dir` to `dirs::home_dir` 2018-07-20 18:03:37 +00:00
Christian Duerr 512fc61091
Remove redundant dependency from deb build 2018-07-19 16:47:53 +00:00
Christian Duerr 3dabb9783e
Fix 'cargo-deb' desktop file name 2018-07-18 18:39:48 +00:00
zaript 7cc9c11bc9 Fix clone URL in deb install instructions 2018-07-16 16:39:49 +00:00
Christian Duerr 96b3d737a8
Add bright foreground color option
It was requested in jwilm/alacritty#825 that it should be possible to
add an optional bright foreground color.

This is now added to the primary colors structure and allows the user to
set a foreground color for bold normal text. This has no effect unless
the draw_bold_text_with_bright_colors option is also enabled.

If the color is not specified, the bright foreground color will fall
back to the normal foreground color.

This fixes #825.
2018-07-15 19:47:07 +00:00
Anthony Clays 4ae2bc66f2 Add support for cursor shape escape sequence 2018-07-15 16:02:44 +00:00
Patrycja Balik 18f6a7814a Add config for unfocused window cursor change 2018-07-15 13:10:33 +00:00
Micha Gorelick 4928b0ae75 Add `cargo deb` build instructions
Updated the `Cargo.toml` file and added a `package.metadata.deb`
subsection to define how to build a debian "deb" install file using
`cargo deb`. This will allow debian/ubuntu users to install `alacritty`
using their system's package manager. It also will make it easier to
provide pre-built binaries for those systems.

Also fixed a stray debug line in the bash autocomplete script that was
writting to a tempfile.
2018-07-15 13:00:58 +00:00
Christian Duerr 7433f45ff9
Replace debug asserts with static_assertions
To check that transmutes will work correctly without having to rely on
error-prone runtime checking, the `static_assertions` crate has been
introduced. This allows comparing the size of types at compile time,
preventing potentially silent breakage.

This fixes #1417.
2018-07-05 23:05:33 +00:00
worldofpeace 68b3d8abfd Remove outdated comment about NixOS 2018-07-03 16:35:13 +00:00
Matthias Krüger 21eb50aa50 Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues
that were discovered by this change have also been fixed.
2018-07-02 22:11:24 +00:00
Matthias Krüger 985ba306c7 Remove unnecessary clippy lint annotations
We moved to "cargo clippy" in 5ba34d4f97 and
removing the clippy lint annotations in `src/lib.rs` does not cause any additional warnings.

This also changes `cargo clippy` to use the flags required for checking integration tests.
2018-07-01 20:20:29 +00:00
Christian Duerr 12f952df42
Update manpage to document all CLI options
The introduction of `--class` has added a flag to the CLI without adding
it to the manpage. This has been fixed by updating the manpage.

This also adds the default values of `--class` and `--title` to the CLI
options.
2018-07-01 16:36:15 +00:00
Christian Duerr 12afbd007d
Fix clippy issues 2018-07-01 16:31:46 +00:00
Avindra Goolcharan d5690f6cc7 Add opensuse zypper install method to readme 2018-07-01 14:22:57 +00:00
Craig Furman 015a6d4c03 Make compilation of binary a phony target 2018-06-26 20:35:50 +00:00
Felippe da Motta Raposo caf4580daa Ignore mouse input if window is unfocused 2018-06-23 10:13:19 +00:00
asoderman 128c25ee8b Change green implementation to use the macro 2018-06-19 21:27:47 +00:00
Nathan Lilienthal f55252ec85 Override dynamic_title when --title is specified 2018-06-18 05:26:54 +00:00
Christian Duerr 5ba34d4f97
Move to cargo clippy
Using clippy as a library has been deprecated, instead the `cargo
clippy` command should be used instead. To comply with this change
clippy has been removed from the `Cargo.toml` and is now installed with
cargo when building in CI.

This has also lead to a few new clippy issues to show up, this includes
everything in the `font` subdirectory. This has been fixed and `font`
should now be covered by clippy CI too.

This also upgrades all dependencies, as a result this fixes #1341 and
this fixes #1344.
2018-06-17 09:19:30 +00:00
Christian Duerr 0f700a01bd
Add Copy/Cut/Paste keys
This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
2018-06-16 10:11:47 +00:00
Felippe da Motta Raposo 6cbae83f17 Reduce Increase-/DecreaseFontSize step to 0.5
Until now the Increase-/DecreaseFontSize keybinds hand a step size of 1.0. Since the font size however is multiplied by two to allow more granular font size control, this lead to the bindings skipping one font size (incrementing/decrementing by +-2).

To fix this the step size of the Increase-/DecreaseFontSize bindings has been reduced to the minimum step size that exists with the current font configuration (0.5). This should allow users to increment and decrement the font size by a single point instead of two.

This also adds a few tests to make sure the methods for increasing/decreasing/resetting font size work properly.
2018-06-08 23:32:21 +00:00
Tezkerek 66acf1e03d Add working --class and --title CLI parameters 2018-06-07 16:53:16 +00:00
Christian Duerr 93780ef092
Allow disabling DPI scaling
This makes it possible to disable DPI scaling completely, instead the
the display pixel ration will always be fixed to 1.0.

By default nothing has changed and DPI is still enabled, this just seems
like a better way than running `WINIT_HIDPI_FACTOR=1.0 alacritty` every
time the user wants to start alacritty.

It would be possible to allow specifying any DPR, however I've decided
against this since I'd assume it's a very rare usecase. It's also still
possible to make use of `WINIT_HIDPI_FACTOR` to do this on X11.

Currently this is not updated at runtime using the live config update,
there is not really much of a technical limitation why this woudn't be
possible, however a solution for that issue should be first added in
jwilm/alacritty#1346, once a system is established for changing DPI at
runtime, porting that functionality to this PR should be simple.
2018-06-07 15:52:06 +00:00
Tatsuyuki Ishi 2fcdd40a81 Reduce debug level for release
Backtraces are useful, but line-level debuginfo bloats the binary, and has impact on compile times notably. This reduces it to function-level debuginfo which is a good compromise point.
2018-05-30 10:23:03 -07:00
Francesca Frangipane 765949f256 Update to glutin 0.16.0
Note that `WM_CLASS` is now set to `"alacritty", "Alacritty"`
instead of the previous value of `"Alacritty", "Alacritty"`. This
seems to be more standard.

This also contains some revised recommendations for installing the
`.desktop` file.
2018-05-29 09:50:49 -07:00
Randy Ramos f7172fd6e7 Fix typo in error message 2018-05-25 20:51:55 +00:00
Bradford Boyle 4d4e62db92 Fix locale_id for older versions of OS X (<= 10.11)
This fixes a regression introduced in https://github.com/jwilm/alacritty/pull/1087/files#diff-5ffadea12561d6964b05ac2a0b8e388fL33.
2018-05-25 13:57:47 +00:00
Joe Moon 24e8a19e7d handle older macOS versions
add logic to fallback to `localeIdentifier` if
`currentLocale.languageCode` and `currentLocale.countryCode` are not
available.
2018-05-14 12:37:13 -07:00
Joe Moon 75529be729 macos: add check for valid locale 2018-05-14 12:37:13 -07:00
Joe Moon f818109856 remove commented out line 2018-05-14 12:37:13 -07:00
Joe Moon 1c08fae156 Set $LANG env var using languageCode, countryCode
fixes #933

Using logic from 79aff4d59f/sources/PTYSession.m (L1703)
2018-05-14 12:37:13 -07:00
Christian Duerr e34dccdabf Fix clippy lints 2018-05-11 16:54:19 -07:00
Christian Duerr 5728136350 Paste path into terminal when drag & dropping file
It's now possible to insert the path of a file or directory by dropping
it from the file manager into alacritty.

This fixes #1301.
2018-05-11 16:54:19 -07:00
Christian Duerr 5be0e3ad8f Don't paste selection when in mouse mode
When the mouse mode is set using either 1000h, 1002h or 1003h, the
selection should not be pasted when hitting the middle mouse button,
because it is job of the application to handle this when mouse mode is
enabled.

This has been solved by checking for the current mouse modes whenever
the `PasteSelection` binding is invoked.

This fixes #1215.
2018-05-05 08:10:57 -07:00
zhouji e2abd8945a Fix completion install instructions for Fish on macOS (#1237) 2018-05-01 10:58:52 -07:00
Joe Moon abe678c686 macOS: fixes segfault on nightly
fixes #1264
2018-04-27 17:36:39 -07:00
Matt T. Proud 1b7ffea136 alacritty: add support for OpenBSD.
This commit expands the conditional compilation directives to support
building Alacritty for OpenBSD.  The build succeeds, and Alacritty runs
without issue once https://github.com/rust-lang/libc/pull/957 has been
merged and added to a versioned libc release.

This has been tested on the recently-released OpenBSD 6.3 on amd64 with
rustc 1.24.0 from its standard ports tree.
2018-04-14 10:17:50 -07:00
Bernardo Meurer 3d75c49191 Oxford comma
Added an Oxford comma to the OS support list
2018-03-29 19:47:39 -07:00
Bernardo Meurer b0be5b6bc0 Fixed typos, alphabetical ordering
freeBSD->FreeBSD.
Ordered OS support alphabetically.
2018-03-29 19:47:39 -07:00
MatthiasSchuster fff0e11faa add freeBSD on the top 2018-03-27 09:58:18 -07:00
Saugat Acharya dcc4b75038 Fix typo 2018-03-23 10:20:35 -07:00
Harlan Lieberman-Berg 0edac74e61 Explicitly call log::set_max_level (Closes: #1201)
For some reason, log 0.4 requires that we explicitly set the log level
with log::set_max_level or it defaults to Off.  The documentation
isn't clear but suggests we must do this in addition to doing the
filtration ourselves in the Log impl.
2018-03-22 18:10:27 -07:00
YOSHIOKA Takuma 6debc4f335 Try to create window with different SRGB config when failed
This may truly solve #921 (and issue caused by #1178)
<https://github.com/jwilm/alacritty/issues/921#issuecomment-372619121>.
2018-03-13 16:43:15 -07:00
Christian Duerr 196e602387 Switch meta key to alt instead of super 2018-03-12 23:21:19 -07:00
Christian Duerr f936f40ad2 Add modifiers to mouse events
This commits adds modifiers to the mouse events.

It's an attempt at merging https://github.com/jwilm/alacritty/pull/1141
into this branch/PR.
2018-03-12 23:21:19 -07:00
Celti Burroughs b7e0005334 Fix clippy lints 2018-03-12 23:21:19 -07:00