Skip to main content

A fast keyboard-driven directory navigator for the terminal.

Project description

cd-browser

Stop typing paths. Browse them.

cd-browser is a fast keyboard-driven directory navigator for the terminal. It lets you explore directory trees visually and jump to any folder instantly.

cd-browser demo

Why cd-browser?

Working in the terminal often means:

  • typing long directory paths
  • navigating deep folder trees
  • repeating cd .. multiple times

cd-browser provides an interactive terminal UI that allows you to browse directories with the keyboard and return the selected path directly to your shell.

Features

  • 🚀 Fast visual navigation of directory trees
  • ⌨️ Fully keyboard-driven workflow
  • 🌲 Expand and collapse directories
  • 📜 Navigation history inside the session
  • 🖥 Native terminal interface
  • 🔁 Works with Bash, Zsh and other shells
  • ⚡ Returns the selected path to the shell
  • 🔎 Press . to toggle hidden directories

Quick Demo

Run:

cd_

Browse directories using the arrow keys and press Enter to jump directly to the selected folder.

Documentation

See the documentation index:

docs/index.md

Installation

Install the project in user mode:

pip install .

For editable local development:

pip install -e '.[dev]'

After installation, the application command is:

cd_browser

When the interactive session exits, the program prints the final selected directory path.

Shell Integration For cd_

Because a Python subprocess cannot directly change the parent shell directory, use a shell wrapper that captures the final path printed by cd_browser.

Bash or Zsh example:

cd_() {
  local target
  target="$(cd_browser)" || return

  if [ -n "$target" ] && [ -d "$target" ]; then
    cd "$target"
  fi
}

After adding the function to your shell profile, reload it:

source ~/.bashrc

Or:

source ~/.zshrc

Then use:

cd_
  • Dentro de cd_browser, presiona . para alternar la visualización de carpetas ocultas.

Uninstall

If the project was installed with pip, remove it with:

pip uninstall cd-browser

If you also added the cd_ shell wrapper, remove that function from your shell profile and reload the shell configuration.

Developer Setup

Recommended setup:

make dev

Run the application in development mode:

python -m app.main

Useful development commands:

make fix
make quality
make run

Template Origin

This project was created from the Python AI Dev Template.

The original template documentation has been preserved in README_TEMPLATE.md so the project-specific README can focus on cd-browser usage and development.

For the original template setup, conventions, and generic workflow notes, see README_TEMPLATE.md.

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

cd_browser-0.1.1.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

cd_browser-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file cd_browser-0.1.1.tar.gz.

File metadata

  • Download URL: cd_browser-0.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cd_browser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 af7970a491f4ede52f203bf48e00d6e0f056df8cf3afc7fd82494bd2c08b6721
MD5 5316f229ab0003694ad01e638aa0e2fa
BLAKE2b-256 eab8f14ce43f38288d12e57c1a760ba7ae99b5568d096639f88bf831e417abbb

See more details on using hashes here.

File details

Details for the file cd_browser-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cd_browser-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cd_browser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a93dca4d1f18a338fa25f16c6b1de074434e5902a695508ef98be3f4d20dc433
MD5 7f7c3b2325a61c0a4234fe0f91589978
BLAKE2b-256 20196e9397f57794e0f2453dd51cb587a8fc28c046ca407597ae05eb8a19ce8b

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