Common Keyboard Shortcuts/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 45: Zeile 45:
=== Tree/List Organisation ===
=== Tree/List Organisation ===


* '''<kbd>Ctrl-&#x2193;</kbd>''' (= Ctrl-CursorDown) - "''move down''"<br>This moves the selected item(s) down in the navigation tree or a testplan's list of test cases. In a diagram editor, if a step's pin is selected in the diagram editor, this is moved towards the bottom.
* '''<kbd>Ctrl-&#x2193;</kbd>''' (= Ctrl-CursorDown) - "''Move Down''"<br>This moves the selected item(s) down in the navigation tree or a testplan's list of test cases. In a diagram editor, if a step's pin is selected in the diagram editor, this is moved towards the bottom.


* '''<kbd>Ctrl-&#x2191;</kbd>''' (= Ctrl-CursorwUp) - "''move up''"<br>This moves the selected item up in the navigation tree or a testplan's list of test cases. In a diagram editor, if a step's pin is selected in the diagram editor, this is moved towards the top.
* '''<kbd>Ctrl-&#x2191;</kbd>''' (= Ctrl-CursorwUp) - "''Move Up''"<br>This moves the selected item up in the navigation tree or a testplan's list of test cases. In a diagram editor, if a step's pin is selected in the diagram editor, this is moved towards the top.


* '''<kbd>Ctrl-&#x2190;</kbd>''' (= Ctrl-CursorLeft) - "''move out''"<br>In the navigation tree, this moves the selected item out of its containing (parent) item and places it below the parent in the list.
* '''<kbd>Ctrl-&#x2190;</kbd>''' (= Ctrl-CursorLeft) - "''Move Out''"<br>In the navigation tree, this moves the selected item out of its containing (parent) item and places it below the parent in the list.


* '''<kbd>Ctrl-&#x2192;</kbd>''' (= Ctrl-CursorRight) - "''move in''"<br>In the navigation tree, this moves the selected item into the tree item right above it. I.e. it makes it a child element of the other item.
* '''<kbd>Ctrl-&#x2192;</kbd>''' (= Ctrl-CursorRight) - "''Move In''"<br>In the navigation tree, this moves the selected item into the tree item right above it. I.e. it makes it a child element of the other item.


* '''<kbd>Ctrl-Shift-&#x2193;</kbd>''' (= Ctrl-Shift-CursorDown) - "''Move to Bottom''"<br>This moves the selected item(s) down in the navigation tree to the end of the children list.


* '''<kbd>Ctrl-Shift-&#x2193;</kbd>''' (= Ctrl-Shift-CursorDown) - "''move to bottom''"<br>This moves the selected item(s) down in the navigation tree to the end of the children list.
* '''<kbd>Ctrl-Shift-&#x2191;</kbd>''' (= Ctrl-Shift-CursorUp] - "''Move to Top''"<br>This moves the selected item up in the navigation tree to the beginning of the children list.


=== Element Creation (Diagram Editor) ===
* '''<kbd>Ctrl-Shift-&#x2191;</kbd>''' (= Ctrl-Shift-CursorUp] - "''move to top''"<br>This moves the selected item up in the navigation tree to the beginning of the children list.

=== Element Creation ===


* '''<kbd>Ctrl-n</kbd>''' - "''New Step''"<br>In the diagram editor: opens a dialog to create a new step. The dialog lets you choose the action which is to be instantiated. If a pin is selected, the dialog filters are preset to only show action blocks with correspondingly typed pins.<br>In the scheme editor: adds a new input or output pin, depending on the currently selected pin's type.
* '''<kbd>Ctrl-n</kbd>''' - "''New Step''"<br>In the diagram editor: opens a dialog to create a new step. The dialog lets you choose the action which is to be instantiated. If a pin is selected, the dialog filters are preset to only show action blocks with correspondingly typed pins.<br>In the scheme editor: adds a new input or output pin, depending on the currently selected pin's type.
Zeile 71: Zeile 70:


More editing functions are found in every text editor's, lists or diagram's right-button menu; some of which do have keyboard shortcuts.
More editing functions are found in every text editor's, lists or diagram's right-button menu; some of which do have keyboard shortcuts.

=== Code Editor ===

