mrjones2014 / ctrlg

A command line context switcher, written in Rust :crab:
https://crates.io/crates/ctrlg
MIT License
30 stars 1 forks source link

[Feature]: add key bind to copy selected path to clipboard #46

Closed mrjones2014 closed 2 years ago

mrjones2014 commented 2 years ago

Similar Issues

Description

Probably ctrl + y for the key binding. It should copy the selected path to the clipboard and exit.

Use Case

When you want to run a command on the selected path but don't necessarily want to cd to it.

mrjones2014 commented 2 years ago

We will need to decide on a crate to copy to clipboard.

mrjones2014 commented 2 years ago

Good candidate is the one used by Alacritty: https://github.com/alacritty/copypasta

mrjones2014 commented 2 years ago

Implementation went smoothly but getting a linker error in CI: #52

mrjones2014 commented 2 years ago

Switched to 1Password/arboard and it "just works" :tm:

No errors in CI!