Git Product home page Git Product logo

Comments (7)

officiallymarky avatar officiallymarky commented on June 17, 2024 1

#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).

image

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.

smeech avatar smeech commented on June 17, 2024

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.

officiallymarky avatar officiallymarky commented on June 17, 2024

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.

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.

smeech avatar smeech commented on June 17, 2024

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.

officiallymarky avatar officiallymarky commented on June 17, 2024

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.

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.

smeech avatar smeech commented on June 17, 2024

#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.

smeech avatar smeech commented on June 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.