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

Repository (full demo + docs): https://gitea.sakydogalo.es/saky/cd-browser

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

  • ⌨️ Fully keyboard-driven workflow ( / / / )
  • 🌲 Expand and collapse directories ( to expand/enter, to collapse/back)
  • 📜 Navigation history inside the session (h history mode, b back, f forward)
  • ⚡ Returns the selected path to the shell (Enter to confirm, Esc to cancel)
  • 🔎 Press . to toggle hidden directories
  • 🖥 Native terminal interface
  • 🔁 Works with Bash, Zsh and other shells
  • 🚀 Fast visual navigation of directory trees

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 cd-browser

Important: After installation, run this to set up the cd_ command:

cd_browser_post_install

This interactive script will guide you through enabling cd_ in your shell.

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

Important: After uninstalling, remove the cd_() function from your shell profile (~/.bashrc or ~/.zshrc) to clean up completely.

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.2.5.tar.gz (15.9 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.2.5-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cd_browser-0.2.5.tar.gz
  • Upload date:
  • Size: 15.9 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.2.5.tar.gz
Algorithm Hash digest
SHA256 07ca3e79f0ae52bd37bdb67fd8c221d3e876e1b8e63124875c9f48d86cf8cfc7
MD5 ec28af194a9eaf40afd0e288e573cd21
BLAKE2b-256 d26c4c446146f3afab9702440a3ddc4af915692164dddaa038f328d6ec4e696f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cd_browser-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca8c5d6411f08d884587384e2b911f9cb789a8c521bc1e20f9cce48fb7478cd
MD5 e6e1981b5746ce333acce8dd82ab30a9
BLAKE2b-256 538eac73f4c52f8b14d35f7a5d19bc37047d151dc8dc2357ead5cfc7716e442c

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