souvikinator / lsx Goto Github PK
View Code? Open in Web Editor NEWls Xtended : A command line utility that lets you navigate through terminal like a pro ๐.
License: MIT License
ls Xtended : A command line utility that lets you navigate through terminal like a pro ๐.
License: MIT License
For lsx to work in windows, on needs to port install.sh
and lsx.sh
to powershell script.
Please rename this project. It is in conflict with Suckless lsx
which lists executables.
show most visited directories on top of the list. Feel free to share the approach to rank the directories and related.
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
In a directory with no folders and just files shows not found, which means that it does not shows files shows only folders
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!
As of now if user starts from ~/abc
then they can navigate forward in this path (~/abc/def/....
), they can also navigate backward but only till point ~/abc
after which user cannot go to the previous path of ~/abc
.
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.
$ 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.
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.
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.
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!
the issue is probably in the script we are adding in the .bashrc
in the argument part.
Auto Update lsx like zsh on system startup
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
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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.