This file contains hidden or 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
| # Quite often I have this need that I have multiple terminal or tmux windows open, each in a different directory, | |
| # and I have to copy files from one folder to another. Here is a workflow which smoothens the process. | |
| # Workflow: Mark files using `fmark`, then copy them to another tmux window using `fpaste`. Done. And dusted. | |
| # Requirements: `fzf` | |
| # 1. Mark files using fzf | |
| fmark() { | |
| # Use find (or fd) to list files, fzf -m allows multi-select with Tab | |
| # We convert them to absolute paths so they can be pasted anywhere |
OlderNewer