2.2. Select menu items

Tip

Clicking anywhere in the document view or any caret movement has the side effect to cancel the selection. It is also possible to explicitly do so by typing Esc+Esc.

Select Parent

Selects parent of currently selected node.

If there is no currently selected node, selects the text, comment or processing instruction node containing the caret.

Select Child

Selects previously selected child of currently selected node.

If there is no such child, selects first child node of currently selected element.

If currently selected node is a text, comment or processing instruction node, cancels the selection.

Select Preceding Sibling

Selects preceding sibling of currently selected node, if any.

Select Following Sibling

Selects following sibling of currently selected node, if any.

Extend Selection to Preceding Sibling

Adds preceding sibling, if any, of currently selected node to the node selection.

If there is no currently selected node, selects the element containing the caret.

Keyboard shortcut (not displayed in menu): Esc+Left.

Extend Selection to Following Sibling

Adds following sibling, if any, of currently selected node to the node selection.

If there is no currently selected node, selects the element containing the caret.

Keyboard shortcut (not displayed in menu): Esc+Right.

Select All Children

Selects all children of currently selected element.

Keyboard shortcut (not displayed in menu): Esc+Down.

2.2.1. Link submenu

Select Link Target

An element acting as a link source must be implicitly or explicitly selected. Scrolls to and selects the element which is the target of this link.

DocBook example: the selected element is <link linkend="foo">...</link>. Scrolls to and selects the element having foo as its id attribute.

Select Link Source

An element acting as a link target must be implicitly or explicitly selected. Scrolls to and selects the element which points to this target.

DocBook example: the selected element is <para id="foo">...</para>. Scrolls to and selects first <xref linkend="foo"/> or <link linkend="foo">...</link>.

Select Preceding Link Source

An element acting as a link source must be implicitly or explicitly selected. Scrolls to and selects the preceding (in document order) link pointing to the same target.

Select Following Link Source

An element acting as a link source must be implicitly or explicitly selected. Scrolls to and selects the following (in document order) link pointing to the same target.

In some cases[5], the above menu items allows to select an destination found in a document other than the one being edited. In such case, the user is prompted to confirm that she/he really wants to open this other document. This confirmation dialog box also allows the user to choose to open the other document in read-only mode.



[5] XHTML example: link <a href="conclusion.html#acknowledgments"> found in file introduction.html.