Giter Site home page Giter Site logo

luneta's Introduction

luneta Build Status luneta

Luneta is an interactive filter that can be easily composed within any script.

It's a fast and lightweight terminal tool that brings swiftness to your daily hacks. ๐Ÿš

demo

About

  • Fast
  • Small binary (~ 1mb)
  • Multiple line selection
  • Adaptable screen size
  • Supports terminals that are not capable of redefining colors --color=FALSE

Run luneta -h for help:

usage: luneta [options]
-v --version version
-q   --query default query to be used upon startup
-f  --filter do not start interactive finder, e.g -f="pattern"
    --height set the maximum window height (number of lines), e.g --height 25
     --color color support, e.g --color=FALSE
-h    --help This help information.

Installation

It should work on any ANSI/POSIX-conforming unix.

Precompiled binaries - Make sure that libncurses is installed.

Snap

Linux distributions that support snaps.

snap install luneta

Manual Installation

Prerequisites:

git clone https://github.com/fbeline/luneta
cd luneta
dub build -b release --compiler ldc2

Usage examples

Search a command in your shell history:

fc -ln 1 | luneta

Checkout a git branch:

git branch 2>/dev/null | luneta | sed "s/.* //" | awk '{print $1}' | xargs git checkout

Kill an active process:

ps -e -o comm | luneta | xargs pkill

Refer to the examples for more.

Keyboard shorcuts

Key Action
CTRL + Space Select line and move to the next item
CTRL + n next selection
CTRL + p previous selection
CTRL + a beggining of the line
CTRL + e end of the line
CTRL + u erase all the character before and after the cursor
CTRL + d exit

License

GPL-2.0

luneta's People

Contributors

fbeline avatar kubo39 avatar schveiguy avatar

Watchers

 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.