Code Monkey home page Code Monkey logo

Comments (6)

sainnhe avatar sainnhe commented on June 7, 2024

Isn't the clipboard doing this?

from tmux-fzf.

r-darwish avatar r-darwish commented on June 7, 2024

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.

sainnhe avatar sainnhe commented on June 7, 2024

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.

r-darwish avatar r-darwish commented on June 7, 2024

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.

sainnhe avatar sainnhe commented on June 7, 2024
  1. Your request can be done via a zsh completion func, my collection can exactly do this: https://github.com/sainnhe/zsh-completions
  2. 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.

r-darwish avatar r-darwish commented on June 7, 2024

I'll try implementing it in a PR. Perhaps it will make more sense then

from tmux-fzf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.