Skip to content

A small CLI editor wrapper, that makes it easy to edit files mentioned in error messages.

License

Notifications You must be signed in to change notification settings

spytheman/veditline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

veditline

A small CLI editor wrapper, that makes it easy to edit files, mentioned in error messages.

Most text editors do support opening a text file at a specific line, but each editor has a slightly different command line syntax for doing that.

Programming editors like vim and emacs especially, also understand the file:line:column syntax internally, in order to be able to go to compilation errors, but their command line options for specifying the line number are different for seemingly no good reason.

veditline is a small wrapper for other text editors, that intends to standardize on the file:line:column syntax.

Build:

This program is built using the V programming language.

After you have V installed, just do:

git clone https://github.com/spytheman/veditline /opt/veditline
cd /opt/veditline
v .

Setup:

sudo ./veditline --install vjed vemacs vvim

Usage:

vjed file.c:123:

... will start jed, and make it open file.c at line 123.

Similarly vemacs file.v:11: -> it will start emacs, opening file.v at line 11.

About

A small CLI editor wrapper, that makes it easy to edit files mentioned in error messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published