Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Interactively select an entry from your bash/zsh history.

Project Description

selecta - Interactively select an entry from your bash/zsh history.

This is a Python3 clone of François Fleuret’s excellent selector tool.

Screencast

Usage

$ selecta --bash -y <(history)

Hotkeys

CTRL+i: toggle case sensitivity

CTRL+r: toggle REGEX search

Installation

$ sudo pip3 install selecta

Install the keyboard shortcut ALT+r:

$ selecta_install_bash

This will append the following line to your ~/.bashrc:

bind '"\C-[r":"\C-a\C-kselecta --bash -y <(history)\C-m"'

–help output

usage: selecta [-h] [-i] [-b] [-z] [-e] [-a] [-d] [-y] [--bash] [--zsh]
               [infile]

positional arguments:
  infile                the file which lines you want to select eg. <(history)

optional arguments:
  -h, --help            show this help message and exit
  -i, --revert-order    revert the order of the lines
  -b, --remove-bash-prefix
                        remove the numeric prefix from bash history
  -z, --remove-zsh-prefix
                        remove the time prefix from zsh history
  -e, --regexp          start in regexp mode
  -a, --case-sensitive  start in case-sensitive mode
  -d, --remove-duplicates
                        remove duplicated lines
  -y, --show-hits       highlight the part of each line which match the
                        substrings or regexp
  --bash                standard for bash history search, same as -b -i -d
  --zsh                 standard for zsh history search, same as -b -i -d

Release history Release notifications

History Node

0.0.24

History Node

0.0.23

History Node

0.0.22

History Node

0.0.21

History Node

0.0.20

History Node

0.0.19

This version
History Node

0.0.15

History Node

0.0.13

History Node

0.0.12

History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
selecta-0.0.15.tar.gz (5.3 kB) Copy SHA256 hash SHA256 Source None Jan 9, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page