Qedit Commands - Set Command [S] - Window

Qedit 5.7 for HP-UX

Home Previous Next


Window

Set Window ( [ window ] )

(Default: all columns, exact match)

Set Window establishes the default window, or conditions, for string searches in all Qedit commands. You can override the default by specifying an explicit window in any command (e.g., list ".BEGINKEY" (1/10 UPS) ). Once a window is set, it remains in effect until the next Set Window command. See the Change command and the "Glossary" for further details on window.

The window itself consists of two parts: a range of column numbers to search, and four independently enabled options that determine how to select a line.

( [ column / column ] [option ...] )

A column is a number between the Left and Right margins of the file. Qedit searches only the specified range. An option is one or more of these:

[NO]Match select lines with[out] string
[NO]Upshift upshift before searching [or not]
[NO]Smart ensure match is a "symbol" [or not]
[NO]Pattern string is a pattern to find [or not]
[NO]Regexp string is a regular expression to find [or not]

The default window is all columns, Nosmart, Noupshift, Match, Nopattern and Noregexp.

A pattern may include at-signs (@) to match anything, # to match a single numeric character, ? to match a single alpha-numeric, and tilde (~, wavy line) to match zero or more blanks. Any other character must be matched exactly. (To match a pattern character itself, precede it with an ampersand: "& ".) For example, to look for "QEDIT" followed by "TOOL" in the same line, use:

/set window (pattern upshift)
/list "@Qedit@Tool@"

Either or both parts of the window can be Set in one command:

/set window (1/10)
/set window (smart upshift)
/set window (1/20 upshift)
/set window (pattern)

To reset the window to the defaults, enter:

/set window ( )


Home Previous Next