home *** CD-ROM | disk | FTP | other *** search
FAR help | 2001-04-14 | 7.8 KB | 240 lines |
- .Language=English,English (English)
- .PluginContents=FAR Commands
-
- @Contents
- $^#FAR Commands#
- The FAR Commands Plugin (FARCmds) provides additional features that may
- be used in the User Menu, file associations or the command line.
-
- ~Syntax~@Syntax@
- ~"Same Directory" Command~@TheSameCatalogue@
- ~Configuring FAR Commands~@Config@
-
- @Syntax
- $^#FARCmds Syntax
- #Command Line Syntax#
-
- <prefix>:<command>[<options>]<separator><object>
-
- or
-
- <command>:[<options>]<separator><object>
-
- where
- #<prefix># - always #far#
-
- #<command># - one of the following:
- ~view~@View@ - Viewer
- ~edit~@Edit@ - Editor
- ~goto~@Goto@ - Go to given file or directory
- ~clip~@Clip@ - Put data in the clipboard
- ~whereis~@WhereIs@ - Locate and jump to given object
-
- #<options># - for the "edit" command only; it may be:
- #[line]#
- #[line,column]#
- The square brackets are mandatory.
-
- #<separator># - the separator between the <command> and <object>
- Specified in the ~plugin configuration~@Config@.
-
- #<object># - one of the following:
- #filename# - name of the file to be viewed,
- edited or jumped to.
- #path# - file or directory path to jump to.
- #<command# - an operating system command
- The #<# character is mandatory.
- #<<command# - an operating system command
- The #<# character is mandatory.
-
- Note:
-
- A command can be executed in a directory different from the
- current directory if the path is specified before an
- operating system command enclosed in #'|'# characters.
- Example: '#edit:<|%TEMP%|dir#'.
-
- See also: ~Contents~@Contents@ | ~Output Redirection~@Direction@ | ~Notes~@Remark@
-
- @Clip
- $^#The Clip command#
- The #clip# command allows to put data into the Windows clipboard.
- The data means the contents of a given file or the output of a program.
- The clipboard will contain all the data up to the character with the
- code #0x00#, at most 1 megabyte.
-
- #far:clip<separator>filename#
- or
- #clip:<separator>filename#
-
- See also: ~Output Redirection~@Direction@ | ~Notes~@Remark@
-
- @View
- $^#The View command#
- The #view# command opens the file given in "#filename#" in the FAR
- built-in viewer:
-
- #far:view<separator>filename#
- or
- #view:<separator>filename#
-
- See also: ~Output Redirection~@Direction@ | ~Notes~@Remark@
-
- @Edit
- $^#The Edit command#
- The #edit# command opens the file given in "#filename#" for editing
- in the FAR built-in editor. The command may be called in three ways:
-
- 1. Open file for editing
-
- #far:edit<separator>filename#
- or
- #edit:<separator>filename#
-
- 2. Open file for editing and go to the line "#<line>#"
-
- #far:edit[<line>]<separator>filename#
- or
- #edit:[<line>]<separator>filename#
-
- 3. Open a file for editing and go to the given position
-
- #far:edit[<line>,<column>]<separator>filename
- or
- #edit:[<line>,<column>]<separator>filename#
-
- If the file "#filename#" does not exist, it is created. If after creating
- the file and leaving the editor the file has not been changed, it is deleted
- (the behaviour imitates Shift-F4).
-
- See also: ~Output Redirection~@Direction@ | ~Notes~@Remark@
-
- @Goto
- $^#The Goto command#
- The #goto# command allows to jump to the given file or directory in one
- of two ways:
-
- 1. The path to the file or directory is specified directly in the command
-
- #far:goto<separator>path#
- or
- #goto:[<separator>]path#
-
-
- 2. The path to the file or directory is taken from a given file "#filename#"
-
- #far:goto[<separator>]<filename#
- or
- #goto:[<separator>]<filename#
-
- If the "#path#" parameter specifies a directory and is terminated with
- a backslash ('#\#'), the plugin jumps to the specified directory. If the
- path to the directory is not terminated with a backslash, the cursor on the
- panels is set to the specified directory.
-
- At most 1299 bytes are read from the file "#filename#" to specify
- the path to a directory or file.
-
- See also: ~Contents~@Contents@ | ~Notes~@Remark@
-
- @WhereIs
- $ #The WhereIs command#
- The #whereis# command locates the given object and, if the search is
- successful, jumps to it.
-
- #far:whereis<separator>filename#
- or
- #whereis:<separator>filename#
-
- The search is done in the following order:
- 1. The current directory
- 2. The directories listed in the environment variable #PATH#
- 3. Contents of the registry branch:
- #HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths#
-
- See also: ~Contents~@Contents@ | ~Notes~@Remark@
-
- @Direction
- $^#Output Redirection#
- The plugin can redirect the output of the given "#command#" to a
- temporary file and then open it in the viewer or editor.
-
- in the viewer -
- #far:view <command#
- #view:<command#
-
- in the editor -
- #far:edit <command#
- #edit:<command#
- #far:edit[line] <command#
- #edit[line]:<command#
- #far:edit[line,column] <command#
- #edit[line,column]:<command#
-
- or the contents of the output file can be put into the clipboard
-
- #far:clip <command#
- #clip:<command#
-
- Notes:
-
- 1. Everything after the '#<#' character is passed to the command
- processor (%COMSPEC%).
-
- 2. The temporary file is deleted automatically when FAR doesn't
- need it anymore.
-
- 3. The parameter "#<separator>#" can be omitted.
-
- 4. Some programs, instead of writing text to the standard output
- that can be captured by the plugin, output the text directly
- to the console. To save the console output for viewing through
- #Ctrl-O#, use the characters '#<<#' instead of '#<#'.
- This behaviour can be set as the default in the
- ~plugin configuration~@Config@.
-
- See also: ~Contents~@Contents@ | ~Syntax~@Syntax@
-
- @TheSameCatalogue
- $^#Same Directory#
- To set the same directory in the passive panel as in the active one,
- select the item "#Same Directory#" in the ~plugins menu~@:Plugins@
- or in the ~disks menu~@:DriveDlg@.
-
- See also: ~Contents~@Contents@ | ~Configuration~@Config@
-
- @Remark
- $^#Notes#
-
- 1. Command names may be shortened to their first letters.
- 2. It is possible to put parameters #filename#,
- #path# and #command# in quotes.
- 3. It is possible to use environment variables.
- 4. If you make a syntax error, the help will pop up.
- 5. It is not recommended to use the #<# character as the
- separator.
-
- See also: ~Contents~@Contents@
-
- @Config
- $^#Configuring FAR Commands#
- #"Add "Same Directory"# Adds the ~Same Directory~@TheSameCatalogue@ command
- #to the Plugins menu"# to the ~Plugins menu~@:Plugins@.
-
- #"Add "Same Directory"# Adds the ~Same Directory~@TheSameCatalogue@ command
- #to the Disks menu"# to the ~Disks menu~@:DriveDlg@.
-
- #Command/object separator# Specifies the characters separating
- <command> and <object> (see ~Syntax~@Syntax@)
- It may be any character sequence (up to
- three chars). The default is Space.
-
- #Keep external command# Saves the text that programs write
- #output# directly to the console (bypassing the
- standard output) and makes it available
- for viewing through #Ctrl-O#.
- Enabling this option has the same effect
- as using #<<# instead of #<#.
-
- See also: ~Contents~@Contents@
-