Skip to main content

vii - A terminal-based file browser that opens files in your editor

Project description

vii

CI

A terminal-based file browser that opens selected files in your preferred editor.

Features

  • 🗂️ Interactive file browser using Textual's DirectoryTree
  • 🚀 Opens files in your preferred editor (VS Code, Sublime, Vim, etc.)
  • ⌨️ Keyboard-driven interface
  • 🎨 Clean, terminal-based UI

Installation

pipx install vii

Usage

Run vii from any directory:

vii

Or specify a directory to browse:

vii /path/to/project

Keyboard Shortcuts

Vi-style navigation (arrow keys also work):

  • j/k - Navigate down/up
  • h/l - Collapse/expand directories
  • g - Jump to top
  • G - Jump to bottom
  • Enter - Open selected file in editor
  • q - Quit
  • Ctrl+C - Quit

Editor Detection

vii automatically detects your preferred editor by checking:

  1. $VISUAL environment variable
  2. $EDITOR environment variable
  3. Common editors: code, subl, atom, vim, nvim, nano
  4. Falls back to open (macOS default)

Editor Behavior

  • GUI Editors (VS Code, Sublime, etc.): Opens in the background while vii continues running
  • Terminal Editors (vim, nvim, nano, etc.): vii suspends and the editor takes over full screen. When you quit the editor, vii resumes automatically

Development

git clone https://github.com/aclark4life/vii
cd vii
pip install -e ".[dev]"

Run with Textual's development console:

textual console
textual run --dev src/vii/app.py

License

MIT

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

vii-0.1.0a5.tar.gz (170.4 kB view details)

Uploaded Source

Built Distribution

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

vii-0.1.0a5-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file vii-0.1.0a5.tar.gz.

File metadata

  • Download URL: vii-0.1.0a5.tar.gz
  • Upload date:
  • Size: 170.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vii-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 6cf28be10967484474e29264aca0ad7fd5f1cfb3c4d37856629d367e3565a7a2
MD5 488abec0859d34d4154a2a03d0efdccd
BLAKE2b-256 b943b0e02db846c22d5aafb99ae7f1634563826092181d171abc9d7baabf3f63

See more details on using hashes here.

Provenance

The following attestation bundles were made for vii-0.1.0a5.tar.gz:

Publisher: workflow.yml on aclark4life/vii

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vii-0.1.0a5-py3-none-any.whl.

File metadata

  • Download URL: vii-0.1.0a5-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vii-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 93df1393c85213de90734b8809de81364624bd6636d81c2f5d2b7997e6d484e0
MD5 5a500a6d6aa809d1fb6e3a698bf40581
BLAKE2b-256 124eacab78ae559e7d9031f17eb17587d99497d5934087aa3d22672474a0959c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vii-0.1.0a5-py3-none-any.whl:

Publisher: workflow.yml on aclark4life/vii

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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