fervor

command module
v0.0.0-...-39403b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 27 Imported by: 0

README

Fervor

Disclaimer: Changes to the veandco/go-sdl2 packages since the development of this software may have created problematic incompatibilities, which I do not plan to investigate anytime soon. If you would like to try Fervor, I recommend compiling against a veandco/go-sdl2 commit from September 2015.

screenshot

A graphical, modeless, cross-platform text editor influenced by Acme, vi, and even Notepad. Features include:

  • Infinite undo
  • Unicode (UTF-8) support
  • Regular expression search
  • Acme-like right-click find
  • No GUI toolkit dependencies
  • Quick startup and low memory footprint
  • Asynchronous shell command execution and selection filtering
  • Basic syntax highlighting (currently for: Bash, C, CSS, Go, HTML, INI, JavaScript, JSON, Lua, Make, Python, Ruby, and SVG)

Not included:

  • A scrollbar.
  • Tabs or panes. Use a good window manager instead!

See also: TODO.md.

Installation

Install or update via the go command:

go get -u github.com/jangler/{edit,fervor}

Alternatively, download a binary distribution from https://github.com/jangler/fervor/releases.

In either case, the SDL2 and SDL2_ttf libraries are required.

Usage

Usage: fervor [<option> ...] [<file> ...]

Options:
  -dark
		use dark color scheme
  -expandtab
		insert spaces using the Tab key
  -font string
		use the font at the given path
  -ptsize int
		set point size of font (default 12)
  -tabstop int
		set width of tab stops, in columns (default 8)
  -version
		print version information and exit

Global and file-specific default options can be specified in either
~/fervor.ini or ~/.config/fervor.ini.

See fervor.ini for an example configuration.

Key bindings

Ctrl+A           Move cursor to beginning of line
Ctrl+C           Copy (in buffer), cancel (in prompt)
Ctrl+D           Change directory...
Ctrl+E           Move cursor to end of line
Ctrl+F           Find regexp forward...
Ctrl+Shift+F     Find regexp backward...
Ctrl+G           Go to line...
Ctrl+H           Delete character backward
Ctrl+I           Insert tab
Ctrl+L           Toggle Unix/DOS line endings
Ctrl+N           Next match
Ctrl+Shift+N     Previous match
Ctrl+O           Open...
Ctrl+Shift+O     Open in new window...
Ctrl+P           Pipe selection through command...
Ctrl+Q           Quit
Ctrl+Shift+Q     Quit without confirmation
Ctrl+R           Run command...
Ctrl+Shift+R     Reload font (fixes missing glyphs)
Ctrl+S           Save
Ctrl+Shift+S     Save as...
Ctrl+U           Delete line backward
Ctrl+V           Paste
Ctrl+W           Delete word backward
Ctrl+X           Cut
Ctrl+Y           Redo
Ctrl+Z           Undo
Tab              Indent selection, complete word (searching backward)
Shift+Tab        Unindent selection, complete word (searching forward)

Holding Shift makes a cursor motion select text from the previous cursor position to the resulting position. Enter, Backspace, Delete, Home, End, PgUp, PgDn, Up, Down, Left, Right, Esc, Ctrl+Backspace, Ctrl+Delete, Ctrl+Home, Ctrl+End, Ctrl+Left, and Ctrl+Right should also work as expected.

Mouse bindings

Left click   Position cursor
Left drag    Select text
Right click  Find next instance of clicked word or selection
Right drag   Find next instance of selection

Holding Shift makes a left click select text from the previous cursor position to the clicked position, and makes a right click or drag search backward instead of forward.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL