← All tools

xyproto/megafile

Popularity 75 Updated Network & Systems

File browser, simple shell and image viewer for the terminal

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

MegaFile

File browser, simple shell and image viewer for the terminal, written in Go.

This project can be used as the github.com/xyproto/megafile package, or as a standalone exectuable.

(screenshot of the previous version, before the project rename)

Building

make

Installation

make install

Commands

  • any filename - edit file with $EDITOR
  • cd, .. or any directory name - change directory
  • ./script.sh - execute a script named script.sh
  • ls or dir list directory (happens automatically, though)
  • q, quit or exit - exit program

Hotkeys

Navigation and Selection

  • ↑/↓/←/→ - navigate and select files
  • Page Up/Down - jump to first/last entry in current column
  • Home or ctrl-a - jump to first file (or start of line when typing)
  • End or ctrl-e - jump to last file (or end of line when typing)

Execution

  • Return - execute selected file, or run typed command
  • Esc - clear selection or filter (first press), then go one directory up, or exit program when launched from Orbiton

Text Editing

  • Backspace - delete character, or go up directory (when at start)
  • ctrl-h - delete character, or toggle hidden files (when at start)
  • ctrl-d - delete character under cursor, or exit program
  • ctrl-k - delete text to the end of the line
  • ctrl-c - clear text, or exit program

File Operations