commit
6d1f157084
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -370,7 +370,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "espanso"
|
name = "espanso"
|
||||||
version = "0.3.4"
|
version = "0.3.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"backtrace 0.3.37 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "espanso"
|
name = "espanso"
|
||||||
version = "0.3.4"
|
version = "0.3.5"
|
||||||
authors = ["Federico Terzi <federicoterzi96@gmail.com>"]
|
authors = ["Federico Terzi <federicoterzi96@gmail.com>"]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
description = "Cross-platform Text Expander written in Rust"
|
description = "Cross-platform Text Expander written in Rust"
|
||||||
|
|
|
@ -285,6 +285,13 @@ void left_arrow(int32_t count) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void trigger_paste() {
|
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);
|
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "Control_L+v", 8000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,6 +463,8 @@ int32_t is_current_window_terminal() {
|
||||||
return 1;
|
return 1;
|
||||||
}else if (strstr(class_buffer, "St") != NULL) { // Simple terminal
|
}else if (strstr(class_buffer, "St") != NULL) { // Simple terminal
|
||||||
return 1;
|
return 1;
|
||||||
|
}else if (strstr(class_buffer, "Alacritty") != NULL) { // Alacritty terminal
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
WizardStyle=modern
|
WizardStyle=modern
|
||||||
ChangesEnvironment=yes
|
ChangesEnvironment=yes
|
||||||
|
AlwaysRestart = yes
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
@ -62,7 +63,7 @@ end;
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: {tmp}\vc_redist.x64.exe; \
|
Filename: {tmp}\vc_redist.x64.exe; \
|
||||||
Parameters: "/install /quiet"; \
|
Parameters: "/install /quiet /norestart"; \
|
||||||
StatusMsg: "Installing Visual C++ 2019 Redistributable";
|
StatusMsg: "Installing Visual C++ 2019 Redistributable";
|
||||||
Filename: "{app}\{#MyAppExeName}"; Parameters: "start"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
Filename: "{app}\{#MyAppExeName}"; Parameters: "start"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user