Difference between revisions of "Shortcuts"

From BaseX Documentation
Jump to navigation Jump to search
Line 84: Line 84:
 
|}
 
|}
  
 +
=== Finding ===
 +
{|width="100%" class="wikitable sortable"
 +
|-
 +
|'''Description'''
 +
|'''Win/Linux'''
 +
|'''Mac'''
 +
|-
 +
|Find text
 +
|Ctrl F
 +
|⌘ F
 +
|-
 +
|Find next instance of text
 +
|Ctrl G<br/>F3
 +
|⌘ G<br/>⌘ F3
 +
|-
 +
|Find previous instance of text
 +
|Ctrl Shift G<br/>Shift F3
 +
|⌘ Shift G<br/>⌘ Shift F3
 +
|}
 +
 +
=== Navigating ===
 +
{|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:4%;">&nbsp;
 +
</div><div style="float:left; width:48%;">
 
=== Editing ===
 
=== Editing ===
 
{|width="100%" class="wikitable sortable"
 
{|width="100%" class="wikitable sortable"
Line 138: Line 195:
 
|Ctrl Shift Delete
 
|Ctrl Shift Delete
 
|⌘ Delete
 
|⌘ Delete
|}
 
</div><div style="float:left; width:4%;">&nbsp;
 
</div><div style="float:left; width:48%;">
 
 
=== Find ===
 
{|width="100%" class="wikitable sortable"
 
|-
 
|'''Description'''
 
|'''Win/Linux'''
 
|'''Mac'''
 
|-
 
|Find text
 
|Ctrl F
 
|⌘ F
 
|-
 
|Find next instance of text
 
|Ctrl G<br/>F3
 
|⌘ G<br/>⌘ F3
 
|-
 
|Find previous instance of text
 
|Ctrl Shift G<br/>Shift F3
 
|⌘ Shift G<br/>⌘ Shift F3
 
|}
 
 
=== 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>

Revision as of 13:32, 25 September 2012

This page is part of the Getting Started Section. It gives you an overview of the hotkeys available in the GUI of BaseX.

Global Shortcuts

The following shortcuts are available from most GUI components:

Description Win/Linux Mac
Jump to input bar Ctrl L
F6
⌘ L
⌘ F6
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

Editor Shortcuts

The text editor can be used to create, edit, save and execute XQuery expressions, XML documents and any other textual files. It provides numerous shortcuts, which are listed below.

Processing

Description Win/Linux Mac
Execute query Ctrl Enter ⌘ Enter
(Un)comment selection/line Ctrl K ⌘ K
Delete complete line (Version 7.3) Ctrl Shift D ⌘ Shift D
Jump to highlighted error Version 7.3 Ctrl . ⌘ .

Finding

Description Win/Linux Mac
Find text Ctrl F ⌘ F
Find next instance of text Ctrl G
F3
⌘ G
⌘ F3
Find previous instance of text Ctrl Shift G
Shift F3
⌘ Shift G
⌘ Shift F3

Navigating

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 ↑/↓
 

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

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 O ⌘ O
View/edit database properties Ctrl D ⌘ D
Close opened database Ctrl W ⌘ W
Exit application Ctrl Q ⌘ Q

Query

Description Win/Linux Mac
Toggle query/text editor Ctrl E ⌘ E
Toggle query info view Ctrl I ⌘ I
Create new text file Ctrl Shift N ⌘ Shift N
Open existing text file Ctrl R ⌘ R
Save text file Ctrl S ⌘ S
Save copy of text file Ctrl Shift S ⌘ Shift S
Close opened text file Ctrl Shift W ⌘ Shift W

Help

Description Win/Linux Mac
Show Help F1 F1
 

View

Description Win/Linux Mac
Toggle text view Ctrl 1 ⌘ 1
Toggle map view Ctrl 2 ⌘ 2
Toggle tree view Ctrl 3 ⌘ 3
Toggle folder view Ctrl 4 ⌘ 4
Toggle plot view Ctrl 5 ⌘ 5
Toggle table view Ctrl 5 ⌘ 5
Toggle explorer view Ctrl 7 ⌘ 7

Nodes

Description Win/Linux Mac
Copy path to current node Ctrl Shift C ⌘ Shift C

Options

Description Win/Linux Mac
Open preference dialog Ctrl P ⌘ P

Changelog

Version 7.3
  • Added: delete complete line (Ctrl Shift D), jump to highlighted error (Ctrl .)