<html><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"><title>Editing</title><linkrel="stylesheet"href="geany.css"type="text/css"><metaname="generator"content="DocBook XSL Stylesheets V1.72.0"><linkrel="start"href="index.html"title="Geany 0.11"><linkrel="up"href="ch03.html"title="Chapter3.Usage"><linkrel="prev"href="ch03s04.html"title="Character sets and Unicode Byte-Order-Mark (BOM)"><linkrel="next"href="ch03s06.html"title="Search, replace and go to"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Editing</th></tr><tr><tdwidth="20%"align="left"><aaccesskey="p"href="ch03s04.html">Prev</a></td><thwidth="60%"align="center">Chapter3.Usage</th><tdwidth="20%"align="right"><aaccesskey="n"href="ch03s06.html">Next</a></td></tr></table><hr></div><divclass="section"lang="en"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="editing"></a>Editing</h2></div></div></div><divclass="section"lang="en"><divclass="titlepage"><div><div><h3class="title"><aname="editing_text_dnd"></a>Drag and drop of text</h3></div></div></div><p>
If you drag selected text in the editor widget of
<spanclass="application">Geany</span> the text is moved to the position where the
mouse pointer is when releasing the mouse button. Holding Control when releasing
the mouse button will copy the text instead. This behaviour was
changed in <spanclass="application">Geany</span> 0.11 - before the selected text
To navigate down your document, jumping from one mark to the next, use Ctrl-. (control period).
To go in the opposite direction on the page, use Ctrl-, (control comma). Using the bookmarking
feature together with the commands to switch from one editor tab to another (Ctrl-PgUp/PgDn and
Ctrl-Tab) provides a particularly fast way to navigate around multiple files.
</p></div><divclass="section"lang="en"><divclass="titlepage"><div><div><h3class="title"><aname="editing_definable_commands"></a>Send text through definable commands</h3></div></div></div><p>
You can define several custom commands in <spanclass="application">Geany</span> and
send the current selection to one of these commands. The output of the command
will be used to replace the current selection. So, it is possible to use text
formatting tools with Geany in a general way.
The selected text will be sent to the standard input of the executed command,
so the command should be able to read from it and it should print all results
to its standard output which will be read by <spanclass="application">Geany</span>.
To help finding errors in executing the command, the output of the program's
standard error will be printed on <spanclass="application">Geany</span>'s standard
output.
</p><p>
To add a custom command, just go to the Set Custom Commands dialog in the
Format sub menu of the Edit and Popup menu. Then click on Add to get a new
text entry and type the command. You can also specify some command line options.
To delete a command, just clear the text entry and press Ok. It will be deleted
when executing the command, the %s is substituted by the word near the
cursor position or by the current selection. If the cursor is at the word
"echo", a browser window will open(assumed your browser is called firefox)
and it will open the address: http://www.php.net/echo.
</p></div></div><divclass="navfooter"><hr><tablewidth="100%"summary="Navigation footer"><tr><tdwidth="40%"align="left"><aaccesskey="p"href="ch03s04.html">Prev</a></td><tdwidth="20%"align="center"><aaccesskey="u"href="ch03.html">Up</a></td><tdwidth="40%"align="right"><aaccesskey="n"href="ch03s06.html">Next</a></td></tr><tr><tdwidth="40%"align="left"valign="top">Character sets and Unicode Byte-Order-Mark (BOM)</td><tdwidth="20%"align="center"><aaccesskey="h"href="index.html">Home</a></td><tdwidth="40%"align="right"valign="top">Search, replace and go to</td></tr></table></div></body></html>