home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / stronged / !StrongED / BaseMode < prev    next >
Encoding:
Text File  |  1996-09-15  |  6.7 KB  |  356 lines

  1.  
  2. # Description of the "Base" mode
  3. # This is the mode that lies under any other mode. This file should not be
  4. # renamed. If it is, StrongED will get seriously confused and won't start..
  5. # There shouldn't be any errors in it either..
  6.  
  7. PrintHead    <tmp$path>.<tmp$leaf>|i|i<Sys$Date> <Sys$Time>|m
  8. PrintFoot    |m|i---- <tmp$page> ----
  9.  
  10. Bitmap        System
  11.  
  12. WriteProtect
  13.     ;**.old.**
  14. End
  15.  
  16. ID_Middle    A-Za-z_0-9./~+\-:?%@#
  17.  
  18. SyntaxWords Group8 EndOfID nocase
  19.     http:// ftp:// mailto: telnet://
  20. End
  21.  
  22.  
  23. Search
  24.     _Indent        {" "|"\t"}
  25.     _MarkWord    {AlphaNum|"_"}+ | {Punct}+
  26.     _MoveWord    {A}+
  27.     _DeleteWord    _MoveWord
  28.     _EndSpc        {" "}+ >
  29.     _spct        {" " | "\t"}+
  30.     _Complete    {" "} ((Upper [{Upper}+ | {Lower}+]) | {Lower}+ ["_"]) | {Punct|Digit}+
  31.     _Wrap        ~NL Any @1 {" "} NL ~ NL|"\t"|" "
  32.  
  33.     http        "http://" | "ftp://" | "mailto:" | "telnet://" {'A-Za-z_0-9./~+\-:?#@'}+
  34.  
  35.     me        "Guttorm"|("Strong" "ED"|"Help"|"Hlp")
  36.  
  37. #    Expressions for use in the ModeWhen file :
  38. #    Use Dumpmode if, after skipping the first 4 chars, there is no more
  39. #    than 4 "normal" characters, followed by a ctrl char.
  40.     _dump0        '\x09\x0a\x0d\x20-\x7e\x80-\xff'
  41.     _dumptest    {.}4:4 {_dump0}0:4 ~_dump0
  42.  
  43.     _newstest    ** ( < "From:")
  44. End
  45.  
  46. Replace
  47.     _rwrap        @01 " "
  48. End
  49.  
  50. ClickList
  51.     http    BroadcastURL("<tmp$word>")
  52. End
  53.  
  54. KeyList SearchReplace
  55.     ^A        Select(Advanced)
  56.     ^L        Select(Line)
  57.     ^C        Select(Case)
  58.     ⇧F4        Select(Old)
  59.     ^N        Select(Count)
  60.     ^S        Select(Scope)
  61.     RETURN        Select(GO)
  62.     PgUp        History(older)
  63.     PgDown        History(newer)
  64.     F1        MenuToWindow HelpString("StrongED.advancedsyntax")
  65. End
  66.  
  67. KeyList LoF_dbox
  68.     ^A        Select(Advanced)
  69.     ^L        Select(Line)
  70.     ^C        Select(Case)
  71.     F2        Select(Old)
  72.     ^D        Select(Display)
  73.     ^S        Select(Search)
  74.     Return        Select(GO)
  75.     PgUp        History(older)
  76.     PgDown        History(newer)
  77. End
  78.  
  79. KeyList Interactive
  80.     ^C        Select(Case)
  81.     F4        Select(Old)
  82.     Down        Select(Next)
  83.     Up        Select(Prev)
  84.     PgUp        Select(Old)
  85.     PgDown        Adjust(Old)
  86. End
  87.  
  88. KeyList SaveBox
  89.     Return        Select(Save)
  90.     ^Q        Select(Kill)
  91.     ^S        Select(Selection)
  92.     ^A        Select(ASCII)
  93.     F3        History(older)
  94.     ⇧F3        History(older)
  95.     PgUp        History(older)
  96.     PgDown        History(newer)
  97. End
  98.  
  99. KeyList WhatNext
  100.     Down        Select(Next)
  101.     ^N        Select(Next)
  102.     Return        Select(Replace)
  103.     ^R        Select(Replace)
  104.     ^A        Select(All)
  105.     F8        Select(Undo)
  106.     ^F8        Select(Redo)
  107. End
  108.  
  109. KeyList Print
  110.     ^F        Select(HeaderFooter)
  111.     Return        Select(GO)
  112. End
  113.  
  114. #----------------------------------
  115.  
  116. KeyList CopyCursor
  117.     ESC        CopyCursor_Off
  118.     Copy        CopyFromCC
  119.     ⇧Copy        CopyCursor_Off
  120.     Left        CopyCursor_Left
  121.     Right        CopyCursor_Right
  122.     Up        CopyCursor_Up
  123.     Down        CopyCursor_Down
  124.     ⇧Left        CaretLeft
  125.     ⇧Right        CaretRight
  126.     ⇧Up        CaretUp
  127.     ⇧Down        CaretDown
  128.     Return        CopyCursor_Off NewLine
  129. End
  130.  
  131. KeyList Global
  132.     ^⇧F9        dbox_Chars
  133.     ^F1 1        GotoMark (1)
  134.     ^F2 1        GotoMark (2)
  135.     ^F3 1        GotoMark (3)
  136.     ^F4 1        GotoMark (4)
  137.     ⇧F5 1        GotoBlock_Start
  138.     ⇧F5 2        GotoBlock_End
  139.     ^⇧H        HideAll
  140.     ^L        ListOfWindows
  141.     ^W        Complete(_Complete) ;
  142. #    ^W        WordToBuffer   ; These three are used to copy text to writable fields in dboxes.
  143.     F7        BlockToBuffer  ; They have no meaning if no writable field has caret.
  144.     F8        ClipToBuffer   ;
  145.     F11        CreateText
  146. #    ^⇧F11        MouseToBuffer
  147.     ^⇧Tab        SetDir
  148.     ⇧Up        NextWindow
  149.     ⇧Down        PreviousWindow
  150. End
  151.  
  152. KeyList
  153.     ESC        BlockMark_ESC
  154.     F2        dbox_ListOfFound
  155.     F3        dbox_SaveText
  156.     F4        dbox_Interactive
  157.     F5        dbox_GotoLine
  158. #    F6        BlockMark_Standard
  159.     F6        BlockMark_Continous
  160.     F7        BlockCopy
  161.     F8        Undo
  162.     F9        Playback
  163.  
  164. #    ⇧F3        dbox_SaveBlock
  165.     ⇧F4        dbox_Replace
  166. #    ⇧F5        GotoBlock
  167.     ⇧F6        BlockClear
  168.     ⇧F7        BlockMove
  169.     ⇧F8        BlockDelete
  170.     ⇧F9        Learn
  171.  
  172.     ^F5        InsertCtrl
  173.     ^F6        MarkText
  174.     ^F7        LoseCaret
  175.     ^F8        Redo
  176.  
  177.     ^F1 1        SetMark(5) GotoMark (1)
  178.     ^F2 1        SetMark(5) GotoMark (2)
  179.     ^F3 1        SetMark(5) GotoMark (3)
  180.     ^F4 1        SetMark(5) GotoMark (4)
  181.     ^F1 2        GotoMark(5)
  182.     ^F2 2        GotoMark(5)
  183.     ^F3 2        GotoMark(5)
  184.     ^F4 2        GotoMark(5)
  185.  
  186.     ^⇧F1 1        SetMark (1)
  187.     ^⇧F2 1        SetMark (2)
  188.     ^⇧F3 1        SetMark (3)
  189.     ^⇧F4 1        SetMark (4)
  190.  
  191.     ^⇧F1 2        ClearMark (1)
  192.     ^⇧F2 2        ClearMark (2)
  193.     ^⇧F3 2        ClearMark (3)
  194.     ^⇧F4 2        ClearMark (4)
  195.  
  196. #    ^A 1        MarkChar
  197.     ^A 1        MarkWord
  198.     ^A 2        MarkLine
  199.     ^A 3        MarkText
  200.     ^⇧B        ToggleIndent
  201.     ^C        BlockCopy
  202. #    ^⇧F11        Debug
  203.     ^⇧F11        MinimizeModes
  204.     ^D,^D        DateAndTime ("%DY.%MN.%YR")
  205.     ^D,^T        DateAndTime ("%24:%MI")
  206.     ^D,^W        DateAndTime ("%WK")
  207.  
  208.     ^F        ListOfWord (Text,Whole,NoLine,NoCase)
  209.     ^⇧F        ListOfWord (All,Whole,NoLine,NoCase)
  210.     ^H        HideView
  211.     ^J        LowercaseChar
  212.     ^N        FindNext
  213.     ^P        PreviousMessage
  214.  
  215.     ^Q        KillView
  216.     ^⇧Q        KillStrongED
  217.     ^R        Pop
  218.     ^⇧R        PopAll
  219.     ^S        SwapcaseChar
  220.     ^T        ViewToTop
  221. #    ^T        Transpose(-2)
  222.     ^U        UppercaseChar
  223.     ^V        BlockMove
  224.     ^W,^C        CreateView
  225.     ^W,^V        SplitViewVert
  226.     ^W,^H        SplitViewHor
  227.     ^W,^F        FullView
  228.     ^W,^S        ScaleView
  229.     ^X        BlockDelete
  230.     ^Z        BlockClear
  231.  
  232.     Tab        Tab
  233.     ⇧Tab        ToggleTabLine
  234. #    ^Tab        CycleTabkey
  235.     Copy        DeleteRight
  236.     ⇧Copy        CopyCursor_On
  237.     ^Copy        DeleteLine
  238.     ^⇧Copy 1    MarkToEnd_tl
  239.     ^⇧Copy 2    BlockDelete
  240.     Print        Print
  241.     ⇧Print        dbox_Print
  242.     Delete        DeleteLeft
  243.     ⇧Delete        DeleteWordRight
  244.     ^Delete        CB_Copy BlockDelete
  245.     Backspace    DeleteLeft
  246.     ⇧Backspace    DeleteWordLeft
  247.     Insert        ToggleInsert
  248.     ^Insert        CB_Copy
  249.     ⇧Insert        CB_Paste
  250.     Home        StartOfText
  251.     Return        NewLine
  252.  
  253.     Left        CaretLeft
  254.     ⇧Left        WordLeft
  255.     ^Left 1        StartOfWLine
  256.     ^Left 2        StartOfTLine
  257.     ^⇧Left 1    MarkToStart_tl
  258.     ^⇧Left 2    BlockDelete
  259.  
  260.     Right        CaretRight
  261.     ⇧Right        WordRight
  262.     ^Right 1    EndOfWLine
  263.     ^Right 2    EndOfTLine
  264.     ^⇧Right 1    MarkToEnd_tl
  265.     ^⇧Right 2    BlockDelete
  266.  
  267.     Up        CaretUp
  268.     ^Up        StartOftext
  269.     ^⇧Up        LineUp
  270.     Down        CaretDown
  271.     ^Down        EndOfText
  272.     ^⇧Down        LineDown
  273.  
  274.     PgUp        PageUp
  275.     PgDown        PageDown
  276.  
  277.     ^⇧Z        CB_Purge
  278.     ^⇧X        CB_Copy  BlockDelete
  279.     ^⇧C        CB_Copy  BlockClear
  280.     ^⇧V        CB_Paste
  281.  
  282. End
  283.  
  284. Functions
  285.  
  286.     Key    ⇧F1
  287.     Icon    help
  288.     Help    Select gives help on StrongED. Adjust looks up word under caret.|MShift-Select gives info on file and Shift-Adjust gives info on char under caret.
  289.     Select    HelpStrongED
  290.  
  291.     Key    F1
  292.     Adjust    HelpWord
  293.  
  294.     Key    ^I
  295.     ⇧Select    dbox_FileInfo
  296.  
  297.     ⇧Adjust    CharInfo
  298.  
  299.     Key    ^L
  300.     Icon    Lot
  301.     Help    Select opens/closes the List of Windows window.
  302.     Select    ListOfWindows
  303.  
  304.     Icon    opton
  305.     Help    Select opens/closes the Global Choices window,|Mand Adjust opens/closes the Mode Choices window.
  306.     Select    dbox_GlobalChoices
  307.  
  308.     Adjust    dbox_ModeChoices
  309.  
  310.     Icon    Save
  311.     Help    Saves the text
  312.     Select    dbox_SaveText
  313.  
  314.     Adjust    SaveRun("")
  315.  
  316. #    Key    ^W,^F
  317. #    Select    Fullview
  318.  
  319. #    Menu    Tab to spaces
  320. #    Help    Replaces occurrences of the TAB character with spaces.
  321. #    Select    Untab
  322. #
  323. #    Menu    Spaces to Tab
  324. #    Help    Replaces multiple spaces with TAB characters.|MOnly handles spaces at the start of the line.
  325. #    Select    TabIt
  326.  
  327.     Menu    List me
  328.     Select    ListOfFound (me,ALL,Align,NoLine,NoCase)
  329.  
  330.     Menu    Trim lines
  331.     Help    Removes spaces from the end of lines
  332.     Select    Replace (_EndSpc,"",,NoLine)
  333.  
  334.     Menu    Left Adjust
  335.     Help    Removes spaces from the start of each line
  336.     Select    Replace (_spct,"",,Line)
  337.  
  338.     Menu    Wrap
  339.     Help    Join lines together
  340.     Select    Replace (_wrap,_rwrap,,Noline)
  341.  
  342.     Menu    Unwrap
  343.     Help    Split lines
  344.     Select    Unwrap
  345.  
  346. End
  347.  
  348.  
  349. Shortcuts
  350.     $me    Guttorm Vik\n\iNordre Steinkjellersmauet 6B\n\i5003 Bergen\n\iNorway\n\n\iguttorvi@login.eunet.no
  351.     $@    guttorvi@login.eunet.no
  352.     $~    http://login.eunet.no/~guttorvi
  353.     SA    StrongARM
  354. End
  355.  
  356.