GithubHelp home page GithubHelp logo

souvikinator / lsx Goto Github PK

View Code? Open in Web Editor NEW
172.0 2.0 9.0 9.76 MB

ls Xtended : A command line utility that lets you navigate through terminal like a pro ๐Ÿ˜Ž.

License: MIT License

Go 83.41% Shell 16.59%
cli golang go ls cd linux linux-shell hacktoberfest hacktoberfest2021 shell

lsx'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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lsx's Issues

Windows support

For lsx to work in windows, on needs to port install.sh and lsx.sh to powershell script.

Name change

Please rename this project. It is in conflict with Suckless lsx which lists executables.

Rank Directories

show most visited directories on top of the list. Feel free to share the approach to rank the directories and related.

No lsx logo

There is no logo for lsx.
Make sure that the logo is in svg format and share here for approval.
place logo in the assets folder

Not Found Error

In a directory with no folders and just files shows not found, which means that it does not shows files shows only folders

Installation failed: open /bin/ls-x: permission denied

go: downloading github.com/gookit/color v1.5.0
go: downloading github.com/manifoldco/promptui v0.8.0
go: downloading github.com/spf13/cobra v1.2.1
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a
go: downloading github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/mattn/go-colorable v0.0.9
go: downloading github.com/mattn/go-isatty v0.0.4
go: downloading github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a
go build github.com/souvikinator/lsx: copying /tmp/go-build2705181617/b001/exe/a.out: open /bin/ls-x: permission denied
ERROR: build Failure!

Add to homebrew and snapcraft (discuss the approach)

Allow users to install lsx using homebrew in macos.
Interested can start a thread so that I can explain how and why the whole installation process works which is very important to understand before packaging it to homebrew.

failed install

$ curl https://raw.githubusercontent.com/souvikinator/lsx/master/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100  1980  100  1980    0     0   2379      0 --:--:-- --:--:-- --:--:--  2379
Downloading required scripts...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100   528  100   528    0     0    932      0 --:--:-- --:--:-- --:--:--   932
can't load package: package github.com/souvikinator/lsx@latest: cannot find package "github.com/souvikinator/lsx@latest" in any of:
	/usr/lib/go-1.10/src/github.com/souvikinator/lsx@latest (from $GOROOT)
	/home/shared/applications/go/src/github.com/souvikinator/lsx@latest (from $GOPATH)
ERROR: Installation failed!

Maybe I found the problem but not sure. I see in install.sh:

ZSHRC="$HOME/.zshrc"
ZSH_DIR="$HOME/.oh-my-zsh"
ZSH_FUNC_DIR="$ZSH_DIR/functions"

I don't keep my .zshrc or .oh-my-zsh in those locations; I keep them in a subdirectory of ~. I tried downloading the install.sh, hardcoding the first 2 variable and running it but got the same result so maybe it's not the point of failure.

I see that the file ~/.config/lsx/lsx.sh is present but beyond that I can't follow what is supposed to be happening so not sure what's the problem.

By the way I am not sure if this is helpful but as to the zsh files, the way I changed it from default is by setting the $ZDOTDIR environment variable in .zshenv. (Info on SE) As far as I found (I didn't look too hard) it wasn't possible to actually charge the name of the .zshrc file, which I would have preferred because it's sort of stupid to have a hidden file in a hidden directory. If that were possible and someone had done it then the below wouldn't work.

At the top of the $ZDOTDIR/.zshrc file, the oh my zsh installer added:

export ZSH="$ZDOTDIR/.oh-my-zsh"

So as per the above if I was writing this I would probably use:

ZSHRC="$ZDOTDIR/.zshrc"
ZSH_DIR="$ZSH"

but you should definitely check that with someone who knows what of they speak.

zsh: command not found: ls-x

After struggling with the $GOPATH thing I also added the source at the end of my .zshrc and now when I try to run it I get the aformentioned error.

Would love to have alias for file paths

One use case I particularly like is saving an alias in .bashrc to jump to the desired path of my choice I believe that is the fastest. For example, I save alias project="cd /home/skd/Documents/project" and then in terminal I write project and voila I am in that directory. Now the issues I have is to update these alias I have to open my .bashrc file and update it, same for viewing all the aliases I have made.

Now It would be awesome if I have a way to have CRUD operations on them from the terminal itself. Also extending the functionality when I save a directory in alias it maps all the subdirectories so now, I can run project>testserver so something like this.

zsh: lsx: function definition file not found

Hi!

I'm on a MacBook Pro, running zsh on Catalina.

Typing lsx gives

zsh: lsx: function definition file not found

I'm not a go user, so there might be issues with how it's set up on my machine.

Thanks!

fish shell support

fish: Unknown command: /home/zeus/go/bin/ls-x
~/.config/fish/functions/lsx.fish (line 15):
$LSX
^
in function 'lsx'

console output when I try to run lsx
Sorry for not providing more info but just seem like a simple fish script syntax error I don't know how to write scripts in fish shell.
I don't think this issue is on my end I just think fish doesn't use $ the same way bash or zsh do?
EDIT: Syntax might change depending on version of fish I am on version 3.3.1-1

ability to set file browsing to use the entire terminal window

Thanks for the great program !
It would be neat if there would be an option to use the entire terminal window for browsing or just make this default.
Maybe I am overlooking something but it seems to be wasting terminal space by using only the upper part.
Just a thought :)

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.