Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
davystrong committed Sep 5, 2021
0 parents commit ed3b7ed
Show file tree
Hide file tree
Showing 10 changed files with 759 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
45 changes: 45 additions & 0 deletions .vscode/launch.json
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}"
}
]
}
285 changes: 285 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Cargo.toml
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"
5 changes: 5 additions & 0 deletions README.md
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.
12 changes: 12 additions & 0 deletions src/cli.rs
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,
}
Loading

0 comments on commit ed3b7ed

Please sign in to comment.