Difference between revisions of "Shortcuts"
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | This | + | This article is about the [[GUI]] of BaseX. |
− | It gives you an overview of the hotkeys available in the | + | It gives you an overview of the most important hotkeys available in the visual frontend. |
<div style="float:left; width:100%;"> | <div style="float:left; width:100%;"> | ||
=Editor= | =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== | ==Editor Shortcuts== | ||
Line 13: | Line 19: | ||
<div style="float:left; width:48%;"> | <div style="float:left; width:48%;"> | ||
=== Custom Editing === | === Custom Editing === | ||
+ | |||
{|width="100%" class="wikitable sortable" | {|width="100%" class="wikitable sortable" | ||
|- | |- | ||
Line 23: | Line 30: | ||
|Ctrl Space | |Ctrl Space | ||
|- | |- | ||
− | |Sort lines | + | |Sort lines |
|Ctrl U | |Ctrl U | ||
|⌘ U | |⌘ U | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|(Un)comment selection/line | |(Un)comment selection/line | ||
Line 35: | Line 38: | ||
|⌘ K | |⌘ K | ||
|- | |- | ||
− | |Delete | + | |Delete line(s) |
|Ctrl Shift D | |Ctrl Shift D | ||
|⌘ Shift D | |⌘ Shift D | ||
+ | |- | ||
+ | |Duplicate line(s) | ||
+ | |Ctrl D | ||
+ | |⌘ D | ||
+ | |- | ||
+ | |Lower case | ||
+ | |Ctrl Shift L | ||
+ | |⌘ Shift L | ||
+ | |- | ||
+ | |Upper case | ||
+ | |Ctrl Shift U | ||
+ | |⌘ Shift U | ||
+ | |- | ||
+ | |Title case | ||
+ | |Ctrl Shift T | ||
+ | |⌘ Shift T | ||
+ | |- | ||
+ | |Format code (experimental) | ||
+ | |Ctrl Shift F | ||
+ | |⌘ Shift F | ||
|} | |} | ||
+ | |||
+ | === Finding === | ||
+ | |||
+ | {|width="100%" class="wikitable sortable" | ||
+ | |- | ||
+ | |'''Description''' | ||
+ | |'''Win/Linux''' | ||
+ | |'''Mac''' | ||
+ | |- | ||
+ | |Search highlighted string in project | ||
+ | |Ctrl H | ||
+ | |⌘ Shift H | ||
+ | |- | ||
+ | |Jump to next error in project | ||
+ | |Ctrl . (period) | ||
+ | |⌘ . (period) | ||
+ | |- | ||
+ | |Jump to currently edited file | ||
+ | |Ctrl J | ||
+ | |⌘ J | ||
+ | |- | ||
+ | |Go to line | ||
+ | |Ctrl L | ||
+ | |⌘ L | ||
+ | |- | ||
+ | |Find and replace text | ||
+ | |Ctrl F | ||
+ | |⌘ F | ||
+ | |- | ||
+ | |Find next instance of text | ||
+ | |F3<br/>Ctrl G | ||
+ | |⌘ F3<br/>⌘ G | ||
+ | |- | ||
+ | |Find previous instance of text | ||
+ | |Shift F3<br/>Ctrl Shift G | ||
+ | |⌘ Shift F3<br/>⌘ Shift G | ||
+ | |} | ||
+ | </div><div style="float:left; width:4%;"> | ||
+ | </div><div style="float:left; width:48%;"> | ||
=== Standard Editing === | === Standard Editing === | ||
Line 97: | Line 159: | ||
|} | |} | ||
− | + | === Navigation === | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{|width="100%" class="wikitable sortable" | {|width="100%" class="wikitable sortable" | ||
|- | |- | ||
Line 171: | Line 199: | ||
<div style="float:left; width:100%;"> | <div style="float:left; width:100%;"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=GUI= | =GUI= | ||
Line 333: | Line 212: | ||
|'''Mac''' | |'''Mac''' | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Focus input bar |
|valign="top"|F6 | |valign="top"|F6 | ||
|valign="top"|⌘ F6 | |valign="top"|⌘ F6 | ||
+ | |- | ||
+ | |valign="top"|Focus editor | ||
+ | |valign="top"|F12 | ||
+ | |valign="top"|⌘ F12 | ||
|- | |- | ||
|Jump to next/previous panel | |Jump to next/previous panel | ||
Line 375: | Line 258: | ||
== Menu Shortcuts == | == Menu Shortcuts == | ||
− | |||
− | |||
The following commands and options are also linked from the main menu: | The following commands and options are also linked from the main menu: | ||
Line 451: | Line 332: | ||
|Ctrl P | |Ctrl P | ||
|⌘ P | |⌘ P | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|Toggle result view | |Toggle result view | ||
Line 530: | Line 407: | ||
Additionally, the names of HTML entities will be converted to their Unicode representation (as an example, {{Code|Auml}} will be translated to {{Code|ä}}). | Additionally, the names of HTML entities will be converted to their Unicode representation (as an example, {{Code|Auml}} will be translated to {{Code|ä}}). | ||
− | + | =Changelog= | |
+ | |||
+ | ;Version 8.4 | ||
+ | |||
+ | * Added: Duplicate line (Ctrl D) | ||
+ | |||
+ | ;Version 8.4 | ||
+ | |||
+ | * Added: Lower case (Ctrl Shift L), Upper case (Ctrl Shift U), Title case (Ctrl Shift T) | ||
;Version 8.0 | ;Version 8.0 | ||
− | * Added: Sort lines (Ctrl | + | * Added: New code completions, popup menu |
+ | |||
+ | ;Version 7.8.2 | ||
+ | |||
+ | * Added: Sort lines (Ctrl U) | ||
;Version 7.8 | ;Version 7.8 | ||
Line 546: | Line 435: | ||
;Version 7.3 | ;Version 7.3 | ||
− | * Added: delete | + | * Added: delete line(s) (Ctrl Shift D), jump to highlighted error (Ctrl .) |
</div> | </div> |
Revision as of 09:53, 6 March 2020
This article is about the GUI of BaseX. It gives you an overview of the most important hotkeys available in the visual frontend.
Contents
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 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 text editor can be used to create, edit, save and execute XQuery expressions, XML documents and any other textual files.
Custom Editing
Description | Win/Linux | Mac |
Performs Code Completions | Ctrl Space | Ctrl Space |
Sort lines | Ctrl U | ⌘ U |
(Un)comment selection/line | Ctrl K | ⌘ K |
Delete line(s) | Ctrl Shift D | ⌘ Shift D |
Duplicate line(s) | Ctrl D | ⌘ D |
Lower case | Ctrl Shift L | ⌘ Shift L |
Upper case | Ctrl Shift U | ⌘ Shift U |
Title case | Ctrl Shift T | ⌘ Shift T |
Format code (experimental) | Ctrl Shift F | ⌘ Shift F |
Finding
Description | Win/Linux | Mac |
Search highlighted string in project | Ctrl H | ⌘ Shift H |
Jump to next error in project | Ctrl . (period) | ⌘ . (period) |
Jump to currently edited file | Ctrl J | ⌘ J |
Go to line | Ctrl L | ⌘ L |
Find and replace text | Ctrl F | ⌘ F |
Find next instance of text | F3 Ctrl G |
⌘ F3 ⌘ G |
Find previous instance of text | Shift F3 Ctrl Shift G |
⌘ Shift F3 ⌘ Shift G |
Standard Editing
Description | Win/Linux | Mac |
Undo recent changes | Ctrl Z | ⌘ Z |
Redo recent changes | Ctrl Y | ⌘ Shift Z |
Cut selection | Ctrl X Ctrl Delete |
⌘ X |
Copy selection to clipboard | Ctrl C Ctrl Insert |
⌘ C |
Paste from clipboard | Ctrl V Shift Insert |
⌘ V |
Select All | Ctrl A | ⌘ A |
Delete character left of cursor | Backspace | Backspace |
Delete character right of cursor | Delete | Delete (fn Backspace) |
Delete word left of cursor | Ctrl Backspace | Alt Backspace |
Delete word right of cursor | Ctrl Delete | Alt Delete |
Delete text left of cursor | Ctrl Shift Backspace | ⌘ Backspace |
Delete text right of cursor | Ctrl Shift Delete | ⌘ Delete |
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 ↑/↓ |
GUI
Global Shortcuts
The following shortcuts are available from most GUI components:
Description | Win/Linux | Mac |
Focus input bar | F6 | ⌘ F6 |
Focus editor | F12 | ⌘ F12 |
Jump to next/previous panel | Ctrl (Shift) Tab | Ctrl (Shift) Tab |
Increase/Decrease font size | Ctrl +/- | ⌘ +/- |
Reset font size | Ctrl 0 | ⌘ 0 |
Description | Win/Linux | Mac |
Browse back/forward | Alt ←/→ Backspace |
⌘ ←/→ |
Browse one level up | Alt ↑ | ⌘ ↑ |
Browse to the root node | Alt Home | ⌘ Home |
Menu Shortcuts
The following commands and options are also linked from the main menu:
Database
Description | Win/Linux | Mac |
Create new database | Ctrl N | ⌘ N |
Open/manage existing databases | Ctrl M | ⌘ M |
View/edit database properties | Ctrl D | ⌘ D |
Close opened database | Ctrl Shift W | ⌘ Shift W |
Exit application | Ctrl Q | ⌘ Q |
Editor
Description | Win/Linux | Mac |
Create new tab | Ctrl T | ⌘ T |
Open existing file | Ctrl O | ⌘ O |
Save file | Ctrl S | ⌘ S |
Save copy of file | Ctrl Shift S | ⌘ Shift S |
Close tab | Ctrl W, Ctrl F4 | ⌘ W, ⌘ F4 |
View
Description | Win/Linux | Mac |
Toggle query/text editor | Ctrl E | ⌘ E |
Toggle project structure | Ctrl P | ⌘ P |
Toggle result view | Ctrl R | ⌘ R |
Toggle query info view | Ctrl I | ⌘ I |
Options
Description | Win/Linux | Mac |
Open preference dialog | Ctrl Shift P | ⌘ , (comma) |
Visualization
Description | Win/Linux | Mac |
Toggle map view | Ctrl 1 | ⌘ 1 |
Toggle tree view | Ctrl 2 | ⌘ 2 |
Toggle folder view | Ctrl 3 | ⌘ 3 |
Toggle plot view | Ctrl 4 | ⌘ 4 |
Toggle table view | Ctrl 5 | ⌘ 5 |
Toggle explorer view | Ctrl 6 | ⌘ 6 |
Help
Description | Win/Linux | Mac |
Show Help | F1 | F1 |
Additionally, the names of HTML entities will be converted to their Unicode representation (as an example, Auml
will be translated to ä
).
Changelog
- Version 8.4
- Added: Duplicate line (Ctrl D)
- Version 8.4
- Added: Lower case (Ctrl Shift L), Upper case (Ctrl Shift U), Title case (Ctrl Shift T)
- Version 8.0
- Added: New code completions, popup menu
- Version 7.8.2
- Added: Sort lines (Ctrl U)
- Version 7.8
- Added: Code Completions, Project (Ctrl P), Find Files (Ctrl Shift F)
- Version 7.5
- Added: go to line (Ctrl F)
- Version 7.3
- Added: delete line(s) (Ctrl Shift D), jump to highlighted error (Ctrl .)