Changes

Jump to navigation Jump to search
61 bytes added ,  13:48, 11 February 2014
no edit summary
It gives you an overview of the hotkeys available in the GUI of BaseX.
<div style== Global Shortcuts =="float:left; width:100%;">
The following shortcuts are available from most GUI components:=Editor=
<div style="float:left; width:48%;">{|width="100%" class="wikitable sortable"|-|'''Description'''|'''Win/Linux'''|'''Mac'''|-|valign="top"|Jump to input bar|valign="top"|F6|valign="top"|⌘ F6|-|Jump to next/previous panel|Ctrl (Shift) Tab|Ctrl (Shift) Tab|-|valign="top"|Increase/Decrease font size|valign="top"|Ctrl +/-|valign="top"|⌘ +/-|-|valign="top"|Reset font size|valign="top"|Ctrl 0|valign="top"|⌘ 0|}</div><div style="float:left; width:4%;">&nbsp;</div><div style="float:left; width:48%;">{|width="100%" class="wikitable sortable"|-|'''Description'''|'''Win/Linux'''|'''Mac'''|-|valign="top"|Browse back/forward|valign="top"|Alt ←/→<br/>Backspace|valign="top"|⌘ ←/→|-|Browse one level up|Alt ↑|⌘ ↑|-|Browse to the root node|Alt Home|⌘ Home|}</div> <div style="float:left; width:100%;"> == Editor Shortcuts ==
The text editor can be used to create, edit, save and execute XQuery expressions, XML documents and any other textual files.
|Alt ↑/↓
|}
</div>
 
<div style="float:left; width:100%;">
 
==Code Completions==
 
{{Mark|Introduced with Version 7.8:}}
 