* '''<kbd>Ctrl-d;</kbd>''' - "''DoIt''"<br>This works in code editors for Smalltalk or the builtin JavaScript actions. It takes the currently selected piece of text and immediately executes it as a program. The result is silently discarded (see below for more).
If no text is currently selected, the current cursor line is taken as input.

* '''<kbd>Ctrl-p;</kbd>''' - "''PrintIt''"<br>Simular to the above, but the reslt is paste after the selection.

* '''<kbd>Ctrl-q;</kbd>''' - "''InspectIt''"<br>Simular to the above, but an inspector window is opened on the reslt.

* '''<kbd>Ctrl-B;</kbd>''' (Ctrl-Shift-B) - "''BrowseIt''"<br>Simular to the above, but an class browser is opened on the reslt's class, showing all operations (methods) which are implemented by this object. See the "[[Smalltalk Syntax Cheat Sheet]]" for a short syntax summary.

* '''<kbd>Ctrl-I;</kbd>''' (Ctrl-Shift-I) - "''Implementors''"<br>Extracts a Smalltalk message name (i.e. the name of an operation) and opens a browser on all methods in the system which implement that message.


=== Other ===
=== Other ===

Aktuelle Version vom 10. Mai 2025, 20:08 Uhr

In general, keyboard shortcuts perform functions which are also available on popup menus of the individual UI components, and these popup menu are usually context/selection menus. This means, that they typically offer operations on the current selected element within that view. In contrast to eg. Mac OSX, the keyboard shortcuts are context sensitive, and depend on the current focus window. This means that the same shortcut may perform different operations depending on which component has the keyboard focus.

All editing functions can be undone via the "Undo" (Ctrl-z) menu function, in case you pressed the wrong key or inside another component.

General Editing[Bearbeiten]

  • Ctrl-c - "Copy".
    Copies the selection into the clipboard. The object to be copied depends on the context and selection:
    - in a text editor, the text-selection is copied.
    - in the diagram editor, the selected element(s) are copied
    - in the navigation tree, the selected tree items are copied.
  • Ctrl-v - "Paste"
    Pastes the clipboard object. This is not always possible, and sometimes simply ignored (for example, if a tree-item is copied and tried to be pasted into a text editor).
  • Ctrl-x - "Cut"
    Deletes the selection and puts it into the clipboard (for later pasting)
  • Del - "Delete"
    Deletes but does NOT put the deleted object into the clipboard
  • Ctrl-z - "Undo"
    Undoes the last operation in a text view. This is a multi-undo. This is the same function as performed by the undo toolbar menu button. This button shows a tooltip, which describes what would be undone if pressed. If you are uncertain, what would be undone, place the mouse over this toolbar button (without pressing) and read the tooltip. Undo for complex operations (tree manipulations, imports etc. are performed via a toolbar button, which shows the kind of operation to be undone in its tooltip).
  • Ctrl-y - "Redo"
    Undoes the last undo operation. Currently, this works only in text editor windows (i.e. be careful in the diagram editor).
  • Ctrl-g - "Goto Line"
    In text editors: to position the cursor to an entered line number. If the entered number has a sign (+/-), the positioning is relative to the current line. In a diagram editor, a graphic annotation is inserted (see below)
  • Ctrl-f - "Find"
    Opens a dialog to enter a search string and various options for search (pattern-matching search, wrap at end, etc.). Also a replace string can be entered for search and replace.
  • Alt-f - "Forward Search"
    Searches for the next occurrence of the previous search string.
  • Alt-b - "Backward Search"
    Searches for the previous occurrence of the previous search string.
  • F8 - "Again"
    Repeats the last cut or replace operation in a text editor. For example, to replace a string by another string, first select it, type in the new word, then press F8 to search for the next occurrence and replace again. If the previous operation was a "cut" or "delete", then F2 searches for the next occurrence and deletes that again.
  • F2 - "Rename"
    In the tree or diagram editor, lets you rename the selected element
  • F3 - "Comment"
    In an elementary code editor, comments the selection or the current cursor line
  • F4 - "Uncomment"
    In an elementary code editor, uncomments the selection or the current cursor line
  • F6 - "Toggle Case"
    toggles the selection between titlecase, uppercase and lowercase (press multiple times)
  • F9 - "Undent by 4"
    remove the left 4 spaces of the selected line range, or the cursor line (if no lines are seleted)
  • F10 - "Indent by 4"
    add 4 spaces to the left of the selected line range, or the cursor line
  • F11 - "Undent by 1"
  • F12 - "Indent by 1"

