!
! applications defaults file for xp/xpman
!
Xp.version:			1.2b10
*helplabel.label:		Brief help for xp 1.2b10

Xp.Geometry:			80x24

! set useMyShell true if your cmndsList uses shell-dependent features
*useMyShell:			false

*cmndsList:			\
				exec:Cmnd\n\
				xp this file:|xp -title xp:$i&\n\
				xp all files:!xp $* -c "b $i"&\n\
				xp sel:>xp&\n\
				xp sel file:> xp `cat`&\n\
				xp sel include:>xp /usr/include/`cat`&\n\
				xpman sel:>xpman `cat`&\n\
			        ls:!ls -l $* | xp&\n\
				edit:!xterm -e $VISUAL $i&\n\
				od:| od |xp -geometry 64x30 -title $i&\n\
				manual page:!xpman xp&\n\
				eof:$
xpman.cmndsList:		\
				exec:Cmnd\n\
				xpman sel:>xpman `cat&\n\
				/SEE ALSO:/^SEE ALSO\n\
				/FILES:/^FILES\n\
				xp sel:>xp&\n\
				xp sel file:> xp `cat&\n\
				xp sel include:>xp /usr/include/`cat&\n\
				eof:$
*samDoubleClick:		false
*autoExec:			false
*menuOnScreen:			true

! you probably don't want to change much after here
*MenuButton.leftBitmap:		menu8
*SmeBSB.*leftMargin: 		12
*vpaned*allowResize :		true
*vpaned*Text.scrollVertical: 	always
*vpaned*Text.wrap:		never
*hpaned*showGrip:               false
*hpaned*resizeToPreferred:	true

*TopLevelShell.translations:    #override <Message>WM_PROTOCOLS: Cmnd(q)
*options.translations:          #override \n\
                                <BtnDown>: reset() \
				XawPositionSimpleMenu(optionsmenu) \
				MenuPopup(optionsmenu)
*files.translations:		#override\n\
				<Key>: KeyRedirect()\n\
				<Btn3Down> : set() \n\
				<Btn3Up> : Previous() unset() \n\
				<Btn1Down> : set()  \n\
				<Btn1Up> : Next() unset()  \n\
				<Btn2Down>:  reset() \
                                XawPositionSimpleMenu(filesmenu) \
                                MenuPopup(filesmenu)

*cmnds.translations:            #override \n\
                                <Key>: KeyRedirect()\n\
                                <BtnDown>: reset() \
                                XawPositionSimpleMenu(cmndsmenu) \
                                MenuPopup(cmndsmenu)
!
! explicitly define key bindings we don't want redirected to textinput
!
*vpaned.Text.translations:	#override \n\
				<EnterWindow>:  SetCmndTarget()\n\
				<Key>Down:      next-line() \n\
				<Key>Up:        previous-line() \n\
				Ctrl<Key>L:	redraw-display() \n\
				Ctrl<Key>R:	search(backward)\n\
				Ctrl<Key>S:     search(forward)\n\
				Ctrl<Key>V:     next-page() \n\
				Ctrl<Key>Z:     scroll-one-line-up() \n\
				Meta<Key>V:     previous-page() \n\
				Meta<Key>Z:     scroll-one-line-down() \n\
				:Meta<Key>\<:   beginning-of-file() \n\
				:Meta<Key>\>:   end-of-file() \n\
				<Key>: KeyRedirect()
*vpaned.gripTranslations:       #override \n\
                                <Btn1Down>:     GripAction(Start, U) \n\
                                <Btn2Down>:     GripAction(Start,T) \n\
                                <Btn3Down>:     GripAction(Start,L) \n\
                                <Btn1Motion>:   GripAction(Move,UpLeft) \n\
                                <Btn2Motion>:   GripAction(Move,ThisBorder) \n\
                                <Btn3Motion>:   GripAction(Move,LowRight) \n\
                                Any<BtnUp>:     GripAction(Commit) AdjustGrip()
*textinput.scrollVertical:	whenNeeded
*textinput.translations:	#override <Key>Return: Cmnd()
*textinput.accelerators:	#override <Btn2Down> : \
				insert-selection(PRIMARY, CUT_BUFFER0)
*errorshell.title:		xp error
*errorshell.allowShellResize:   true
*errorlabel.borderWidth:        0
*errorlabel.resizable:          true
*errordismiss.label:            dismiss
*errordismiss.fromVert:         errorlabel
*errordismiss.accelerators:	#override <Key>: set() notify() unset()
*errordismiss.translations:	#override <Key>: set() notify() unset()	
*helpshell.title:		xp help
*helpshell.iconName:		xp help
*helpshell.height:		300
*helpshell.width:		500
*helptext.scrollVertical:	whenNeeded
*helptext.wrap:			word
*helppaned*showGrip:		false
*helpdismiss.label:		dismiss
*helpdismiss.skipAdjust:	true
*helpdismiss.font:		lucidasans-bold-12
*helplabel.font:		lucidasans-bolditalic-12
*helptext*string:		\
See the xp(1)  manual page for more details.\n\
\n\
Click mouse button 1 on dismiss (at bottom) to remove help,\n\
remainder of help refers to main xp window.\n\
\n\
COMMAND BUTTONS:\n\
\n\
quit:	button 1 => quit xp\n\
files:	button 1 => next file\n\
	button 2 => files menu\n\
	button 3 => previous file\n\
options:button 1/2/3 => options menu\n\
help:	button 1 => popup this window\n\
split:  button 1 => split display into two panes at caret (toggle)\n\
flip:   button 1 => reverse contents of split panes\n\
\n\
MENUS:\n\
\n\
files:	open & display chosen file (in bottom pane if split)\n\
\n\
options: \n\
	wrap word:	  wrap long lines at word boundary\n\
	wrap line:	  wrap long lines at window edge\n\
	horiz scroll:	  display horizontal scroll bar\n\
\n\
	case sensitive:   make searches case sensitive\n\
	search wrap:	  make searches continue from \n\
			  beginning/end of file, or\n\
			  first/last file if search many set\n\
	search many:	  continue searches across file\n\
			  boundaries, to last or first file only\n\
			  unless search wrap set\n\
\n\
	auto exec:	  execute commands from commands menu automatically\n\
			  (without typing <return>)\n\
	short name:	  display  last component of filenames in files menu\n\
	quiet error:	  no sound on error\n\
\n\
commands: \n\
	this unlabelled menu contains pre-defined keyboard commands \n\
        (see next item), turn the auto exec option off if you wish to preview\n\
	the commands before execution, \n\
	set the resource cmndsList to define your own commands instead.\n\
\n\
KEYBOARD COMMANDS \n\
\n\
Commands which may be entered from the keyboard into the input \
text widget at the bottom right, terminated by <return> are:\n\
\n\
	move caret to next line\n\
nnn	set caret to line nnn \n\
.	scroll text centering line containing caret\n\
+nnn    move caret forward nnn lines\n\
-nnn    move caret back nnn lines\n\
.=    	output the number of the  line containing the caret\n\
=	output the number of lines in the file\n\
$	move caret to last line\n\
/RE	forward full regular  expression  search from caret\n\
?RE	backward full regular  expression  search from caret\n\
\!	execute rest of the line as a shell command\n\
|	execute rest of the line with your shell passing the \n\
	displayed file as stdin \n\
>	execute rest of the line as a shell command passing the \n\
	selection as stdin \n\
b file  display file if in files menu\n\
n	display next in files menu\n\
p	display previous in files menu\n\
q	quit\n\
\n\
During shell commands, standard error, but not standard input,\n\
is redirected to an error popup window.\n\
\n\
If display window has been split then commands refer to pane\n\
currently or most recently containing pointer whereas options\n\
menu items apply to both panes.\n\
\n\
All keybord input, except \
that of Text widget key bindings requesting vertical motion, is redirected \
to the input command widget.\n\
\n\
SOME USEFUL DEFAULT TEXT WIDGET KEY BINDINGS\n\
\n\
For input command widget:	For file display widgets:\n\
\n\
ctrl a	begining of line	ctrl v  next page\n\
ctrl e	end of line		meta v  previous page\n\
ctrl k	kill to end of line	ctrl z  scroll a line up\n\
ctrl w	kill selection		meta z  scroll a line down\n\
meta d  delete next word	meta <  beginning of file\n\
meta h  delete previous word	meta >  end of file\n\
\n\
plus cursor left & right for the input command widget \n\
and cursor up & down for the file display widgets.
