Difference between revisions of "WDSC LPEX"
(→Remap keyboard shortcuts) |
|||
Line 39: | Line 39: | ||
In the LPEX command line type "?action", "?query", "?lpex" or "?seu" (in the full version of WDSC) and you are taken to the appropriate help page. Note on WDSC Lite V6 typing "?seu" brought up nothing. | In the LPEX command line type "?action", "?query", "?lpex" or "?seu" (in the full version of WDSC) and you are taken to the appropriate help page. Note on WDSC Lite V6 typing "?seu" brought up nothing. | ||
+ | |||
+ | ==New actions== | ||
+ | You can add new actions you find by default in the system or one you develop. There are some sample actions that are useful to a degree. Two of them seem the most useful. They are composeAction and setDateAction. | ||
+ | |||
+ | Map these to any keyboard shortcut you wish, I jsut choose Alt-F1 and Alt-F2 since they were not used. | ||
+ | #<u>W</u>indow → <u>P</u>references → LPEX Editor → User Actions. | ||
+ | # In the <u>N</u>ame entry box, key actionClass.compose | ||
+ | # In the <u>C</u>lass name entry box, key com.ibm.lpex.samples.ComposeAction | ||
+ | # Press the <u>S</u>et button. | ||
+ | # Press the <u>A</u>pply button. | ||
+ | #<u>W</u>indow → <u>P</u>references → LPEX Editor → User Key Actions. | ||
+ | # In the <u>K</u>ey entry box, key a-F1 | ||
+ | # In the A<u>c</u>tion drop down, choose composeAction action | ||
+ | # Press the <u>S</u>et button. | ||
+ | # Press the <u>A</u>pply button. | ||
+ | Repeat the above steps for setDateAction replacing compose with setDate and Compose with SetDate. | ||
+ | <B>IMPORTANT</b> text case is very important here. | ||
+ | These actions were obtained from the online help by searching for "lpex samples". | ||
==Catgeories== | ==Catgeories== | ||
[[Category:WDSC]] | [[Category:WDSC]] |
Revision as of 18:33, 29 June 2007
WDSC LPEX - Tips for using the LPEX editor
Contents
Keyboard shortcuts
— or —
In the LPEX command line type "?action", "?query", "?lpex" or "?seu" (in the full version of WDSC) and you are taken to the appropriate help page. Note on WDSC Lite V6 typing "?seu" brought up nothing.
Fonts
A good font to use on some displays is the ProggyClean fonts. Located at | Proggy Progamming Fonts Download Area
- Download your font of choice.
- Install the font into your font folder (usually under the C:\Windows system folder).
- Window → Preferences → LPEX Editor → Appearance.
- Click on the Font button to change the font to Proggy font you installed.
Remap keyboard shortcuts
The default action for Alt-S is to split the line and start the split at the left most position of the new line. Many times it is desired to have it split and stay were it split within the new line. From there you can move the new line text only a short distant. So, in order to make Alt-S split and leave the starting position of the new text in the same place you want to run the split and shift action.
Reassign a shortcut key for LPEX
- Window → Preferences → LPEX Editor → User Key Actions.
- In the Key entry box, key a-s
- In the Action drop down, choose splitAndShift action
- Press the Set button.
- Press the Apply button.
LPEX command line
Search for the action of a keyboard shortcut.
- Goto into the command line by pressing Esc (if not already there).
- key (without quotes) "query keyAction.X-Y" where X is the keyboard shortcut in the form of a=Alt,c=Ctl or s=Shift and Y is any keyboard key.
- Example, "query keyAction.f4" reports back in default situations "showSourcePromptView".
Search for the keyboard shortcut of an action.
- Goto into the command line by pressing Esc (if not already there).
- key (without quotes) "query actionKey.ACTION" where ACTION is the LPEX editor action.
- Example, "query keyAction.showSourcePromptView" reports back in default situations "f4.t".
In the LPEX command line type "?action", "?query", "?lpex" or "?seu" (in the full version of WDSC) and you are taken to the appropriate help page. Note on WDSC Lite V6 typing "?seu" brought up nothing.
New actions
You can add new actions you find by default in the system or one you develop. There are some sample actions that are useful to a degree. Two of them seem the most useful. They are composeAction and setDateAction.
Map these to any keyboard shortcut you wish, I jsut choose Alt-F1 and Alt-F2 since they were not used.
- Window → Preferences → LPEX Editor → User Actions.
- In the Name entry box, key actionClass.compose
- In the Class name entry box, key com.ibm.lpex.samples.ComposeAction
- Press the Set button.
- Press the Apply button.
- Window → Preferences → LPEX Editor → User Key Actions.
- In the Key entry box, key a-F1
- In the Action drop down, choose composeAction action
- Press the Set button.
- Press the Apply button.
Repeat the above steps for setDateAction replacing compose with setDate and Compose with SetDate.
IMPORTANT text case is very important here. These actions were obtained from the online help by searching for "lpex samples".