Tree/List Organisation[Bearbeiten]

  • Ctrl-↓ (= Ctrl-CursorDown) - "Move Down"
    This moves the selected item(s) down in the navigation tree or a testplan's list of test cases. In a diagram editor, if a step's pin is selected in the diagram editor, this is moved towards the bottom.
  • Ctrl-↑ (= Ctrl-CursorwUp) - "Move Up"
    This moves the selected item up in the navigation tree or a testplan's list of test cases. In a diagram editor, if a step's pin is selected in the diagram editor, this is moved towards the top.
  • Ctrl-← (= Ctrl-CursorLeft) - "Move Out"
    In the navigation tree, this moves the selected item out of its containing (parent) item and places it below the parent in the list.
  • Ctrl-→ (= Ctrl-CursorRight) - "Move In"
    In the navigation tree, this moves the selected item into the tree item right above it. I.e. it makes it a child element of the other item.
  • Ctrl-Shift-↓ (= Ctrl-Shift-CursorDown) - "Move to Bottom"
    This moves the selected item(s) down in the navigation tree to the end of the children list.
  • Ctrl-Shift-↑ (= Ctrl-Shift-CursorUp] - "Move to Top"
    This moves the selected item up in the navigation tree to the beginning of the children list.

Element Creation (Diagram Editor)[Bearbeiten]

  • Ctrl-n - "New Step"
    In the diagram editor: opens a dialog to create a new step. The dialog lets you choose the action which is to be instantiated. If a pin is selected, the dialog filters are preset to only show action blocks with correspondingly typed pins.
    In the scheme editor: adds a new input or output pin, depending on the currently selected pin's type.
  • Ctrl-r - "Replace"
    In the diagram editor, this opens a dialog to choose another action which is to replace the selected action.
  • Ctrl-g - "Graphic"
    In the diagram editor, this opens a dialog to choose an image which is added as annotation (useful to mark areas of the diagram as "Under Construction" or "Attention Here".
  • Ctrl-i - "New InputPin".
    In the scheme editor, this adds a new input pin - same as clicking on the "Add Input Pin" button.
  • Ctrl-o - "New OutputPin".
    In the scheme editor, this adds a new output pin - same as clicking on the "Add Output Pin" button.

More editing functions are found in every text editor's, lists or diagram's right-button menu; some of which do have keyboard shortcuts.

Code Editor[Bearbeiten]

  • Ctrl-d; - "DoIt"
    This works in code editors for Smalltalk or the builtin JavaScript actions. It takes the currently selected piece of text and immediately executes it as a program. The result is silently discarded (see below for more).

If no text is currently selected, the current cursor line is taken as input.

  • Ctrl-p; - "PrintIt"
    Simular to the above, but the reslt is paste after the selection.
  • Ctrl-q; - "InspectIt"
    Simular to the above, but an inspector window is opened on the reslt.
  • Ctrl-B; (Ctrl-Shift-B) - "BrowseIt"
    Simular to the above, but an class browser is opened on the reslt's class, showing all operations (methods) which are implemented by this object. See the "Smalltalk Syntax Cheat Sheet" for a short syntax summary.
  • Ctrl-I; (Ctrl-Shift-I) - "Implementors"
    Extracts a Smalltalk message name (i.e. the name of an operation) and opens a browser on all methods in the system which implement that message.

Other[Bearbeiten]

  • Ctrl-+ (= Ctrl-plus) - "Zoom In"
    Text in the current focus view is shown in a larger font; diagrams are magnified
  • Ctrl-- (= Ctrl-minus) - "Zoom Out"
    Text in the current focus view is shown in a smaller font; diagrams are shrunk
  • Ctrl-Shift-+ (= Ctrl-Shift-plus) - "Zoom In All"
    Zoom-In all components of the expecco window
  • Ctrl-Shift-- (= Ctrl-Shift-minus) - "Zoom Out All"
    Zoom-Out all components of the expecco window.

Customizing Keyboard Shortcuts[Bearbeiten]

When expecco starts, it looks for a file named "keyboard.rc" in the "bin" folder (where the expecco executable is installed). All keyboard shortcuts are defined in this script file. To customize the keyboard shortcuts, take the code there as a guide.



Copyright © 2014-2024 eXept Software AG