Comments (6)
Isn't the clipboard
doing this?
from tmux-fzf.
Clipboard shows things that were already copied (probably using the mouse).
What I'm suggesting is a menu that will show all words that appear on tmux (with tmux capture-pane
like in the blog post) and allows selecting one of these.
This way I can run docker ps
and insert the ID of one of the container to a docker rm
command without the need to copy it to the clipboard before.
from tmux-fzf.
So we can pipe the content of $(tmux capture-pane -ep -t <target>)
to tmux-fzf and filter it, then what should we do with the filtered output?
The existing actions will execute certain commands with the output, for example we can kill a session via tmux kill-session
command with the filtered output (the output is a target session).
But in your case, it looks like you'd like to execute a custom command such as docker rm
.
IMO it might be better to write your own script to do this.
from tmux-fzf.
I think that just pasting the output to tmux will be generic enough, this way I can type docker rm
and then complete the ID
from tmux-fzf.
- Your request can be done via a zsh completion func, my collection can exactly do this: https://github.com/sainnhe/zsh-completions
- The filtered output will be an entire line, are you sure this is suitable to directly paste it to a pane?
Sorry but I still didn't get the point why we need this.
from tmux-fzf.
I'll try implementing it in a PR. Perhaps it will make more sense then
from tmux-fzf.
Related Issues (20)
- Does not seem to respect FZF_DEFAULT_OPTS on macOS Catalina HOT 12
- How to not include [cancel] in the menu? HOT 1
- <prefix> + Ctrl + F not launching tmux-fzf HOT 1
- Conflict with 'tmux-plugins/tmux-resurrect' HOT 1
- Removing prefixes for `TMUX_FZF_*_FORMAT` HOT 1
- tmux: unknown option -- K HOT 4
- A way to set preview to starting lines HOT 4
- Toggle `pane switch` directly HOT 1
- PANE format with padding. HOT 1
- Add option in session menu to create new session
- [Feature request] tmuxinator integration
- Session names that contain spaces are unusable
- Multiple keybinds — library functions? HOT 2
- `attach` sub command for session.sh HOT 1
- copy-mode commands
- CopyQ clipboard only completes on number, not on content HOT 11
- The fzf window has incomplete borders. HOT 4
- Rename commands would broke if the title contained '/' HOT 2
- Session -> New not working with tmux next-3.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-fzf.