Git Product home page Git Product logo

Comments (4)

ashfinal avatar ashfinal commented on July 19, 2024

Ew … Yes, it works as intended, but not all.

hsearch-1

The below uses youdao dict’s data (an English-Chinese translation service based in China). If you type really fast, the chance is the returned results may not catch up with you due to the network latency. But still, you can use English thesaurus (Ctrl + D).

The white transparent text on the top is “autosuggestions” (something like that), which is not part of Hammerspoon Chooser control. I simply “draw" a text frame above Chooser control to place word suggestions. The drawback is the text frame’s appearance don’t match Chooser control very well, though I could use more time to adjust it, even make its appearance to change according to the system’s Dark Mode preference.

For now if you found it is useless and disturbing, feel free to use the line below to disable it.

usesuggest = false

I'm thinking maybe I can put word suggestions into the below, and when the users stop typing for certain interval, retrieve translation data and replace the original data below. But I still need time to verify and test.

from awesome-hammerspoon.

nikitavoloboev avatar nikitavoloboev commented on July 19, 2024

This makes sense, thank you.

I guess, this isn't really useful for me, only the thesaurus part is. :)

I wanted to ask you. How can I turn off all modes aside from RESIZE and VIEW :

2017-01-01 at 13 48

I don't want them taking hotkeys as I want to use them for other things.

from awesome-hammerspoon.

ashfinal avatar ashfinal commented on July 19, 2024

Yes, you can remove the default modules and add your own. See README.md 's Customization section.
Add the snippet below into ~/.hammerspoon/awesomeconfig.lua

module_list = {
    "basicmode",
}

You may find some hotkeys still work. From I can see from the above screenshot, including:

  1. Enter app mode - OPT + A
  2. Open Hammerspoon console - OPT + Z
  3. Show window hints - OPT + Tab
    Those hotkeys exists because their code are too short, creating a new module/file is not economic, so they are merged into one module/file.

Still, yes, you can modify these hotkeys or simply disable them.

appM_keys = {{}, ""}
toggleconsole_keys = {{}, ""}
winhints_keys = {{}, ""}

from awesome-hammerspoon.

nikitavoloboev avatar nikitavoloboev commented on July 19, 2024

Thank you, this is perfect.

from awesome-hammerspoon.

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.