pick

command
v0.0.0-...-5e37444 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 7 Imported by: 0

README

pick - cross platform dmenu replacement

I really want dmenu on my work OSX machine. I've found similar tools that are OSX specific but nothing that works as easily as dmenu or that I can hack on as most are written in Swift.

If you know dmenu you know the drill: pipe in a newline delimited text, select the line you want and it will be returned to you on stdout. That's it.

Documentation

Overview

pick - a minimalist input selector for the acme text editor modelled after dmenu

If launched from within acme itself, pick will use the current acme window as defined by the 'winid' environment variable. Otherwise, it will attempt to query a running snooper instance to fetch the focused window id.

  • To mimic dmenu behaviour of reading input from stdin, pass the '-s' flag.
  • To return the index of the selected line in the input instead of the line itself, pass the '-n' flag.
  • To override the default prompt ('> ') pass the '-p' flag followed by the string to use as the prompt.

+pick window actions

  • character input will be interpreted as a regex for filtering lines
  • button 3: select a line to return
  • Return: select the line the curesor is currently on

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL