ded

command module
v0.0.0-...-5596d3b Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 25 Imported by: 0

README

ded

Simple text editor that works with 9P server.

Why?

  • Curiosity and pratice!.
  • Scratching my own itches.
  • Using Go to create graphical user interfaces with gxui

Sometimes it's rellay hard for programs interact with your text editor. Ded solves that problem by exposing all editor internals as "files". Those files can be manipulated by any 9P client or programs that interact with stdin/stdout.

If you think this looks like Acme, then your are right. Acme was the inspiration for Ded interaction. Check this video from Russ Cox about Acme.

For instance: How to sort all lines in my current window?

Consider that "./cat" refeers to the cat command shipped with Ded.

./cat /body | sort | ./cat -w /body

Run that in any shell and you have sorted all the contents of the editor.

Another example: How to save or load files

cat "your file" | ./cat -w /body -> this loads "your file" from disk and displays it on the editor window.

./cat /body > "your file" -> save the changes to "your file"

What is missing?

A lot of stuff, for example having more than one window open. I am focusing on improving the interaction with 9P clients, before starting to worry about the graphical user interaction.

What Ded means

Dayana's Editor dayanafonseca.com.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
cat
vfs

Jump to

Keyboard shortcuts

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