diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-02 15:38:00 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-02 15:38:00 +0200 |
commit | 02d414b3ab447e637fef776e387aa5a07293738a (patch) | |
tree | 60d5db01e9e0cc15f1f8e84abb14138cb0ca54a3 /src/spawn.cpp | |
parent | 6c62ccc436d972a872616c187d460ed61c8bc0d2 (diff) | |
download | sciteco-02d414b3ab447e637fef776e387aa5a07293738a.tar.gz |
added <FG> command and special Q-Register "$" to set and get the current working directory
* FG stands for "Folder Go"
* FG behaves similar to a Unix shell `cd`.
Without arguments, it changes to the $HOME directory.
* The $HOME directory was previously only used by $SCITECOCONFIG on Unix.
Now it is documented on its own, since the HOME directory should also
be configurable on Windows - e.g. to adapt SciTECO to a MinGW or Cygwin
installation.
HOME is initialized just like the other environment variables.
This also means that now, the $HOME Q-Register is always defined
and can be used by platform-agnostic macros.
* FG uses a new kind of tab-completion: for directories only.
It would be annoying to complete the FG command after every
directory, so this tab-completion does not close the command
automatically. Theoretically, it would be possible to close
the command after completing a directory with no subdirectories,
but this is not supported currently.
* Filename arguments are no longer completed with " " if {} escaping
is in place as this brings no benefit. Instead no completion character
is inserted for this escape mode.
* "$" was mapped to the current directory to support an elegant way to
insert/get the current directory.
Also this allows the idiom "[$ FG...new_dir...$ ]$" for changing
the current directory temporarily.
* The Q-Register stack was extended to support restoring the string
part of special Q-Registers (that overwrite the default functionality)
when using the "[$" and "]$" commands.
* fixed minor typos (american spelling)
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r-- | src/spawn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp index c1ffce8..9f951f5 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -177,7 +177,7 @@ parse_shell_command_line(const gchar *cmdline, GError **error) * This feature may be used to take action depending on a * specific process exit code. * - * <command> execution is by default platform-dependant. + * <command> execution is by default platform-dependent. * On Windows, <command> is passed to the default command * interpreter \(lqcmd.exe\(rq with the \(lq/c\(rq * command-line argument. @@ -186,7 +186,7 @@ parse_shell_command_line(const gchar *cmdline, GError **error) * Therefore operating system restrictions on the maximum * length of command-line arguments apply to <command> and * quoting of parameters within <command> is somewhat platform - * dependant. + * dependent. * On all other platforms, \*(ST will uniformly parse * <command> just as an UNIX98 \(lq/bin/sh\(rq would, but without * performing any expansions. |