Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] RE: feature suggestion - save view

Expand Messages
  • Jody
    Hi Jonathan & ::Andrew::, ... I sho nuff miss Larry! Here are a couple more methods. They are from my DirStuff. If you already have that, then there is no
    Message 1 of 2 , Sep 24, 2001
    • 0 Attachment
      Hi Jonathan & ::Andrew::,

      >> I'd like to be able to save a view - ie. I may need five files
      >> opn for one task and four different ones open for another and
      >> I'd like to be able to save this group of files so I can easly
      >> jump between the two group. Now tell me this is possible. :))


      I sho'nuff miss Larry! Here are a couple more methods. They are
      from my DirStuff. If you already have that, then there is no
      need to copy/fix long lines.

      Yet, another method is use the command-line, from Help:

      FileName
      Opens specified file in the editor. File name can also include
      wildcards. If you want to specify several file names that contain
      spaces, enclose each name between double quotes, eg.
      NoteTab.exe "c:\program files\MyFile1.txt" "c:\program files\MyFile2.txt"

      /F=FavoritesFileName
      Specify an alternative Favorites list file name (without
      extension or path). The file name must follow the equal sign. Do
      not use any spaces before or after the equal. Favorites lists
      must be in the same folder as the editor. If the file does not
      exist, it will be created. If you want the files in the list to
      open automatically on startup, make sure you check the Auto Load
      Favorites option in the Options dialog box.

      The two following Clips are in DirStuff:
      http://www.notetab.net/html/dirstuff.zip

      H=Open-Close Favorites... Opens or closes a Category of Favorites.
      ; Last updated on 07-22-2000, Sojourner@..., jody
      ; Requires NoteTab v4.82
      ; http://www.notetab.net/html/dirstuff.zip
      ^!Continue Opens or closes all files in a Favorites Category of choice in the order they appear in the list. Continue?

      ^!SetHintInfo Opening Files...
      ^!Set %Favorite%=^$GetFiles("^$GetFavoritePath$";*.fvr;;UnSorted)$
      ^!Set %Favorite%=^$StrReplace("" "";"|";"^%Favorite%";0;0)$
      ^!Set %Action%=^?{Open or Close?==_Open|Close}; %Favorite%=^?{(H=20)==^%Favorite%}
      ^!Set %Favorite%=^$GetFileText("^%Favorite%")$

      ^!SetListDelimiter ^p
      ^!SetArray %FileList%=^%Favorite%
      ^!Set %Count%=^%FileList0%
      ^!Set %Index%=0

      :Loop
      ^!SetScreenUpdate Off
      ^!Inc %Index%
      ^!If ^%Index% > ^%Count% End
      ^!IfTrue ^$IsEmpty("^$GetName("^%FileList^%Index%%")$")$ Skip
      ^!^%Action% "^%FileList^%Index%%"
      ^!Goto Loop


      H=Checkbox Favorites... Opens or closes files you pick in a Favorites Category.
      ; Last updated on 07-22-2000, Sojourner@..., jody
      ; Requires NoteTab v4.82
      ; http://www.notetab.net/html/dirstuff.zip
      ^!ClearVariables
      ^!Continue Opens or closes files in a Favorites Category of choice in the order they appear in the list. The checkbox wizards allow you to pick what Categories and files to open or close. Continue?

      ^!SetHintInfo Opening Files...
      ^!Set %Favorite%=^$GetFiles("^$GetFavoritePath$";*.fvr;;UnSorted)$
      ^!Set %Favorite%=^$StrReplace("" "";"|";"^%Favorite%";0;0)$
      ^!Set %Action%=^?{Open or Close?=_Open|Close}; %FileType%=^?{If directory, what file type (Only one file type - use wildcards)=_*.*|*.*htm*|*.clb|*.fvr|*.ini|*.log|*.otl|*.scr|*.txt}; %Favorite%=^?{(T=A;H=20)==^%Favorite%}

      ^!Set %Favorite%=^$StrReplace("";"";"^p";"^%Favorite%";0;0)$
      ^!Set %Favorite%=^$StrReplace(""";;"^%Favorite%";0;0)$
      ^!SetArray %File%=^%Favorite%
      ^!Set %Count%=^%File0%
      ^!Set %Index%=1

      :Loop1
      ^!Inc %Index%
      ^!If ^%Index% > ^%Count% Array2
      ^!IfTrue ^$IsEmpty("^$GetName("^%File^%Index%%")$")$ Loop1
      ^!Set %Favorite%=^$GetFileText("^%File^%Index%%")$
      ^!Append %FavList%=^%Favorite%
      ^!Goto Loop1

      :Array2
      ^!Set %FavList%=^$StrReplace("^p";"|";"^%FavList%";0;0)$
      ^!Set %FavList%=^$StrDelete("^%FavList%";^$StrSize("^%FavList%")$;1)$
      ^!SetArray %FileList%=^?{(T=A;H=20)Which files=^%FavList%}
      ^!Set %Count%=^%FileList0%
      ^!Set %Index%=0

      :Loop2
      ^!SetScreenUpdate Off
      ^!Inc %Index%
      ^!If ^%Index% > ^%Count% End
      ^!IfTrue ^$IsEmpty("^$GetName("^%FileList^%Index%%")$")$ Folder
      ^!^%Action% "^%FileList^%Index%%"
      ^!Goto Loop2

      :Folder
      ^!^%Action% "^%FileList^%Index%%^%FileType%"
      ^!Goto Loop2


      Happy Clip'n!
      Jody

      http://www.notetab.net

      Subscribe, UnSubscribe, Options
      mailto:Ntb-Clips-Subscribe@yahoogroups.com
      mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
      http://www.egroups.com/group/ntb-clips
    Your message has been successfully submitted and would be delivered to recipients shortly.