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.0a6.tar.gz (174.5 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.0a6-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vii-0.1.0a6.tar.gz
  • Upload date:
  • Size: 174.5 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.0a6.tar.gz
Algorithm Hash digest
SHA256 9cf175c487f62e4a69516e3618b709f10ce9af84bbb6181d75389bd590a36f5e
MD5 a24619d98f63015aac95404c93b260d9
BLAKE2b-256 0d4dd2df23d8c5ae679f8d19bdc31652349b254ec58bf463330f1fa6d81e2e08

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: vii-0.1.0a6-py3-none-any.whl
  • Upload date:
  • Size: 41.3 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.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 0e589e3b61012faf3551f80b234a93f1048b667a497c6febe9851348989f7e2e
MD5 850b060e9f702445806915286c3b23fd
BLAKE2b-256 56105d0849a637ef7fbc996cbd04a0031f8ef825987d3d4d2699967742a457b0

See more details on using hashes here.

Provenance

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