The GUI editor provides various code completions, which simplify the authoring of complex XQuery applications. Opening elements, comments, quotes or brackets will automatically be closed, and new lines will automatically be indented. If the [[#Editor Shortcut|shortcut]] for code completions is pressed, the keys listed in the following table will be replaced with their corresponding values. An underscore indicates where the cursor will be placed after the replacement:
 
<div style="float:left; width:48%;">
{|width="100%" class="wikitable sortable"
|-
|'''Key'''
|'''Value'''
|-
|<code>..</code>
|<code>parent::node()</code>
|-
|<code>.</code>
|<code>self::node()</code>
|-
|<code>//</code>
|<code>/descendant-or-self::node()/</code>
|-
|<code>/</code>
|<code>root()</code>
|-
|<code>@</code>
|<code>attribute</code>
|-
|<code>an</code>
|<code>ancestor::</code>
|-
|<code>as</code>
|<code>ancestor-or-self::</code>
|-
|<code>copy</code>
|<code>copy $_ := <br/>modify <br/>return </code>
|-
|<code>cr</code>
|<code>&amp;xD;</code>
|-
|<code>ch</code>
|<code>child::</code>
|-
|<code>ct</code>
|<code>contains text</code>
|-
|<code>de</code>
|<code>descendant::</code>
|-
|<code>ds</code>
|<code>descendant-or-self::</code>
|-
|<code>declnl</code>
|<code>declare option output:item-separator "&amp;#xA;";</code>
|-
|<code>declns</code>
|<code>declare namespace _ = "";</code>
|-
|<code>delete</code>
|<code>delete node _</code>
|-
|<code>dump</code>
|<code>prof:dump(_)</code>
|-
|<code>fo</code>
|<code>following::</code>
|-
|<code>for</code>
|<code>for $_ in <br/>return </code>
|-
|<code>fs</code>
|<code>following-sibling::</code>
|-
|<code>function</code>
|<code>declare function _() {<br/>  <br/>};</code>
|-
|<code>group</code>
|<code>group by $_</code>
|-
|<code>import</code>
|<code>import module namespace _ = "";</code>
|}
</div><div style="float:left; width:4%;">&nbsp;
</div><div style="float:left; width:48%;">
{|width="100%" class="wikitable sortable"
|-
|'''Key'''
|'''Value'''
|-
|<code>insert</code>
|<code>insert node _ into </code>
|-
|<code>let</code>
|<code>let $_ := <br/>return </code>
|-
|<code>module</code>
|<code>module namespace _ = "";</code>
|-
|<code>nl</code>
|<code>&amp;xA;</code>
|-
|<code>ns</code>
|<code>namespace</code>
|-
|<code>order</code>
|<code>order by _</code>
|-
|<code>pa</code>
|<code>parent::</code>
|-
|<code>pr</code>
|<code>preceding::</code>
|-
|<code>ps</code>
|<code>preceding-sibling::</code>
|-
|<code>rename</code>
|<code>rename node _ as </code>
|-
|<code>replace value</code>
|<code>replace value of node _ with </code>
|-
|<code>replace</code>
|<code>replace node _ with </code>
|-
|<code>some</code>
|<code>some $_ in <br/>satisfies </code>
|-
|<code>switch</code>
|<code>switch(_)<br/>  case return <br/>  default return </code>
|-
|<code>tab</code>
|<code>&amp;#x9;</code>
|-
|<code>trace</code>
|<code>trace(_ , 'Info: ')</code>
|-
|<code>try</code>
|<code>try {<br/>  _<br/>} catch * {<br/>  <br/>}</code>
|-
|<code>typeswitch</code>
|<code>typeswitch(_)<br/>  case return <br/>  default return </code>
|-
|<code>variable</code>
|<code>declare variable $_ := ;</code>
|}
</div>
</div>
 
<div style="float:left; width:100%;">
=GUI=
 
== Global Shortcuts ==
 
The following shortcuts are available from most GUI components:
 
<div style="float:left; width:48%;">
{|width="100%" class="wikitable sortable"
|-
|'''Description'''
|'''Win/Linux'''
|'''Mac'''
|-
|valign="top"|Jump to input bar
|valign="top"|F6
|valign="top"|⌘ F6
|-
|Jump to next/previous panel
|Ctrl (Shift) Tab
|Ctrl (Shift) Tab
|-
|valign="top"|Increase/Decrease font size
|valign="top"|Ctrl +/-
|valign="top"|⌘ +/-
|-
|valign="top"|Reset font size
|valign="top"|Ctrl 0
|valign="top"|⌘ 0
|}
</div><div style="float:left; width:4%;">&nbsp;
</div><div style="float:left; width:48%;">
{|width="100%" class="wikitable sortable"
|-
|'''Description'''
|'''Win/Linux'''
|'''Mac'''
|-
|valign="top"|Browse back/forward
|valign="top"|Alt ←/→<br/>Backspace
|valign="top"|⌘ ←/→
|-
|Browse one level up
|Alt ↑
|⌘ ↑
|-
|Browse to the root node
|Alt Home
|⌘ Home
|}
</div>
</div>
|}
</div>
<div style="float:left; width:100%;">
 
==Code Completions==
 
{{Mark|Introduced with Version 7.8:}}
 
The GUI editor provides various code completions, which simplify the authoring of complex XQuery applications. Opening elements, comments, quotes or brackets will automatically be closed, and new lines will automatically be indented. If the [[#Editor Shortcut|shortcut]] for code completions is pressed, the keys listed in the following table will be replaced with their corresponding values. An underscore indicates where the cursor will be placed after the replacement:
 
<div style="float:left; width:48%;">
{|width="100%" class="wikitable sortable"
|-
|'''Key'''
|'''Value'''
|-
|<code>..</code>
|<code>parent::node()</code>
|-
|<code>.</code>
|<code>self::node()</code>
|-
|<code>//</code>
|<code>/descendant-or-self::node()/</code>
|-
|<code>/</code>
|<code>root()</code>
|-
|<code>@</code>
|<code>attribute</code>
|-
|<code>an</code>
|<code>ancestor::</code>
|-
|<code>as</code>
|<code>ancestor-or-self::</code>
|-
|<code>copy</code>
|<code>copy $_ := <br/>modify <br/>return </code>
|-
|<code>cr</code>
|<code>&amp;xD;</code>
|-
|<code>ch</code>
|<code>child::</code>
|-
|<code>ct</code>
|<code>contains text</code>
|-
|<code>de</code>
|<code>descendant::</code>
|-
|<code>ds</code>
|<code>descendant-or-self::</code>
|-
|<code>declnl</code>
|<code>declare option output:item-separator "&amp;#xA;";</code>
|-
|<code>declns</code>
|<code>declare namespace _ = "";</code>
|-
|<code>delete</code>
|<code>delete node _</code>
|-
|<code>dump</code>
|<code>prof:dump(_)</code>
|-
|<code>fo</code>
|<code>following::</code>
|-
|<code>for</code>
|<code>for $_ in <br/>return </code>
|-
|<code>fs</code>
|<code>following-sibling::</code>
|-
|<code>function</code>
|<code>declare function _() {<br/>  <br/>};</code>
|-
|<code>group</code>
|<code>group by $_</code>
|-
|<code>import</code>
|<code>import module namespace _ = "";</code>
|}
</div><div style="float:left; width:4%;">&nbsp;
</div><div style="float:left; width:48%;">
{|width="100%" class="wikitable sortable"
|-
|'''Key'''
|'''Value'''
|-
|<code>insert</code>
|<code>insert node _ into </code>
|-
|<code>let</code>
|<code>let $_ := <br/>return </code>
|-
|<code>module</code>
|<code>module namespace _ = "";</code>
|-
|<code>nl</code>
|<code>&amp;xA;</code>
|-
|<code>ns</code>
|<code>namespace</code>
|-
|<code>order</code>
|<code>order by _</code>
|-
|<code>pa</code>
|<code>parent::</code>
|-
|<code>pr</code>
|<code>preceding::</code>
|-
|<code>ps</code>
|<code>preceding-sibling::</code>
|-
|<code>rename</code>
|<code>rename node _ as </code>
|-
|<code>replace value</code>
|<code>replace value of node _ with </code>
|-
|<code>replace</code>
|<code>replace node _ with </code>
|-
|<code>some</code>
|<code>some $_ in <br/>satisfies </code>
|-
|<code>switch</code>
|<code>switch(_)<br/>  case return <br/>  default return </code>
|-
|<code>tab</code>
|<code>&amp;#x9;</code>
|-
|<code>trace</code>
|<code>trace(_ , 'Info: ')</code>
|-
|<code>try</code>
|<code>try {<br/>  _<br/>} catch * {<br/>  <br/>}</code>
|-
|<code>typeswitch</code>
|<code>typeswitch(_)<br/>  case return <br/>  default return </code>
|-
|<code>variable</code>
|<code>declare variable $_ := ;</code>
|}
</div>
</div>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu