aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-22Remove `selection_start_point/side`issue-1336Christian Dürr
2018-06-22Move clearing of start pos/side to `event.rs`Christian Duerr
To reduce the required amount of code duplication the clearing of the selection start position and side has been moved to a helper method in the `event.rs` module which is called whenever any selection is created. Since the double and triple clicks always create a new selection without having to rely on inaccurate movement position reports, these just skip the start position/side step by setting it to `None` when the selection is created and instead use the mouse_coords() method to get the accurate mouse position.
2018-06-21Remove 'selection_started' method from ActionContextChristian Duerr
By switching the start position/side of the selection to an `Option` it was made possible to remove the `selection_started` method in favor of checking if the two variables are `Some`. This also renames `selection_start_pos` to `selection_start_point` to unify the naming of variables.
2018-06-21Fix selection start point lagging behind cursorChristian Dürr
Since the mouse start position has been the first movement event after the mouse button was held down, there have been some issues with the start point lagging behind the cursor because movement events were not reported from the initial position but there was a gap until movement starts reporting. To fix this whenever the mouse button is pressed, the position and cell side is stored on the `Mouse` struct. Because of this it does not matter anymore if the movement events are all reported and we can just start a selection using the stored position/side whenever there currently is no selection present. This fixes #1366.
2018-06-19Change green implementation to use the macroasoderman
2018-06-18Override dynamic_title when --title is specifiedNathan Lilienthal
2018-06-17Move to cargo clippyChristian Duerr
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-16Add Copy/Cut/Paste keysChristian Duerr
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-08Reduce Increase-/DecreaseFontSize step to 0.5Felippe da Motta Raposo
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-07Add working --class and --title CLI parametersTezkerek
2018-06-07Allow disabling DPI scalingChristian Duerr
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-05-30Reduce debug level for releaseTatsuyuki Ishi
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-29Update to glutin 0.16.0Francesca Frangipane
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-25Fix typo in error messageRandy Ramos
2018-05-25Fix locale_id for older versions of OS X (<= 10.11)Bradford Boyle
This fixes a regression introduced in https://github.com/jwilm/alacritty/pull/1087/files#diff-5ffadea12561d6964b05ac2a0b8e388fL33.
2018-05-14handle older macOS versionsJoe Moon
add logic to fallback to `localeIdentifier` if `currentLocale.languageCode` and `currentLocale.countryCode` are not available.
2018-05-14macos: add check for valid localeJoe Moon
2018-05-14remove commented out lineJoe Moon
2018-05-14Set $LANG env var using languageCode, countryCodeJoe Moon
fixes #933 Using logic from https://github.com/gnachman/iTerm2/blob/79aff4d59fd591e7628649bcabe5f27541740bf6/sources/PTYSession.m#L1703
2018-05-11Fix clippy lintsChristian Duerr
2018-05-11Paste path into terminal when drag & dropping fileChristian Duerr
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-05Don't paste selection when in mouse modeChristian Duerr
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-01Fix completion install instructions for Fish on macOS (#1237)zhouji
2018-04-27macOS: fixes segfault on nightlyJoe Moon
fixes #1264
2018-04-14alacritty: add support for OpenBSD.Matt T. Proud
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-03-29Oxford commaBernardo Meurer
Added an Oxford comma to the OS support list
2018-03-29Fixed typos, alphabetical orderingBernardo Meurer
freeBSD->FreeBSD. Ordered OS support alphabetically.
2018-03-27add freeBSD on the topMatthiasSchuster
2018-03-23Fix typoSaugat Acharya
2018-03-22Explicitly call log::set_max_level (Closes: #1201)Harlan Lieberman-Berg
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-13Try to create window with different SRGB config when failedYOSHIOKA Takuma
This may truly solve #921 (and issue caused by #1178) <https://github.com/jwilm/alacritty/issues/921#issuecomment-372619121>.
2018-03-12Switch meta key to alt instead of superChristian Duerr
2018-03-12Add modifiers to mouse eventsChristian Duerr
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-12Fix clippy lintsCelti Burroughs
2018-03-12Rename button_state to prev_state for clarityCelti Burroughs
2018-03-12Extend SGR and VT200 (normal) mouse supportCelti Burroughs
With this commit, Alacritty now reports presses and releases of all three mouse buttons properly, dragging events with all three buttons, and mouse movement events where no button is pressed. It does not report more than three buttons due to inherent limitations of the VT200 and SGR protocol modes. It does not report modifier keys on mouse buttons due to practical considerations. Fixes #714, #506.
2018-03-12Enable SRGB (#1178)らりお (YOSHIOKA Takuma)
This will solve the error "Error creating GL context; Couldn't find any pixel format that matches the criterias." (I think this maybe a problem of mesa (18.0.0_rc4), but I'm not sure. See the thread <https://mastodon.cardina1.red/@lo48576/99670278063669603> for my debug log.
2018-03-12Prevent negative cell dimensions (#1181)Christian Duerr
Prevent the cell dimensions from going below 1, this bug resulted in allocation of large amounts of memory in the scrollback PR but is also present on master. Currently the approach is to just `panic!`, however an `eprintln!` and `exit` could be an alternative too. I don't think it's realistic to check this at startup and it should have no performance impact since the failing method is only called once at startup. To make it a bit more clear what kind of values are accepted, the datatypes of offsets and paddings have also been changed so that these don't accept floats anymore and padding can never be negative. This should allow us to be a bit more strict with the config to make sure that errors are printed when invalid values are specified (like negative padding). This fixes #1167.
2018-03-12Add completion install instructions for FishJesse Cooke
2018-03-12Added -d & -e to fish completionsJesse Cooke
2018-03-12Add fish shell completionsJesse Cooke
2018-03-09Add centos missing dependencyashwinath
2018-03-09Add caret keyMichael Schumacher
2018-03-09Fix benchmarksChristian Duerr
2018-03-07Add shell completions and manpageChristian Duerr
* Add manpage Adds a basic manpage that was autogenerated with `help2man` and then slightly adjusted with information from the README.md and better formatting. * Add zsh completions Add completions for the zsh shell. These should be complete and even allow completion of the command inside `--command` and `-e`. * Add bash completions The bash completions are almost on the same level as the zsh completions. The only little thing the bash completions do not do is complete inside of `--command` and `-e`, instead bash just stops completion after these options. * Update readme with manpage and completions Added the install instructions for the manpage and completions to the README.md. Also tweaked the current readme a slight bit because the build section was structured in a slightly confusing way.
2018-03-04Remove all instances of unwrap() from configChristian Duerr
Unwrapping inside the config file parsing can lead to some issues that prevent us from falling back to a default configuration file. One instance of that issue was mentioned in #1135. Now all instances of `unwrap()` have been removed and replaced with proper error handling. This will make the config more robust and prevents live reload from silently breaking while alacritty is running. This also fixes a few currently existing clippy issues. Clippy added an additonal lint which complains about `MyStruct { field: field }`. These issues have been fixed, except for some false-positives and issues in external macros which will probably be fixed with future updates (rust-lang-nursery/bitflags#149)
2018-02-28Update arraydeque dependencyAndy Lok
2018-02-28Upgrade dependenciesSam Rijs
Upgrading glutin to the latest version allows building alacritty even with old XRandr versions. This is relevant for Debian machines (and other ancient systems).
2018-02-27Fix heading for NixOS/NixpkgsMindTooth
The level of heading were one to high.
2018-02-13Add install instructions via cargo --gitOliver Jan Krylow