-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ed3b7ed
Showing
10 changed files
with
759 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'filo-clipboard'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=filo-clipboard", | ||
"--package=filo-clipboard" | ||
], | ||
"filter": { | ||
"name": "filo-clipboard", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'filo-clipboard'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=filo-clipboard", | ||
"--package=filo-clipboard" | ||
], | ||
"filter": { | ||
"name": "filo-clipboard", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "filo-clipboard" | ||
version = "0.1.0" | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
clipboard-win = "4.2.1" | ||
winapi = {version = "0.3.9", features = ["winuser", "std", "impl-default"]} | ||
error-code = "2.3.0" | ||
lazy_static = "1.4.0" | ||
clap = "3.0.0-beta.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# FILO Clipboard | ||
|
||
Very simple First In Last Out clipboard for Windows written in Rust. Text is automatically added to the clipboard history (the max length of which can be specified) and the clipboard is triggered with Ctrl+Shift+V. | ||
|
||
The objective of this program is to do one thing without slowing down the computer with other unnecessary features. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use clap::{AppSettings, Clap}; | ||
|
||
/// This program provides a FILO queue from values copies to the clipboard, | ||
/// which can be used with Ctrl+Shift+V | ||
#[derive(Clap)] | ||
#[clap(version = "1.0", author = "David A. <github.com/davystrong>")] | ||
#[clap(setting = AppSettings::ColoredHelp)] | ||
pub struct Opts { | ||
/// The maximum number of items to keep in the clipboard history | ||
#[clap(long, default_value = "50")] | ||
pub max_history: usize, | ||
} |
Oops, something went wrong.