Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ncurses-lyra

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ncurses-lyra

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ncurses-lyra

A simple small file lister and directory explorer. One can use left and right arrow keys to open directories and file, or go back up to higher directory. By default it opens files using PAGER, but files can be opened in EDITOR too using RETURN or e.

The code has been kept in one file so that the file can just be copied into one's bin folder or anywhere in the path. This is simple ruby code, so you can edit it, or change colors or even expand this simple program.

Feel free to modify the code to your needs. You can submit patches if you feel it will help others.

I will add very little functionality to this as I use it, perhaps deleting a file, but I don't intend to let this become much larger.

File listing and sorting is done through zsh itself. So the zsh executable should be somewhere in path.

Installation

  1. gem install ncurses-lyra

    You might want to alias the lyra file to a single letter.

    alias n='~/PATH/lyra.rb'

    You may also copy lyra.rb to your PATH.

  2. Copying the executable file

This does depend on the ffi-ncurses gem by Sean Halpin. That gem should have got installed when you installed the gem. If you did not install the gem, and just copied the lyra.rb file from the exe dir, then you will have to install that gem.

gem install ffi-ncurses 

Usage

Call the program using the program name.

Use ARROW keys to view a file, or enter a directory, or go up. Use '/' (slash) and enter a few characters and to see a filtered list.

There are a couple of menus with minimal options. Tilde gives the main menu which contains a sort menu. The toggle menu is on the equal key (=) and one can toggle hidden files, or long listing. A few more options will be added with time.

Navigation can be accelerated with C-n, C-p, C-d, C-b, , g (top), G (bottom).

Help on keys needs to come on pressing ?

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mare-imbrium/ncurses-lyra.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 05 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc