parent
e46d0c5f52
commit
3dc0287de0
@ -0,0 +1,23 @@ |
||||
{ lib, rustPlatform, fetchFromGitHub }: |
||||
|
||||
rustPlatform.buildRustPackage rec { |
||||
pname = "thumbs"; |
||||
version = "0.7.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fcsonline"; |
||||
repo = "tmux-thumbs"; |
||||
rev = version; |
||||
sha256 = "sha256-PH1nscmVhxJFupS7dlbOb+qEwG/Pa/2P6XFIbR/cfaQ="; |
||||
}; |
||||
|
||||
cargoSha256 = "sha256-6htKiXMMyYRFefJzvDnmdx3CJ3XL8zONhGlV2wcbr9g="; |
||||
|
||||
cargoPatches = [ ./fix.patch ]; |
||||
meta = with lib; { |
||||
homepage = "https://github.com/fcsonline/tmux-thumbs"; |
||||
description = "A lightning fast version copy/pasting like vimium/vimperator"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ ghostbuster91 ]; |
||||
}; |
||||
} |
@ -0,0 +1,13 @@ |
||||
diff --git a/src/swapper.rs b/src/swapper.rs
|
||||
index 6cf1e89..bcb0969 100644
|
||||
--- a/src/swapper.rs
|
||||
+++ b/src/swapper.rs
|
||||
@@ -215,7 +215,7 @@ impl<'a> Swapper<'a> {
|
||||
};
|
||||
|
||||
let pane_command = format!(
|
||||
- "tmux capture-pane -t {active_pane_id} -p{scroll_params} | tail -n {height} | {dir}/target/release/thumbs -f '%U:%H' -t {tmp} {args}; tmux swap-pane -t {active_pane_id}; {zoom_command} tmux wait-for -S {signal}",
|
||||
+ "tmux capture-pane -t {active_pane_id} -p{scroll_params} | tail -n {height} | {dir}/thumbs -f '%U:%H' -t {tmp} {args}; tmux swap-pane -t {active_pane_id}; {zoom_command} tmux wait-for -S {signal}",
|
||||
active_pane_id = active_pane_id,
|
||||
scroll_params = scroll_params,
|
||||
height = self.active_pane_height.unwrap_or(i32::MAX),
|
Loading…
Reference in new issue