Add set of default variables that are similar to Qt Creator's variables.
These variables will be used in the external tools plugin as well as internally in KTextEditor e.g. to allow adding a date to backup files.
Details
Added unit test + make && make test
Diff Detail
- Repository
- R39 KTextEditor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Btw, if there is a better place for initialization, I'd happily move the code to some other place.
- Implement JS:<code> variable expansion, e.g. %{JS:3+%{JS:2+1}} --> 6
- Variable expansion: Add unit tests
I'd like to drop the " Current" prefix in all the variables. It just makes the names longer and I don't see any value for users. Comments?
There is no other Document than the current one. I also don't come up with an idea where "Current" prefix makes things clearer. => Removal seems ok to me.
- Drop 'Current' prefix and improve documentation
This should be good enough now, OK to commit?
Actually my fix will only help for Unices, on Windows, this will still fail ;=)
Either we guard that for Windows or we check there more env vars.
Ok, use now some self-defined env var with value set by the test itself, that should help on all operating systems.
We don't need to check if HOME is ok.