GithubHelp home page GithubHelp logo

xltan / tmux-fzf-url Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wfxr/tmux-fzf-url

0.0 0.0 0.0 1.38 MB

๐Ÿš€ Quickly open urls on your terminal screen!

License: Other

Shell 100.00%

tmux-fzf-url's Introduction

tmux-fzf-url

TPM Awesome License

A tmux plugin for opening urls from browser quickly without mouse.

screenshot

๐Ÿ“ฅ Installation

Prerequisites:

  • fzf
  • bash >= 4.0 (macOS ships with bash 3.2!)

Install using TPM

Add this line to your tmux config file, then hit prefix + I:

set -g @plugin 'wfxr/tmux-fzf-url'

Install manually

Clone this repo somewhere and source fzf-url.tmux at the config file.

๐Ÿ“ Usage

The default key-binding is u(of course prefix hit is needed), it can be modified by setting value to @fzf-url-bind at the tmux config like this:

set -g @fzf-url-bind 'x'

You can also extend the capture groups by defining @fzf-url-extra-filter:

# simple example for capturing files like 'abc.txt'
set -g @fzf-url-extra-filter 'grep -oE "\b[a-zA-Z]+\.txt\b"'

The plugin default captures the current screen. You can set history_limit to capture the scrollback history:

set -g @fzf-url-history-limit '2000'

You can use custom fzf options by defining @fzf-url-fzf-options.

# open tmux-fzf-url in a tmux v3.2+ popup
set -g @fzf-url-fzf-options '-w 50% -h 50% --multi -0 --no-preview --no-border'

๐Ÿ’ก Tips

  • You can mark multiple urls and open them at once.
  • The tmux theme showed in the screenshot is tmux-power.

๐Ÿ”— Other plugins

๐Ÿ“ƒ License

MIT (c) Wenxuan Zhang

tmux-fzf-url's People

Contributors

abrenk avatar igorepst avatar maniac-en avatar nifr avatar patoconnor43 avatar robhanlon22 avatar thiagowfx avatar wfxr avatar xltan avatar

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.