*  Config file for QEdit v 2.x developed for TeX use by Petr Olsak

*  Specify   control-key   commands via: ^f1 - This means control f1
*  Specify   alt-key       commands via: @f1 - This means alt f1
*  Specify   shift-key     commands via: #f1 - This means shift f1
*
*  There is also a provision for "multiple (two at most in the current
*  implementation) key commands". For example, to make the
*  control f1 control f2 sequence issue the exit command,
*  try the following: ^f1_^f2     exit
*  The key here is that the commands must be separated by a '_'.
*
*  Multiple commands and/or text may be entered for a single key.  To do so,
*  specify "macro_begin" as the first command.  To enter text, enclose the
*  text in single or double quote marks.
*
*  For example:
*  f1  macro_begin edit_file 'help.dat' return
*  This command would load the file 'help.dat'.  Note the return command is
*  issued after the text.  This is required to terminate the Edit prompt.
*
*  Following is a macro that will run make and load the results into a window.
*
*  macro_begin edit_file 'errors.lst' return quit dos 'make >errors.lst'
*  return return horizontal_window edit_file 'errors.lst' return
*
*  Finally, you can also use the scancode to represent "special keys", as
*  long as this key returns a ascii character code of 0.
*  For example alt f9 returns an ascii character of 0 and a scan code of
*  112 decimal.  To make alt f9 issue the edit_file command, you could:
*
*  112  edit_file
*      or
*  @f9  edit_file
*
*  This becomes especially useful if you have a macro processor and/or
*  special keyboard that has extended keys that Edit doesn't have names
*  for.  This gives you a method to use them.
*
*  Either will work.
*
*  Note that the order of this file is NOT important.  Arrange it however
*  makes sense to you.

*
*  function key set
*

f1         quick_help
f2         save_file
f3         edit_file
f4         macro_begin horizontal_window edit_file
f5         wrap_para
f6         next_window
f7         store_scrbuff
f8         get_scrbuff
f9         toggle_wordwrap
f10        g_file

f11  Macrobegin  HorizontalWindow  BegLine CurrentFilename DelLtWord "log" CursorLeft DropAnchor BegLine Cut EditFile Paste Return BegFile PrevWindow
f12  MacroBegin  PrevWindow  UnmarkBlock Find "!" Return "w" Return JFalse done: Find "l." Return BackSpace Return JFalse done: CursorRight CursorRight MarkWord Copy Find "!" Return "wb" Return MarkLine NextWindow GotoLine Paste Return Begline MakeCtrOfScreen Jump end: done: CloseWindow end:

*
*  SHIFT control function key set
*

#f1
#f2
#f3
#f4
#f5
#f6
#f7
#f8
#f9
#f10


*
*  control function key set
*

^f1        unmark_block
^f2        mark_line
^f3        drop_anchor
^f4        MarkColumn
^f5        copy_block
^f6        move_block
^f7        find
^f8        find_replace
^f9        MacroBegin MarkWord Copy BegFile Find Paste Return Return
^f10       exit

*
*  ALT control function key set
*

@f1
@f2 
@f3
@f4
@f5  
@f6  
@f7
@f8
@f9  
@f10

*
* special keys
*

cursorup      cursor_up
cursordown    cursor_down
cursorleft    cursor_left
cursorright   cursor_right

^cursorleft   word_left
^cursorright  word_right
^cursorup     lineup
^cursordown   linedown

home          beg_line
end           end_line

^home         beg_screen
^end          end_screen

pgup          page_up
pgdn          page_down

^pgup         beg_file
^pgdn         end_file

#tab          tab_lt
tab           tab_rt

ins           toggle_insert
^ins          toggle_indent

del           del_ch
^del          del_to_eol

backspace     backspace
^backspace    del_lt_word

enter         return
greyenter     Return
^enter
escape        escape

grey*         input_ch
grey+         input_ch
grey-         input_ch

^centercursor ToggleEga43

^grey*        Paste
^grey/        PasteOver
^grey+        Copy
^grey-        Cut

#ins          input_ch
`             input_ch
~             input_ch
/             input_ch

^\	      ListFiles

^[	      ShiftLeft
^]	      ShiftRight
^2	      Align

* Alt kontrol keys (empty) 

@`        macrobegin "~"
@1        macrobegin "!"
@2        macrobegin "@"
@3        macrobegin "#"
@4        macrobegin "$"
@5        macrobegin "%"
@6        macrobegin "^"
@7        macrobegin "&"
@8        macrobegin "*"
@9        macrobegin "("
@0        macrobegin ")"
@]        macrobegin "}"
@[        macrobegin "{"

*
* control keys
*

^-         macro_begin "_{}" cursor_left
^6         macro_begin "^{}" cursor_left

^a         match
^b         macro_begin "\begin{}" cursor_left
^c         get_prev
^d         dup_line
^e         macro_begin "\end{}" cursor_left
^f         macro_begin "{\bf }" cursor_left
^g         MacroBegin Flip CursorRight
^h         macro_begin read_block "head.tex" return unmark_block end_file cursor_up cursor_up
^i         macro_begin "{\it \/}" cursor_left cursor_left cursor_left
^j         goto_line
^k_b       mark_block_begin
^k_c       copy_block
^k_d       g_exit
^k_h       unmark_block
^k_k       mark_block_end
^k_m       MarkCharacter
^k_o       MarkWord
^k_r       read_block
^k_s	   GSave
^k_v       move_block
^k_w       write_block
^k_y       delete_block
^l         repeat_find
^m_a	   AsciiChart
*^m_c	    ChangeFileName
^m_d	   DefaultWordSet
*^m_k	    KillFile
^m_l       Lower
^m_m	   ExecuteScrap
^m_r	   RepeatCmd
^m_s       Sort
^m_u       Upper
^m_w	   AltWordSet
^m_x       flip
^n         next_file
^o_a       one_window
^o_c       close_window
*^o_g	    grow_window
^o_o       horizontal_window
^o_n       next_window
^o_p       prev_window
^o_r	   ResizeWindow
*^o_s	    shrink_window
^o_u       ShowEntryScreen
^o_z       zoom_window
^p         literal
^q_a       find_replace
^q_b       goto_block_beg
^q_c	   MakeCtrofScreen
^q_e       EndPara
^q_f	   Find
^q_h       FirstNonWhite
*^q_i	    InsertLine
*^q_j	    JoinLine
^q_k       goto_block_end
*^q_l	    AddLine
^q_n       NextPara
^q_p       prev_position
^q_r	   PrevPara
*^q_s	    SplitLine
^q_y       del_to_eol
^r	   MacroBegin BegLine "%" CursorDown
^s         macro_begin "{\sl \/}" cursor_left cursor_left cursor_left
^t         macro_begin "{\tt }" cursor_left
^u         unkill
^v	   MacroBegin Dos "kalk" Return Return
^w         scroll_up
^x_a	   toggle_indent
*^x_b	    FillBlock
^x_c	   CenterLine
^x_d	   InsertDate
^x_e	   dos
^x_f	   CurrentFileName
^x_h	   Shell
^x_i	   ToggleBoxType
^x_j	   GotoColumn
^x_l	   macro_read
^x_m	   macro_record
^x_o	   ToggleBoxDraw
*^x_p	    PrevFile
^x_q	   ToggleTabsExpand
^x_r	   SetRMargin
^x_s	   macro_write
^x_t	   InsertTime
^x_u	   undo_cursorline
^x_x	   ToggleSmartTabs
^x_z	   ToggleTabsOut
^y         del_line
^z         scroll_down

