|
In an earlier post I expressed a dislike for the way the <Ctrl+T> SELECTWORD function works. It selects the entire RPG field the cursor is in instead of just the RPG symbolic name the cursor is on. The following is the workaround I'm now using to achieve my desired results. First, I made the following modification to my profile.lx file to add the special characters allowed in RPG symbolic names to the characters considered as part of a WORD. /* load customizations for specific document types */ 'extract doctype' /* RPG source file customizations */ if doctype='RPG' | doctype = 'IRP' then do /* Add the special characters (@,#,$,_) allowed in RPG symbolic */ /* names to the list of characters that are considered part of a */ /* word - This allows for the BLOCK MARK WORD function <Ctrl+T> to */ /* select the entire RPG symbolic name. */ 'extract wordchars into a' 'set wordchars 'a'#@$_' /* end RPG source file customizations */ Then, I modified my profile.lx file to change the action for <Ctrl+T> from SELECTWORD to BLOCK MARK WORD. 'set action.c-t BLOCK MARK WORD' Using this workaround, pressing <Ctrl+T> now selects only the RPG symbolic name (e.g., record format name or variable name) the cursor is positioned on. Regards, Brian
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.