Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Espanso] Copies "Label" field instead of "Replace" field. #8235

Closed
AbhishekTripathi opened this issue Sep 4, 2023 · 7 comments · Fixed by #9101
Closed

[Espanso] Copies "Label" field instead of "Replace" field. #8235

AbhishekTripathi opened this issue Sep 4, 2023 · 7 comments · Fixed by #9101
Labels
bug Something isn't working extension: espanso Issues related to the espanso extension extension Issues related to one of the extensions in the Store

Comments

@AbhishekTripathi
Copy link

Extension

https://www.raycast.com/kud/espanso

Description

First of all thanks for this extension. The idea is very neat. I hope when the issue is fixed, it will be part of my workflow and will boost my productivity.

The expectation is that when I am searching for a snippet, the search should be both on the trigger, and on the label field. The output of the search should ideally show the trigger, and the replace parameter but copy the replace parameter by default. Currently, it is copying the label field which is useless as it is a description of the snippet.

A sample snippet:

    - label: Bug emoji
      replace: 🐛
      trigger: "!ebug"

Steps To Reproduce

Make a new snippet in your espanso config file as provided in description of this bug.

Case 1: Try to search for espanso config with text "emoji".
Case 2: Try to search for espanso config with text "bug".

Current Behaviour

Case 1: There is no match found.
Case 2: The match is found. However, the right window shows the snippet label text "Bug Emoji" instead of replace value. Pressing "Enter" copies the label text.

Expected Behaviour

Case 1: The match should correctly filter the snippets based either on label or on the trigger field.
Case 2: The matched entity should copy the trigger by default. The right window can be enhanced to show full snippet details but pressing enter should copy the replace value.

@kud please have a look.

@AbhishekTripathi AbhishekTripathi added bug Something isn't working extension Issues related to one of the extensions in the Store labels Sep 4, 2023
@raycastbot raycastbot added the extension: espanso Issues related to the espanso extension label Sep 4, 2023
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @kud @nbbaier you might want to have a look.

💡 Tip: Once the issue is resolved, comment @raycastbot close this issue to close it.

@kud
Copy link
Contributor

kud commented Sep 4, 2023

Hey @AbhishekTripathi, thank you for reporting this. I will check it when I have time. Thanks.

@kud
Copy link
Contributor

kud commented Sep 8, 2023

I was not aware of the field label. I've just tried it, it's a great one! It will make the list way cleaner!

Thanks for suggesting.

@nbbaier
Copy link
Contributor

nbbaier commented Sep 9, 2023

Yeah this is really cool!

@kud
Copy link
Contributor

kud commented Sep 9, 2023

Got an issue with espanso for now. Need to wait an answer before being able to do something.

espanso/espanso#1702

@kud
Copy link
Contributor

kud commented Sep 12, 2023

I'm sorry, but for now, this issue is blocked. I can't do anything other than wait for the issue on Espanso. I hope it will be resolved soon or a workaround will be available.

@kud
Copy link
Contributor

kud commented Oct 30, 2023

I did my best espanso/espanso#1720 but espanso seems not to be so active those days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: espanso Issues related to the espanso extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants