0 comment(s).

Chapter 4. Working with text

Table of Contents

Auto-paired characters
Extended newlines
Word completion
Indentation, smart indentation
Editing modes

Amy Editor tries to support most -if not all- of common behavior of text editation found in the simpliest text editing controls around (imagine textarea field in your browser, Notepad, TextEdit etc.). It won't be discussed here since it's commonly known. Let's focus on more advanced features making your life as writer hopefully easier.

Auto-paired characters

When working with source code of most programming languages, you often type characters belonging in pairs. In C-like syntax, you rarely write opening brace ({) without the closing one (}). The same goes for parenthesis, single and double quotes and so on. Depending on chosen language definition (defined in bundles, we'll get to that later) Amy tries to save you time in writing the pair closing character for you. Just type { and Amy will write enclosing } while leaving cursor in its original position (that is between the curly braces). If you don't wish closing character to be appended, you can immediatelly remove it using forward delete key.

Although usually helpful, auto-pairing goes another step toward usefulness in allowing automatical enclosing of selected text. Imagine long text that should be in fact enclosed by double quotes. Just select it and press ". Amy will enclose selected text in double quotes. This of course works for any character pair. How to use selection for auto-pairing