Coder Social home page Coder Social logo

tmux-hints's Introduction

tmux-hints Build Status

tmux-hints is an application to find matches, ie. urls and navigate them with the keyboard.

It's a rewrite of a previous tool written by me in go tmux-url-nav.

Inspired by another tool in perl tmux-url-select.

Is it any good?

Yes

Demo

Requirements

Depends on rust, tmux and stty.

Installation

From crates.io, just cargo install tmux-hints and make sure that cargo bin it's in your path.

Or from source, runn cargo build and copy/link target/release/tmux-hints to somewhere in your path.

In both cases, you need to a key binding to your .tmux.conf:

bind some-key-here run tmux-hints

Where some-key-here is any key you want to use to start hints selection.

Usage

Once you're inside tmux-hints, keybindings:

  • j: down
  • k: up
  • 0-9: select by number
  • p: paste (insert text into the tmux window)
  • o: open link
  • O: open link without closing
  • c: print current configuration
  • q: quit

Configuration

The configuration uses toml format, you need to create a new file in your $XDG_CONFIG_HOME (in most of the *nix ~/.config/) called tmux-hints.toml

default config

opener = 'xdg-open'
show_position = true

[hint.unselected]
background = 0
foreground = 6
bold = false
dim = false
blink = false
reverse = false
hidden = false
underlined = false

[hint.selected]
background = 6
foreground = 0
bold = false
dim = false
blink = false
reverse = false
hidden = false
underlined = false

[position.unselected]
background = 0
foreground = 6
bold = false
dim = false
blink = false
reverse = false
hidden = false
underlined = false

[position.selected]
background = 6
foreground = 0
bold = false
dim = false
blink = false
reverse = false
hidden = false
underlined = false

FAQ

Q: Why rust?

A: Needed a excuse to do something on it.

tmux-hints's People

Contributors

roger avatar dependabot-preview[bot] avatar chibby0ne avatar

Stargazers

Scott avatar  avatar  avatar  avatar Andrew Prentice avatar Laysa Uchoa avatar  avatar Auke Willem Oosterhoff avatar

Watchers

James Cloos avatar Hashirim avatar

tmux-hints's Issues

Needs CI

Would be nice if the packaging and publishing to crates.io happened through a CI.

Will be working on this as well.

Multiple Regex

Add different kinds of regex(finding files?) and some shortcut to change between them

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.