Giter VIP home page Giter VIP logo

Comments (3)

CillySu avatar CillySu commented on June 9, 2024 4

I have since found the word_separators option, my apologies.

I have since set the following.
word_separators: [" ", ",", ".", "?", "!", "\r", "\n", "\r\n", "\t", "}", "]", ">", "%", ")", 22]
in my defaults.yml

This allows the use of TAB โ‡ฅ for expanding, however this still results in the erroneous addition of two whitespace after pressing TAB โ‡ฅ unless $|$ is present at the end of the replace: field.

I believe it would be helpful if word_separators would/could be divided into separators for before and after the trigger.

I have since added $|$ to almost all my replace: fields.

PS: What does 22 mean in the word_separators: ?

from espanso.

Gremious avatar Gremious commented on June 9, 2024

PS: What does 22 mean in the word_separators: ?

Got curious so I checked. In code it seems to be 22u8 as char:

fn default_word_separators() -> Vec<char> {
vec![' ', ',', '.', '?', '!', '\r', '\n', 22u8 as char]
}

So - raw ASCII codes in case you want an invisible space seperator or something weird like that ig

from espanso.

smeech avatar smeech commented on June 9, 2024

Thank you.
Most of your issues are addressed by adjusting the list of word_separators:, as you suggest, and we're in the process of updating the code and documentation to add ", ', \t, and form-feed as defaults. The newline issue is not a problem with the current release.
Regarding item 4, most of us would use a prefix or suffix character or other workaround.
Thank you very much for your suggestion to include closing parentheses - I've added a comment to the pending pull request.
I'll close this for now, if that's OK.

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.