Commit Graph

32 Commits

Author SHA1 Message Date
Christian Duerr fe9644805b
Bump copypasta to 0.6.1 2019-11-26 00:45:35 +01:00
Cole Helbling cf714f1da0 Bump x11-clipboard to 0.4.0 2019-11-25 23:04:16 +01:00
Christian Duerr 356e418636
Fix clippy warnings 2019-11-02 01:25:34 +01:00
Christian Duerr d9d698614c
Fix clippy issues 2019-08-16 01:33:49 +02:00
Kirill Chibisov 1da986ae2b
Fix smithay-clipboard integration
Fixes: #2574
2019-08-16 01:33:37 +02:00
Kirill Chibisov 44c1e9093d Fix copypasta README.md formatting 2019-07-24 23:45:58 +00:00
Christian Duerr f002171c84
Fix performance issues with text reflow
Fixes #2567.
Fixes #2414.
2019-06-23 23:29:01 +00:00
Christian Duerr 1b26059a06
Bump smithay-clipboard dependency version 2019-06-15 19:08:51 +00:00
Christian Duerr bc2c34eb7f
Add wayland primary selection clipboard support 2019-06-09 11:46:31 +00:00
Christian Duerr 9e89aaa477
Switch from copypasta to rust-clipboard
This switches our own `copypasta` crate with the more standardized
`clipboard` library, which allows us to get rid of the `xclip`
dependency on X11.

Additionally, this lays the foundation for native Wayland clipboard
support once the clipboard crate is updated (or a fork is created).

Fixes #5.
2019-04-28 20:21:39 +00:00
Theodore Dubois dbd8538762 Split alacritty into a separate crates
The crate containing the entry point is called alacritty, and the crate
containing everything else is called alacritty_terminal.
2019-04-28 13:24:58 +00:00
Christian Duerr dd756c27fc
Fix selection copying on Windows
The `copypasta` crate incorrectly mapped the secondary clipboard on
Windows to the primary clipboard, leading to the primary clipboard
getting overwritten whenever the selection clipboard was updated.

The new Windows clipboard mimics the macOS clipboard, which also does
not have a selection clipboard.

This fixes #2050.
2019-04-21 00:52:06 +00:00
Matthias Krüger 3478676f8f Remove redundant closures and imports 2019-04-11 07:54:26 +00:00
Christian Duerr e98ea64c74
Bump dependencies 2019-04-03 22:57:54 +00:00
Christian Duerr cfd025b528
Add rustfmt style guide 2019-03-30 16:48:36 +00:00
Nathan Lilienthal 04707cbba6 Normalize Log Message Strings
The general style for errors, warnings and info messages is to start
with a capitalized letter and end without a period. The main exception
is when dealing with nouns that are clearer with special case handling,
e.g. "macOS failed to work" or "ioctl is borked".
2019-01-07 00:06:57 +00:00
Joe Wilm 217ad9ec28 Upgrade to Rust 2018
This resolves a lot of NLL issues, however full NLL will be necessary to
handle a couple of remaining issues.
2018-12-10 17:53:56 +00:00
Matthias Krüger a6764ba05f Use tool lints for clippy allow/deny lint attributes 2018-12-07 13:58:11 +00:00
Zac Pullar-Strecker 15e0deae2b Add support for Windows (#1374)
Initial support for Windows is implemented using the winpty translation
layer. Clipboard support for Windows is provided through the `clipboard`
crate, and font rasterization is provided by RustType.

The tty.rs file has been split into OS-specific files to separate
standard pty handling from the winpty implementation.

Several binary components are fetched via build script on windows
including libclang and winpty. These could be integrated more directly
in the future either by building those dependencies as part of the
Alacritty build process or by leveraging git lfs to store the artifacts.

Fixes #28.
2018-10-16 10:02:52 -07: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
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
Chet Gurevitch 1117bb5fda Update deps 2017-12-23 21:39:09 -08:00
Aaron Hill 5f7885749c Use clippy = "*", update, and fix some warnings (#796)
Because there are so many clippy warnings in the current codebase,
this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]',
to make it easier to fix warnings incrementally.
2017-09-27 17:29:44 -07:00
Joe Wilm d0283141b5 Decouple input processing from Term
Should make input processing much more easily tested.
2017-02-02 09:25:08 -08:00
johalun 398e31fa37 Make it run on FreeBSD 2017-01-18 22:28:16 -08:00
Joe Wilm 06991e6eee Better error message when xclip is not available
Resolves #37.
2017-01-02 20:15:24 -08:00
Joe Wilm f1336ee1c7 Implement clipboard store for x11 with xclip 2016-12-29 17:57:50 -05:00
Joe Wilm 7cdf06e2be Implement copypasta::Store for macOS pasteboard
Only works with strings, currently.
2016-12-24 18:08:46 -05:00
Joe Wilm bde4dacc79 Misc formatting fixes 2016-12-16 22:48:04 -08:00
Joe Wilm 0421012c2d Replace remaining use of `try!` with `?` 2016-12-16 22:29:35 -08:00
Joe Wilm 5ddf525747 Implement copypasta::Load for macos::Clipboard 2016-10-08 20:57:30 -07:00
Joe Wilm 9d491f9f67 Start implementing copypasta, a clipboard library
Currently it only supports x11 via the xclip program, and that only
supports reading the clipboard contents.
2016-10-08 18:42:33 -07:00