Settings KeyboardSettings
Dieser Dialog steuert, ob "dead keys" behandelt werden, und zeigt die Zuordnung von Strg-und Befehlstasten zum Bearbeiten von Funktionen an.
Inhaltsverzeichnis
Dead Key Processing[Bearbeiten]
Dies kann global über den Tastatureinstellungsdialog aktiviert werden oder lokal für einzelne Editoransichten.
Wenn dead keys aktiviert sind, fungieren einige Zeichen als "dead key".
Diese werden nicht gedruckt, ändern jedoch das nächste eingegebene Zeichen.
Typische Dead-Key-Sequenzen sind:
- " (doppeltes Anführungszeichen) gefolgt von einem Vokal, um deutsche Umlautzeichen ä, ö, ü oder diakritische Zeichen einer anderen Sprache mit zwei Punkten oben (ÿ, ë usw.) zu erhalten.
- Französische Akzente werden durch ' (Zitat), ` (Backquote) oder ^ gefolgt vom Zeichen eingegeben, um é, è zu erhalten ;, ê usw.
Die c-cedille wird mit , (Komma) gefolgt von c eingegeben.
Dead key handling can be enabled locally via the code editor's menu ("More" - "Misc" - "Dead Keys") or globally via the settings dialog (in "Look and Feel - Keyboard Settings").
In some apps (Workspace and System Browser), this may also be found in the lower-right info&status area, as a popup of the edit mode field (the one, which shows "I" for "insert mode").
Global dead key enablement is a session flag and defaults to false, because most programmers feel hindered by them, when entering program code.
To enable it by default for all views, add the following line to your
"display.rc"
or "private.rc"
file:
WindowSensor deadKeysEnabled:true
Of course, you can also evaluate this in a workspace.
To disable, evaluate:
WindowSensor deadKeysEnabled:false
Dead Key gefolgt von Leerzeichen[Bearbeiten]
In expecco, a space character following a dead-key will insert both the dead key and the character. This is different from other systems, where the space is "eaten" and only the dead key is entered.
In expecco fügt ein Leerzeichen nach einem dead-key sowohl den dead-key als auch das Zeichen ein. Dies unterscheidet sich von anderen Systemen, bei denen der Raum "eaten" wird und nur der dead-key eingegeben wird.
Wir fanden dies unpraktisch für Programmierer, bei denen Zeichenfolgen oder Kommentare mit anfänglichem Leerzeichen relativ häufig sind. Wenn Ihnen diese Funktion nicht gefällt, bewerten Sie sie (in einem Arbeitsbereich oder Code-Editor):
WindowSensor deadKeyEatsSpace:true.
Tastaturbelegung[Bearbeiten]
Expecco verwendet eine Tastaturbelegung, die Tasten mit Modifikator logischen Funktionen zuordnet. Diese Zuordnung definiert beispielsweise eine Zuordnung von Strg-c zur logischen FunktionCopy.
This mapping is initially read from a file at startup ("display.rc
" in the expecco installation folder, or in your home's ".expecco
" folder).
Diese Zuordnung wird beim Start zunächst aus einer Datei gelesen ("display.rc
" im Expecco-Installationsordner oder im Ordner ".expecco
" Ihres Hauses).
Keyboard Macros[Bearbeiten]
The editors also support keyboard macros. These are scripts written in Smalltalk which are executed when the corresponding key is pressed. These are useful if repeated edit operations are to be performed on longer text or data documents; however, they need some background knowledge and coding by adding those scripts to the above listed startup file(s). Notice that the Workspace also provides operations for bulk processing in its "Edit" menu, which might be easier to use.
For permanent changes, copy and modify this file as required in any text editor (the expecco FileBrowser can be used for this).
Ad-Hoc macros[Bearbeiten]
Editors start to remember your actions with the Learn key, and repeat that action when the Execute key is pressed. By default, these are mapped to Ctrl-F2 and Cmd-m.
Useful for a short sequence of edit operations which have to be repeated multiple times. For example, to insert a new column to a CSV table in the editor:
- position the cursor in front of the column,
- press Learn to start learning,
- type the characters to insert (such as "0" followed by a semicolon),
- press Shift-Return to navigate to the next line,
- press CTRL-w possibly multiple times, to skip to the same column as before (but in the next row).
- press Learn again, to leave the recording mode.
It is essential, that the mouse is positioned where the next macro execution should begin, when repeated.
Now press Execute to have the next row edited. And repeat until done.
This kind of ad-hoc macro is also useful, when pasting tabular data into an elementary code editor, to make its syntax compatible to the selected programming language. For example, to convert separating semicolons into commas or to enclose words into quotes, as is required for eg. JavaScript or Python JSON encoded data.