Next: , Previous: Metadata pasting, Up: The tool chest   [Contents][Index]


7.3 Editing metadata

ponysay-tool allows you to edit the metadata in a pony file by running ponysay-tool --edit PONY-FILE, where PONY-FILE is the pony file to edit, not the pony name. No additional options are available.

ponysay-tool --edit PONY-FILE is interative and opens an editor inspired by GNU Emacs. The tool will give you the standard tags to fill and will automatically fill in HEIGHT and WIDTH for you without allowing you to editing those two tags. Additionally the editor will print the pony at the right side of the terminal with the name of the file you are editing.

The commands the editor use is a small subset of the standard commands in GNU Emacs. Currently the commands are only coded for xterm (just about all terminals except Linux VT.) C-x means x with control held down. M-x means x with alt (meta) held down.

C-space
C-@

Set mark; only if mark is set and is at the same position as the point (cursor) the mark is deactivated. A mark creates a text select, it cannot span between lines.

C-k

Cut out the rest of the line and add it to the kill ring.

C-w

Cut out selected text and add it to the kill ring.

M-w

Add the selected text to the kill ring and unset the mark.

C-y

Paste (yank) text from the kill ring.

M-y

Cycle in the kill ring.

C-o

Insert a next line below the current line and go to it. This is useful if you want to add another entry for a tag.

C-j
enter

Go to next line, create a new line if at last line.

C-n
down

Go to next line, do not create a new line if at last line.

C-p
up

Go to previous line.

C-f
right

Go to next column.

C-b
left

Go to previous column.

home

Go to the beginning of the line.

end

Go to the end of the line.

backspace
C-h
C-?

Remove the previous character on the same line.

delete

Remove the current character on the same line.

insert

Enter or exit override mode.

C-x C-x

Swap the mark and the point.

C-x C-s

Save your changes.

C-x C-c

Exit the editor, do not forget to save if you have made changes.


Next: , Previous: Metadata pasting, Up: The tool chest   [Contents][Index]