GithubHelp home page GithubHelp logo

lscd's Introduction

lscd v0.1

lscd is a file browser with close integration with the unix shell.

Screenshot

About

Features

  • written in shell script, so you never really leave the shell
  • text-based graphical user interface
  • no dependencies except a POSIX shell and core utils
  • controlled with arrow keys and some vim-like shortcuts
  • may be sourced to run in the current shell environment (using ". lscd")
  • when sourced, it moves you to the last opened directory on exit
  • may call an arbitrary file opener; uses "less" or ranger's "rifle" by default

lscd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lscd's Issues

Arrow keys not working

Looks like the escape sequence is not properly handled or different than expected. Using rxvt-unicode.

$ sed -n l
^[[A
\033[A$
^[[B
\033[B$
^[[D
\033[D$
^[[C
\033[C$

(up, down, left, right)

[POSIX] builtins `test` and `read`

Hi,

I have been trying to run lscd as script (with and without arguments), but I always get into the while loop with:

var/tmp/lscd: 185: read: Illegal option -n
var/tmp/lscd: 188: read: Illegal option -s
var/tmp/lscd: 189: read: Illegal option -s
var/tmp/lscd: 190: read: Illegal option -s
var/tmp/lscd: 191: [: unexpected operator
^C

My standard shell is:

$ readlink /bin/sh
dash

After reading this site, I recommend using test conditionals with single equals sign (=) and read only with option -r (because of POSIX compatibility).

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.