mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-22 21:05:00 +00:00
Rename binary
This commit is contained in:
parent
3cf78e116a
commit
a1c4977ed1
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -239,7 +239,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tmux-thumbs"
|
name = "thumbs"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tmux-thumbs"
|
name = "thumbs"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
authors = ["Ferran Basora <fcsonline@gmail.com>"]
|
authors = ["Ferran Basora <fcsonline@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "A lightning fast version of tmux-fingers, copy/pasting tmux like vimium/vimperator"
|
description = "A lightning fast version copy/pasting like vimium/vimperator"
|
||||||
repository = "https://github.com/fcsonline/tmux-thumbs"
|
repository = "https://github.com/fcsonline/tmux-thumbs"
|
||||||
keywords = ["rust", "tmux", "tmux-plugin", "vimium", "vimperator"]
|
keywords = ["rust", "tmux", "tmux-plugin", "vimium", "vimperator"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
50
README.md
50
README.md
@ -326,6 +326,50 @@ This is the known list of versions of `tmux` compatible with `tmux-thumbs`:
|
|||||||
|
|
||||||
If you can check hat `tmux-thumbs` is or is not compatible with some specific version of `tmux`, let me know.
|
If you can check hat `tmux-thumbs` is or is not compatible with some specific version of `tmux`, let me know.
|
||||||
|
|
||||||
|
## Standalone `thumbs`
|
||||||
|
|
||||||
|
This project started as a `tmux` plugin but after reviewing it with some
|
||||||
|
friends we decided to explore all the possibilities of decopling thumbs from
|
||||||
|
`tmux`. Standalone `thumbs` has some similarities to [FZF](https://github.com/junegunn/fzf).
|
||||||
|
|
||||||
|
```
|
||||||
|
thumbs 0.3.0
|
||||||
|
A lightning fast version copy/pasting like vimium/vimperator
|
||||||
|
|
||||||
|
USAGE:
|
||||||
|
thumbs [FLAGS] [OPTIONS]
|
||||||
|
|
||||||
|
FLAGS:
|
||||||
|
-c, --contrast Put square brackets around hint for visibility
|
||||||
|
-h, --help Prints help information
|
||||||
|
-m, --multi Enable multi-selection
|
||||||
|
-r, --reverse Reverse the order for assigned hints
|
||||||
|
-u, --unique Don't show duplicated hints for the same match
|
||||||
|
-V, --version Prints version information
|
||||||
|
|
||||||
|
OPTIONS:
|
||||||
|
-a, --alphabet <alphabet> Sets the alphabet [default: qwerty]
|
||||||
|
--bg-color <background_color> Sets the background color for matches [default: black]
|
||||||
|
--fg-color <foreground_color> Sets the foregroud color for matches [default: green]
|
||||||
|
-f, --format <format>
|
||||||
|
Specifies the out format for the picked hint. (%U: Upcase, %H: Hint) [default: %H]
|
||||||
|
|
||||||
|
--hint-bg-color <hint_background_color> Sets the background color for hints [default: black]
|
||||||
|
--hint-fg-color <hint_foreground_color> Sets the foregroud color for hints [default: yellow]
|
||||||
|
-p, --position <position> Hint position [default: left]
|
||||||
|
-x, --regexp <regexp>... Use this regexp as extra pattern to match
|
||||||
|
--select-bg-color <select_background_color> Sets the background color for selection [default: black]
|
||||||
|
--select-fg-color <select_foreground_color> Sets the foreground color for selection [default: blue]
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
If you want to enjoy terminal hints, you can do things like this without `tmux`:
|
||||||
|
|
||||||
|
```
|
||||||
|
> alias pick='thumbs -u -r | xsel --clipboard -i'
|
||||||
|
> git log | pick
|
||||||
|
```
|
||||||
|
|
||||||
## Background
|
## Background
|
||||||
|
|
||||||
As I said, this project is based in [tmux-fingers](https://github.com/Morantron/tmux-fingers). Morantron did an extraordinary job, building all necessary pieces in Bash to achieve the text picker behaviour. He only deserves my gratitude for all the time I have been using [tmux-fingers](https://github.com/Morantron/tmux-fingers).
|
As I said, this project is based in [tmux-fingers](https://github.com/Morantron/tmux-fingers). Morantron did an extraordinary job, building all necessary pieces in Bash to achieve the text picker behaviour. He only deserves my gratitude for all the time I have been using [tmux-fingers](https://github.com/Morantron/tmux-fingers).
|
||||||
@ -336,6 +380,12 @@ During those days another alternative appeared, called [tmux-picker](https://git
|
|||||||
|
|
||||||
I was curious to know if this was possible to be written in [Rust](https://www.rust-lang.org/), and soon I realized that was something doable. The ability to implement tests for all critic parts of the application give you a great confidence about it. On the other hand, Rust has an awesome community that lets you achieve this kind of project in a short period of time.
|
I was curious to know if this was possible to be written in [Rust](https://www.rust-lang.org/), and soon I realized that was something doable. The ability to implement tests for all critic parts of the application give you a great confidence about it. On the other hand, Rust has an awesome community that lets you achieve this kind of project in a short period of time.
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
|
||||||
|
- [X] Support multi selection
|
||||||
|
- [X] Decouple `tmux-thumbs` from `tmux`
|
||||||
|
- [ ] Code [Kitty](https://github.com/kovidgoyal/kitty) plugin, now that `thumbs` can run standalone
|
||||||
|
|
||||||
## Contribute
|
## Contribute
|
||||||
|
|
||||||
This project started as a side project to learn Rust, so I'm sure that is full
|
This project started as a side project to learn Rust, so I'm sure that is full
|
||||||
|
@ -13,7 +13,7 @@ use std::io::{self, Read};
|
|||||||
fn app_args<'a>() -> clap::ArgMatches<'a> {
|
fn app_args<'a>() -> clap::ArgMatches<'a> {
|
||||||
return App::new("thumbs")
|
return App::new("thumbs")
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about("A lightning fast version of tmux-fingers, copy/pasting tmux like vimium/vimperator")
|
.about("A lightning fast version copy/pasting like vimium/vimperator")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("alphabet")
|
Arg::with_name("alphabet")
|
||||||
.help("Sets the alphabet")
|
.help("Sets the alphabet")
|
||||||
|
Loading…
Reference in New Issue
Block a user