Skip to main content

Jupyterlab extension to help with sorting of the files in file browser (i.e. case sensitive sorting)

Project description

jupyterlab_file_browser_sorting_extension

GitHub Actions npm version PyPI version Total PyPI downloads JupyterLab 4 Brought To You By KOLOMOLO

[!TIP] This extension is part of the stellars_jupyterlab_extensions metapackage. Install all Stellars extensions at once: pip install stellars_jupyterlab_extensions

JupyterLab extension that implements LC_COLLATE=C (ASCIIbetical) sorting for the file browser.

Features

  • LC_COLLATE=C sorting - Standard Unix sorting order used by ls with C locale
  • Dot files first - Hidden files (starting with .) appear before other files
  • Uppercase before lowercase - Capital letters (A-Z) sort before lowercase (a-z)
  • ASCII order - Characters sorted by their ASCII code values
  • Toggle via context menu - Right-click in the file browser to enable/disable

Usage

Right-click anywhere in the file browser content area and select "Use Unix-Style Sorting (LC_COLLATE=C)" to toggle the sorting mode. The setting is persisted across sessions.

When enabled, the extension sorts files using the standard Unix C locale collation sequence:

. (dot) -> 0-9 -> A-Z -> _ (underscore) -> a-z

Example sort order:

.hidden
.profile
123file
ABC
Makefile
README
_config
abc
readme
zebra

This matches the behavior of LC_COLLATE=C ls on Unix systems.

Requirements

  • JupyterLab >= 4.0.0

Installation

pip install jupyterlab_file_browser_sorting_extension

Uninstall

pip uninstall jupyterlab_file_browser_sorting_extension

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

Built Distribution

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

File details

Details for the file jupyterlab_file_browser_sorting_extension-1.0.15.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_file_browser_sorting_extension-1.0.15.tar.gz
Algorithm Hash digest
SHA256 91809916d4f46f1316ac1d32912606887eb48e14c29216fd8bfc0c4acc83bcdc
MD5 18ca8552b197df7502c81d22ec3c7a42
BLAKE2b-256 c44184b345e4de29a000c478046b70d6b6472e3008a89320aa4eaaa2d52f17a5

See more details on using hashes here.

File details

Details for the file jupyterlab_file_browser_sorting_extension-1.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_file_browser_sorting_extension-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 0caf4d24ecc1dfb370a640ebe7966ddba0e1b82ebcd1f992c26a3ed7ff4102b2
MD5 8b3e159ae0147b8519449979e3e31fe0
BLAKE2b-256 ca4b45e3f02edeca6ce9347de34b9f8e97d0eae8dcb6e3e92efabe0cf01092f3

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