You are not logged in.

#1 2021-11-06 16:01:20

xyproto
Trusted User (TU)
From: Oslo
Registered: 2011-01-11
Posts: 42
Website

Simple editor with syntax highlighting and "jump to error"

o is a small and simple editor written in Go.

Screenshot of o

o uses the VT100 terminal codes, so it's a bit limited. For instance, ctrl-n and ctrl-p is used to scroll up and down instead of PgDn and PgUp.

It also includes GUI front end written in C++ (using VTE) named ko, where PgUp and PgDn works.

One unique feature is the ability to copy and paste within and across files by using portals (ctrl-r to toggle a portal on the current line, ctrl-v to paste through portals when a portal is active).

It can also be used for viewing man pages with MANPAGER=o, if in a pinch. It also works well together with git with i.e. EDITOR=o git commit.

ctrl-space can be pressed to compile programs, for a wide range of programming languages.

The time it takes to go from blank file to a compiled C program is pretty brief, if cxx (a utility for compiling simple C and C++ programs with no configuration needed) is also installed. Just:

  • o main.c

  • Press ctrl-w to insert a template.

  • Press ctrl-space to compile the program.

This above steps (from nothing to a compiled C program) takes less than 2 seconds on my system.

o is also intended to be a good fit for i.e. learning Zig while trying to solve Advent of Code tasks.

It jumps directly to the location of the first error when ctrl-space is pressed.

It's not revolutionary, but I use it every day.

Repo: https://github.com/xyproto/o
AUR: https://aur.archlinux.org/packages/o/

Last edited by xyproto (2021-12-10 17:44:14)

Offline

#2 2021-12-06 17:21:28

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,254

Re: Simple editor with syntax highlighting and "jump to error"

o is nice, but ko only gives me an empty black window.

Last edited by Stefan Husmann (2021-12-06 17:22:03)

Offline

#3 2021-12-10 17:35:01

xyproto
Trusted User (TU)
From: Oslo
Registered: 2011-01-11
Posts: 42
Website

Re: Simple editor with syntax highlighting and "jump to error"

Thanks for trying out o, Stefan Husmann. smile

When starting o or ko with a blank new file, the window is black and everything is in order. One can start typing.

Press ctrl-g to toggle a status bar at the bottom.

Last edited by xyproto (2021-12-12 14:33:49)

Offline

#4 2022-06-03 13:55:46

xyproto
Trusted User (TU)
From: Oslo
Registered: 2011-01-11
Posts: 42
Website

Re: Simple editor with syntax highlighting and "jump to error"

o also comes with a gdb frontend, which I guess makes it an IDE?

small_debug_screenshot.png

Last edited by xyproto (2022-06-27 00:19:53)

Offline

Board footer

Powered by FluxBB