Skip to main content

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

Project description

vii

CI/CD

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.0a2.tar.gz (13.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.0a2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vii-0.1.0a2.tar.gz
  • Upload date:
  • Size: 13.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.0a2.tar.gz
Algorithm Hash digest
SHA256 c3a957779dd7fc38e7c15b5a6611acdd5e606051306ea3de54ad3f71a4574b9f
MD5 9f0814c4cd77225ceaa252b9348bd70d
BLAKE2b-256 fef8a5c0c55da3cea5f9ce471abc18bd5e8e3a4527c7ececc1c5ccd93c1926ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for vii-0.1.0a2.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.0a2-py3-none-any.whl.

File metadata

  • Download URL: vii-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d83b927244d6ef64816c79375b63664416794e84ad7b355b431f9e5cd7878259
MD5 a8fe9f40b2800dee084c493a4a83b778
BLAKE2b-256 1c39783b96834f4604dd323b8c7a08e2389d62f32205c48e10eee56919f263e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vii-0.1.0a2-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