Comments (7)
#detect#
in Discord gives me:title: '#🆘・help-me | Espanso - Discord' exec: '' class: 'discord'
if that's any help. Wayland is problematic, however, and I'm not sure app-specific configurations are yet available on that protocol.
No luck, I am trying this to see if I can capture the discord app, but everything still works (and fails frequently).
I might just set default to clipboard, and see if I run into problems, as that seems to fix it for discord, but then everything uses clipboard.
What type of problems do you run into when using backend: clipboard?
Wayland is problematic, however, and I'm not sure app-specific configurations are yet available on that protocol.
Everything seems problematic on Wayland these days, yet that's where everything is going. So frustrating.
from espanso.
Most of these problems can be resolved using a different backend.
Try using the undocumented options force_mode: clipboard
or force_mode: keys
as a line added to your expansion (indented in line with trigger:
and replace:
).
If one solves the problem, it may be worth constructing an app-specific configuration for the destination program, with an appropriate backend:
line.
from espanso.
Most of these problems can be resolved using a different backend. Try using the undocumented options
force_mode: clipboard
orforce_mode: keys
as a line added to your expansion (indented in line withtrigger:
andreplace:
). If one solves the problem, it may be worth constructing an app-specific configuration for the destination program, with an appropriatebackend:
line.
For this particular expansion and this particular app, both of these options work better. I tried them each 5-6 times and they didn't error out. Usually this app (Discord) errors out 80% of the time by putting a space somewhere.
What other "undocumented" modes are there? What is the downside to just switching all to use it? The clipboard option seems to be faster than the keys option, but both worked without inserting spaces.
If I remove the option, it immediately starts happening again.
Any downside of just setting it globally?
I tried using app specific, but when I use the # detect # trick, it just comes up empty under Linux Wayland.
from espanso.
I (Mint Xfce X11) find the clipboard mechanism sufficiently more reliable to include backend: Clipboard
in my default.yml
but I do need app-specific configurations for the exceptions: LibreOffice Calc (backend: Inject
) and xfce4-terminal (backend: Auto
).
My list of documentation updates may be found at #1788. Some additional methods are listed in this code. html:
and markdown:
have been used (instead of replace:
), but I'm not sure the others are as clear.
from espanso.
I (Mint Xfce X11) find the clipboard mechanism sufficiently more reliable to include
backend: Clipboard
in mydefault.yml
but I do need app-specific configurations for the exceptions: LibreOffice Calc (backend: Inject
) and xfce4-terminal (backend: Auto
). My list of documentation updates may be found at #1788. Some additional methods are listed in this code.html:
andmarkdown:
have been used (instead ofreplace:
), but I'm not sure the others are as clear.
I tried setting up an application level one, but I couldn't get it to recognize discord, in fact I couldn't get it to recognize anything, using #detect # shows empty for all three methods.
from espanso.
#detect#
in Discord gives me:
title: '#🆘・help-me | Espanso - Discord'
exec: ''
class: 'discord'
if that's any help.
Wayland is problematic, however, and I'm not sure app-specific configurations are yet available on that protocol.
from espanso.
I might just set default to clipboard, and see if I run into problems, as that seems to fix it for discord, but then everything uses clipboard.
That may be your best solution for now, although it occurs to me that if your replacements for Discord are over a certain length, you could try setting your clipboard_threshold:
option to that. Below the threshold Espanso will use Inject
, and above it, Clipboard
, globally.
What type of problems do you run into when using backend: clipboard?
Most of the time it's fine, with the tweaks outlined above. Without that, Calc pastes everything into a single cell and ignores \t
tabs in my expansion. In xfce4-terminal I get empty replacements for short expansions using Clipboard.
from espanso.
Related Issues (20)
- Using trigger with regex conditioned replacement text HOT 6
- Python throws an error when the clipboard contains newline. HOT 3
- Animated gifs paste incorrectly in certain apps HOT 1
- link to config file/match folder in the taskbar right click menu HOT 3
- espanso periodically stops triggering HOT 1
- The candidate input method is being replaced while typing, not after typing. HOT 5
- Espanso tray Icon is difficult to see with Light color mode (Windows) HOT 2
- Reactive input for filtering files HOT 1
- null
- emoji representation in search bar HOT 4
- Search shortcut: `CMD+F4` key combination not working HOT 3
- Portable Espanso on Windows does not override installed copy HOT 5
- Switching Layouts restarts SyncTool and takes focus HOT 10
- replace multi clipboards HOT 2
- Espanso not triggering on Windows 11 HOT 8
- Cannot cat files without producing some output prior (wayland only) HOT 3
- Espanso not working with Cisco Packet tracer Cli HOT 1
- Getting mixed up output on Windows using 'portet' app HOT 2
- Espanso as App Launcher HOT 3
- espanso does not work on ubuntu 24.04 (noble) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espanso.