From 7919aca84cdea7746b60fec9795e9617c266dd1d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 12 Jun 2015 15:12:59 +0200 Subject: support UNIX-shell-like tilde-expansions in file names and directories * expands to the value of $HOME (the env variable instead of the register which currently makes a slight difference). * supported for tab-completions * supported for all file-name accepting commands. The expansion is done centrally in StateExpectFile::done(). A new virtual method StateExpectFile::got_file() has been introduced to pass the expanded/processed file name to command implementations. * sciteco(7) has been updated: There is now a separate section on file name arguments and file name handling in SciTECO. This information is important but has been scattered across the document previously. * optimized is_glob_pattern() in glob.h --- src/qregisters.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qregisters.h') diff --git a/src/qregisters.h b/src/qregisters.h index 2933dc8..ec40bb4 100644 --- a/src/qregisters.h +++ b/src/qregisters.h @@ -420,7 +420,7 @@ private: class StateLoadQReg : public StateExpectFile { private: - State *done(const gchar *str); + State *got_file(const gchar *filename); }; class StateEPctCommand : public StateExpectQReg { @@ -430,7 +430,7 @@ private: class StateSaveQReg : public StateExpectFile { private: - State *done(const gchar *str); + State *got_file(const gchar *filename); }; class StateQueryQReg : public StateExpectQReg { @@ -494,7 +494,7 @@ private: class StateMacroFile : public StateExpectFile { private: - State *done(const gchar *str); + State *got_file(const gchar *filename); }; class StateCopyToQReg : public StateExpectQReg { -- cgit v1.2.3