Merge pull request #120 from federico-terzi/dev

Version 0.3.5
This commit is contained in:
Federico Terzi 2019-11-16 22:10:55 +01:00 committed by GitHub
commit 6d1f157084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

2
Cargo.lock generated
View File

@ -370,7 +370,7 @@ dependencies = [
[[package]]
name = "espanso"
version = "0.3.4"
version = "0.3.5"
dependencies = [
"backtrace 0.3.37 (registry+https://github.com/rust-lang/crates.io-index)",
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "espanso"
version = "0.3.4"
version = "0.3.5"
authors = ["Federico Terzi <federicoterzi96@gmail.com>"]
license = "GPL-3.0"
description = "Cross-platform Text Expander written in Rust"

View File

@ -285,6 +285,13 @@ void left_arrow(int32_t count) {
}
void trigger_paste() {
// Before sending the paste shortcut, trigger the press and release of the Shift key
// this is needed because for some triggers, for example ending with ":", the user
// will still have the Shift key pressed when espanso execute the pasting shortcut,
// therefore sending CTRL+Shift+V instead of CTRL+V.
// With this call, we force the shift key to be unpressed when pasting.
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "Shift", 8000);
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "Control_L+v", 8000);
}
@ -456,6 +463,8 @@ int32_t is_current_window_terminal() {
return 1;
}else if (strstr(class_buffer, "St") != NULL) { // Simple terminal
return 1;
}else if (strstr(class_buffer, "Alacritty") != NULL) { // Alacritty terminal
return 1;
}
}

View File

@ -30,6 +30,7 @@ Compression=lzma
SolidCompression=yes
WizardStyle=modern
ChangesEnvironment=yes
AlwaysRestart = yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
@ -62,7 +63,7 @@ end;
[Run]
Filename: {tmp}\vc_redist.x64.exe; \
Parameters: "/install /quiet"; \
Parameters: "/install /quiet /norestart"; \
StatusMsg: "Installing Visual C++ 2019 Redistributable";
Filename: "{app}\{#MyAppExeName}"; Parameters: "start"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent