GithubHelp home page GithubHelp logo

equationzhao / g Goto Github PK

View Code? Open in Web Editor NEW
245.0 3.0 9.0 3.6 MB

powerful and cross-platform ls ๐ŸŒˆ built for modern terminal

Home Page: https://g.equationzhao.space

License: MIT License

Go 89.02% Shell 7.53% PowerShell 0.16% Nu 0.16% Just 3.13%
cli command-line-tool ls golang utility darwin linux-shell macos windows

g's Introduction

Hi there ๐Ÿ‘‹

wakatime

  • ๐Ÿ”ญ Iโ€™m currently working on go
  • ๐ŸŒฑ Iโ€™m currently learning Anything I wanna learn
  • ๐Ÿ’ฌ Ask me about Anything I can Help
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐ŸŒ Welcome to https://blog.equationzhao.space

Github state

Dashboard stats of @Equationzhao Contribution Time Distribution of @Equationzhao

g's People

Contributors

dependabot[bot] avatar equationzhao avatar imouto-rar avatar kianmeng avatar vanillajonathan avatar

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  avatar

g's Issues

[FEAT] WinGet support

Is your feature request related to a problem? Please describe.
The only package manager I have is winget. Can I have this package to be present on WinGet repository?

Describe the solution you'd like
winget install --id Equationzhao.G or something like this

Describe alternatives you've considered
Publishing to Microsoft Store but it requires payment for the developer account.

Additional context
WinGet repo is located in microsoft/winget-pkgs

[BUG] bad item name display

Describe the bug
may fail to display items whose name is contained in ANSI escape sequences

To Reproduce

  1. items listed
    listing items with names contained in ANSI escape sequences
    like '[', '3'
  2. flags set
    -Q or --icon or others

Screenshots

image image

Info:

  • OS: all
  • Arch: all
  • Version: at least since v0.16.0

[FEAT] custom columns order

feature

the custom column order can bring more flexibility to daily use.

solution

the order can be defined in the config file or be passed by the command line option

eg:
through config

Args:
  - hyperlink=never
  - icons
  - no-update

Order:
  - Permissions 
  - Size     
  - Owner        
  - Group 
  - Time Modified   
  - Name

or g --order='Permissions,Size,Owner,Group,Time Modified,Name' --long

[BUG] panic when listing items

Describe the bug
panic when listing a dir

To Reproduce
unknown, no specific method for reproduction

Screenshots
image

Info (please complete the following information):

  • OS: [macOS 14.3]
  • Version [v0.25.2]

[STYLE] .python_history

Describe the Style you'd like to add
Color: python-color
Icon: python
Underline: false
Bold: false

Target: '.python_history'

Describe the file type
.python_history is the history file of py shell

[BUG] panic when set --title and one of --table/csv/tsv/html

Describe the bug

Version: v0.25.3
Please file an issue at Github Repo with the following panic info

 ร— error message:
strings: negative Repeat count
 
 ร— stack trace:
goroutine 1 [running]:
runtime/debug.Stack()
        /opt/homebrew/opt/go/libexec/src/runtime/debug/stack.go:24 +0x64
main.main.func1()
        /Users/equationzhao/g/main.go:25 +0x200
panic({0x100767800?, 0x100860c00?})
        /opt/homebrew/opt/go/libexec/src/runtime/panic.go:914 +0x218
strings.Repeat({0x100705230?, 0x10060181c?}, 0x10060181c?)
        /opt/homebrew/opt/go/libexec/src/strings/strings.go:554 +0x2e0
github.com/Equationzhao/g/internal/cli.glob..func34.3.glob..func34.3.1.func2({0x10086b7e8?, 0x140001fb540}, {0x14000134000?, 0x100194d78?, 0x10?})
        /Users/equationzhao/g/internal/cli/g.go:989 +0x328
github.com/Equationzhao/g/internal/display.fire(...)
        /Users/equationzhao/g/internal/display/printer.go:55
github.com/Equationzhao/g/internal/display.(*TablePrinter).PrintBase(0x140001fb540, 0x1400059b420, {0x14000134000, 0x15, 0x20})
        /Users/equationzhao/g/internal/display/printer.go:544 +0x214
github.com/Equationzhao/g/internal/display.(*TSVPrinter).Print(0x100d895b0?, {0x14000134000?, 0x10060181c?, 0x4?})
        /Users/equationzhao/g/internal/display/printer.go:658 +0x60
github.com/Equationzhao/g/internal/cli.glob..func34(0x14000356480)
        /Users/equationzhao/g/internal/cli/g.go:1036 +0x2d2c
github.com/urfave/cli/v2.(*Command).Run(0x1400025c420, 0x14000356480, {0x14000338000, 0x7, 0x7})
        /Users/equationzhao/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:279 +0x754
github.com/urfave/cli/v2.(*App).RunContext(0x1400031e200, {0x100867d90?, 0x100d88d40}, {0x14000338000, 0x7, 0x7})
        /Users/equationzhao/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:337 +0x534
github.com/urfave/cli/v2.(*App).Run(0x10086b580?, {0x14000338000?, 0x3?, 0x3?})
        /Users/equationzhao/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:311 +0x3c
main.main()
        /Users/equationzhao/g/main.go:68 +0x29c

To Reproduce
g --table/csv/tsv/html --title

Info (please complete the following information):

  • OS: [macOS 14.0]
  • Version [v0.25.2]

[BUG] --statistic only works with --total-size

Current Behavior

~/go as โšก๏ธ
> g -statistic
bin  pkg
~/go as โšก๏ธ
> g -statistic -total-size
  total -
  underwent 143 microseconds
  statistic file: 0, dir: 2, link: 0
bin  pkg

Expected Behavior

~/go as โšก๏ธ
> g -statistic
bin  pkg
~/go as โšก๏ธ
> g -statistic -total-size
  total -
  underwent 143 microseconds
  statistic file: 0, dir: 2, link: 0
bin  pkg

Environment

os:all
arch:all
version:v0.7.0

[BUG] bad alignment in tree view

alignment in tree view
some flags which need to read file are not working in Tree view( refactor: using abs path may help)

eg:
bad alignment when encountering an error
image

when list in tree and display checksum, the file inside folder has no checksum field
image

Version:

At least since v0.5.7

[FEAT] add quote when the name contains spaces

feature

when there are some entries named with tailing space, the g will not display them with a noticeable difference

eg:
image

so it's great to have those with spaces surrounded by quotes.

like

'space a  '
'space a    '

and if '--no-quote' is set, do not display quotes.

[STYLE] .CFUserTextEncoding

Describe the Style you'd like to add
Color: Apple
Icon: Apple
Underline: false
Bold: false

Target: '.CFUserTextEncoding'

Describe the file type
.CFUserTextEncoding stores the default text encoding and preferred language for a user.

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.