LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sensible-editor

Open user's preferred text editor

TLDR

Open a file in the default editor
$ sensible-editor path/to/file
copy
Open with cursor at end of file
$ sensible-editor + path/to/file
copy
Open with cursor at line 10
$ sensible-editor +10 path/to/file
copy
Open multiple files in split windows
$ sensible-editor -O3 path/to/file1 path/to/file2 path/to/file3
copy

SYNOPSIS

sensible-editor [options] [file...]

DESCRIPTION

sensible-editor opens files in the user's preferred text editor. It checks environment variables (VISUAL, EDITOR) and system defaults to determine which editor to launch.Options are passed through to the underlying editor (typically vim, nano, or emacs).

PARAMETERS

+

Position cursor at end of file
+N
Position cursor at line N
-ON
Open N files in vertical split

CAVEATS

Behavior depends on environment configuration and which editor is default. Some options may not work with all editors.

HISTORY

Part of sensible-utils package, providing Debian policy-compliant default application launchers.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid