Changes

Jump to navigation Jump to search
1,495 bytes removed ,  11:55, 1 August 2022
This page article is part of about the [[Getting StartedGUI]] Sectionof BaseX.It gives you an overview of the most important hotkeys available in the GUI of BaseXvisual frontend.
<div style="float:left; width:100%;"> = Global Editor= ==Code Completions== 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 some characters have been entered, and if the [[#Editor Shortcuts|shortcut]] for code completions is pressed (Ctrl Space), a popup menu will appear and provides some code templates. If only one completion is possible, it will automatically be inserted. ==Editor Shortcuts ==
The following shortcuts are available from most GUI components:text editor can be used to create, edit, save and execute XQuery expressions, XML documents and any other textual files.</div>
<div style="float:left; width:48%;">
=== Query Execution ===
 
{|width="100%" class="wikitable sortable"
|-
|'''Mac'''
|-
|valign="top"|Jump to input barExecute XQuery|valign="top"|F6Ctrl Enter|valign="top"|⌘ F6⌘ Enter
|-
|Jump to next/previous panelExecute XQUnit tests|Ctrl (Shift) TabCtrl Shift Enter|Ctrl (Shift) Tab⌘ Shift Enter
|-
|valign="top"|Increase/Decrease font sizeEdit external variables|valign="top"|Ctrl +/-Ctrl Shift E|valign="top"|⌘ +/-⌘ Shift E
|-
|valign="top"|Reset font sizeResult indentation on/off|valign="top"Ctrl Shift I ({{Announce|Ctrl 0new}})|valign="top"|⌘ 0⌘ Shift I ({{Announce|new}}</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 = Custom Editing ===
The text editor can be used to create, edit, save and execute XQuery expressions, XML documents and any other textual files.
</div>
 
<div style="float:left; width:48%;">
=== Processing ===
{|width="100%" class="wikitable sortable"
|-
|'''Mac'''
|-
|Execute queryPerforms [[#Code Completions|Code Completions]]|Ctrl Space|Ctrl Space|-|Sort lines|Ctrl EnterCtrl U|⌘ Enter⌘ U
|-
|(Un)comment selection/line
|⌘ K
|-
|Delete complete line(s)
|Ctrl Shift D
|⌘ Shift D
|-
|Jump to highlighted errorDuplicate line(s)|Ctrl .Ctrl D|⌘ .⌘ D|-|Lower case|Ctrl Shift L|⌘ Shift L|-|Upper case|Ctrl Shift U|⌘ Shift U
|-
|Performs [[#Code CompletionsTitle case|Ctrl Shift T|⌘ Shift T|-|Code Completions]]Format code (experimental)|Ctrl SpaceCtrl Shift F|⌘ Space⌘ Shift F
|}
=== Finding ===
 
{|width="100%" class="wikitable sortable"
|-
|'''Mac'''
|-
|Find textSearch highlighted string in project|Ctrl FCtrl H|⌘ F⌘ Shift H
|-
|Find Jump to next instance of texterror in project|Ctrl G<br/>F3Ctrl . (period)|⌘ G<br/>⌘ F3⌘ . (period)
|-
|Find previous instance of textJump to currently edited file|Ctrl Shift G,<br/>Shift F3Ctrl J|⌘ Shift G,<br/>⌘ Shift F3⌘ J
|-
|Go to line
|Ctrl L
|⌘ L
|}
 
=== Navigating ===
{|width="100%" class="wikitable sortable"
|-
|'''Description'''Find and replace text|'''Win/Linux'''Ctrl F|'''Mac'''⌘ F
|-
|Move one character to the left/rightFind next instance of text|F3<br/>Ctrl G|⌘ F3<br/>⌘ G
|-
|Move one word to the left/rightFind previous instance of text|Ctrl ←Shift F3<br/>Ctrl Shift G|Alt ←⌘ Shift F3<br/>⌘ Shift G
|-
|Move Jump to beginning/end of linefile history|Home/EndCtrl F6 ({{Announce|⌘ ←/→|-|Move one line up/down|↑/↓|↑/↓new}})|-|Move one screen-full up/down|Page ↑/↓|Page ↑/↓ ⌘ F6 (fn ↑/↓){{Announce|-|Move to top/bottom|Ctrl Home/End|↖/↘ (⌘ ↑/↓new}})|-|Scroll one line up/down|Ctrl ↑/↓|Alt ↑/↓
|}
</div><div style="float:left; width:4%;">&nbsp;
</div><div style="float:left; width:48%;">
=== Standard Editing === 
{|width="100%" class="wikitable sortable"
|-
|⌘ Delete
|}
 
=== Navigation ===
 
{|width="100%" class="wikitable sortable"
|-
|'''Description'''
|'''Win/Linux'''
|'''Mac'''
|-
|Move one character to the left/right
|←/→
|←/→
|-
|Move one word to the left/right
|Ctrl ←/→
|Alt ←/→
|-
|Move to beginning/end of line
|Home/End
|⌘ ←/→
|-
|Move one line up/down
|↑/↓
|↑/↓
|-
|Move one screen-full up/down
|Page ↑/↓
|Page ↑/↓ (fn ↑/↓)
|-
|Move to top/bottom
|Ctrl Home/End
|↖/↘ (⌘ ↑/↓)
|-
|Scroll one line up/down
|Ctrl ↑/↓
|Alt ↑/↓
|}
</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"|Focus input bar
|valign="top"|F8 ({{Announce|before: F6}})
|valign="top"|⌘ F8 ({{Announce|before: ⌘ F6}})
|-
|valign="top"|Focus editor view
|valign="top"|F12
|valign="top"|⌘ F12
|-
|valign="top"|Focus result view
|valign="top"|Shift F12 ({{Announce|new}})
|valign="top"|Shift ⌘ F12 ({{Announce|new}})
|-
|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>
|-
|Open/manage existing databases
|Ctrl OM|⌘ OM
|-
|View/edit database properties
|}
=== Query Editor ===
{|width="100%" class="wikitable sortable"
|-
|'''Mac'''
|-
|Toggle query/text editor|Ctrl E|⌘ E|-|Toggle query info view|Ctrl I|⌘ I|-|Create new editor tab
|Ctrl T
|⌘ T
|-
|Open existing text file|Ctrl RO|⌘ RO
|-
|Save text file
|Ctrl S
|⌘ S
|-
|Save copy of text file
|Ctrl Shift S
|⌘ Shift S
|-
|Close editor tab
|Ctrl W, Ctrl F4
|⌘ W, ⌘ F4
|}
 
=== View ===
{|width="100%" class="wikitable sortable"
|-
|'''Description'''
|'''Win/Linux'''
|'''Mac'''
|-
|Toggle query/text editor
|Ctrl E
|⌘ E
|-
|Toggle project structure
|Ctrl Shift EP|⌘ Shift EP
|-
|Jump to project structureToggle result view|Ctrl Shift R|⌘ Shift R
|-
|Jump to project file filterToggle query info view|Ctrl Shift TI|⌘ Shift TI
|}
</div><div style="float:left; width:48%;">
=== View Options ==={|width="100%" class="wikitable sortable"|-|'''Description'''|'''Win/Linux'''|'''Mac'''|-|Open preference dialog|Ctrl Shift P|⌘ , (comma)|} === Visualization ===
{|width="100%" class="wikitable sortable"
|-
|'''Mac'''
|-
|Toggle text map view
|Ctrl 1
|⌘ 1
|-
|Toggle map tree view
|Ctrl 2
|⌘ 2
|-
|Toggle tree folder view
|Ctrl 3
|⌘ 3
|-
|Toggle folder plot view
|Ctrl 4
|⌘ 4
|-
|Toggle plot view
|Ctrl 5
|⌘ 5
|-
|Toggle table view
|-
|Toggle explorer view
|Ctrl 76|⌘ 7|} === Nodes ==={|width="100%" class="wikitable sortable"|-|'''Description'''|'''Win/Linux'''|'''Mac'''|-|Copy path to current node|Ctrl Shift C|⌘ Shift C|} === Options ==={|width="100%" class="wikitable sortable"|-|'''Description'''|'''Win/Linux'''|'''Mac'''|-|Open preference dialog|Ctrl P|⌘ , (comma)6
|}
</div>
 
<div style="float:left; width:100%;">
==Additionally, the names of HTML entities will be converted to their Unicode representation (as an example, {{Code Completions==|Auml}} will be translated to {{Code|ä}}).
{{Mark|Introduced with Version 7.8:}}=Changelog=
The GUI editor provides various code completions, which simplify the authoring of complex XQuery applications;Version 10. Opening elements, comments, quotes or brackets will automatically be closed, and new lines will automatically be indented0* Updated: Some shortcuts were modified. 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>.Version 8.</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* Added: ')</code>|-|<code>try</code>|<code>try {<br/>  _<br/>} catch * {<br/>  <br/>}</code>|-|<code>typeswitch</code>|<code>typeswitchDuplicate line (_Ctrl D)<br/>  case return <br/>  default return </code>|-|<code>variable</code>|<code>declare variable $_ := ;</code>|}</div></div>
<div style="float:left; widthVersion 8.4* Added:100%;">Lower case (Ctrl Shift L), Upper case (Ctrl Shift U), Title case (Ctrl Shift T)
Additionally;Version 8.0* Added: New code completions, the names of HTML entities will be converted to their Unicode representation (as an example, {{Code|Auml}} will be translated to {{Code|ä}}).popup menu
==Changelog==;Version 7.8.2* Added: Sort lines (Ctrl U)
;Version 7.8
 
* Added: [[#Code Completions|Code Completions]], Project (Ctrl P), Find Files (Ctrl Shift F)
;Version 7.5
 
* Added: go to line (Ctrl F)
;Version 7.3
 * Added: delete complete line (s) (Ctrl Shift D), jump to highlighted error (Ctrl .)
</div>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu