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

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.4.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_file_browser_sorting_extension-1.0.4.tar.gz
Algorithm Hash digest
SHA256 7061024b71596226ce16c4e27a609090671ab5a2612ffa2c070f3e5dad415c9a
MD5 197f09de27d86af403604460b7f93cfa
BLAKE2b-256 6faf2b47061f7e11f87858f261ce179501b6c08f3e38c7419e8794ef64422cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyterlab_file_browser_sorting_extension-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1bbdc083f0242dd473f8d5229873da19b962ccc5c430eaa5f2197b17364755
MD5 1a8b93d0766a72aadaabd39370eccb50
BLAKE2b-256 d0687df5c940799c5f492a60e9eb3c27d02de18d8fdef9beac6fd0889b716234

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