Skip to main content

Alternative ls command.

Project description

lssr

Alternative ls command.

PyPI PyPI - Python Version Tests CodeQL codecov Downloads Downloads Downloads Code style: black

インストール

Python 3.9 以上がインストールされていれば利用可能です。

pip install lssr

使い方

# カレントディレクトリにあるアイテムを表示
lssr

# 指定したディレクトリにあるアイテムを表示(相対パス)
lssr path/to/target/dir

# 絶対パスでの指定
lssr /absolute/path/to/target/dir

# ソート順を逆にする
lssr -r
lssr --reverse path/to/target/dir

# 最終内容更新時刻順の新しい順にソート
lssr -t
# 古い順
lssr -tr

# ファイルサイズの大きい順にソート
lssr -S
# 小さい順
lssr -rS

# オプションの並び順は、ある程度自由です
lssr -t path/to/target/dir --reverse

# ヘルプを表示
lssr -h
lssr --help

# バージョンを表示
lssr -V
lssr --version

ls コマンドとの違い

  • アイテムの並び順が異なります。デフォルトで、以下の順序でアイテムが表示されます。

    • フォルダ -> ファイル
    • Unicode

    つまり、GitHub と同様の並び順になるはずです。

  • ドットファイルを含んだリスト形式でのカラー表示がデフォルトです(ls -AGl と同等)。

  • 現在、パスを 2 つ以上指定することはできません。その代わり、オプションの指定はパスの前後どちらでも良いです。

  • 多くのオプションがまだ実装されていません。利用できるオプションは上記「使い方」やヘルプコマンドを参照してください。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lssr-1.3.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lssr-1.3.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file lssr-1.3.0.tar.gz.

File metadata

  • Download URL: lssr-1.3.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for lssr-1.3.0.tar.gz
Algorithm Hash digest
SHA256 79ea89d61519cc7c9aed0321c787882d37b20644b801236a92cdde07eb3b6068
MD5 acc19551dffc0877e4e9d722538c38d7
BLAKE2b-256 15bf950489e197782fbd09aaba87e1fee42fefd375925429851a88123e1f1b38

See more details on using hashes here.

File details

Details for the file lssr-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: lssr-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for lssr-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8614d7c6e988a823cc1e606a2c50376d283ace1fd8cc061ee0c4ce5ca17237d0
MD5 cd82b2316b1e9ce481fe8e7792532182
BLAKE2b-256 b0c6e023cd8cb574fe206f74ddcede3af64ef1c759f95f62215718c3227888b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page