Skip to main content

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

Project description

vii

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

pip install -e .

For development:

pip install -e ".[dev]"

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

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.0a1.tar.gz (6.9 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.0a1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vii-0.1.0a1.tar.gz
  • Upload date:
  • Size: 6.9 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.0a1.tar.gz
Algorithm Hash digest
SHA256 e37af2b85521ab4cd89a64923843b1194ced7160d86ea07a7e5a1047cf9a111e
MD5 722b502f678d5e76bcfdfd8263f3510b
BLAKE2b-256 53efee0d97921546b659e46e8f18cf889d712f1d3308ab7bfcbaaea9ffdb46e4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: vii-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a88c5e998b4b43c51e3054a2fd413ba843026ea8bfb0cf8c8207882587ff45
MD5 79ab84699f2e8badf605ad9778d192b0
BLAKE2b-256 c52bf567d8e0c1cf22d1ee8c91364c2c3b6a6c11801cd5fc5be0168efa45bbf1

See more details on using hashes here.

Provenance

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