Version 0.6.0 is here, bringing a couple of new features and a many improvements!
Config Auto-reload
This feature, requested many times before, allows espanso to "listen" for changes in the configuration files and automatically restart itself when needed, making frequent changes much more convenient!
To try this new feature, enable it in your default.yml
file with:
auto_restart: true
And then restart espanso!
There are times in which a full restart is still beneficial, such as after installing a package, to make sure espanso picks up all new changes.
If you notice any strange behavior or bug, don't hesitate to open an issue.
Install packages from repositories outside the Hub
Requested by many users in #55, espanso now allows to install packages from GitHub repositories outside the espanso hub.
The command to use has the following format:
espanso install <package_name> <repo_url> --external
Those repositories must comply with the format specified in the package-example.
Add support for Powershell and WSL on Windows
The Shell Extension now allows the user to select the preferred shell, which is particularly beneficial on Windows. In particular, this new version also allows to execute a shell command on WSL, harnessing the full power of Linux shell on Windows!
Example of usage:
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo hello from linux!"
shell: "wsl"
The shell
parameter can be either: cmd
, powershell
or wsl
on Windows.
Note: now the default shell on Windows is Powershell.
Minor changes
- Mitigate bug related to word matches. See #252
- Default shell on Windows changed to Powershell (instead of CMD).
- Add option to slow down backspacing and injection on Windows and Linux, which is beneficial for some applications (such as Firefox). See #248 #246
- Fast inject is now enabled by default on Linux.
- Fix a bug that caused global variables to being evaluated even though they where not needed. #270
- Improved the
espanso edit
subcommand to acceptEDITOR
with parameters. Fix #245 - Improve the Script Extension to automatically expand
%HOME%
to the user home directory in paths, making it possibile to define cross-platform script paths. Fix #265 - Improve case propagation to work also with prefix symbols. Fix #244
- Formatted the whole project using rustfmt, conforming to Rust best practices. Fix #137