Comments (7)
Nope. Global context wins over global module.
from andreas-talon.
Right now I'm running clippy-talon using a shallow clone of this repo:
git clone -n --depth=1 --filter=tree:0 '[email protected]:AndreasArvidsson/andreas-talon.git' clippy-talon
cd clippy-talon
git sparse-checkout set plugins/clippy core/rpc_client
git checkout
from andreas-talon.
This is going a have to change if I'm moving this into a separate repository. At long as its in my repository it's of course going to be based upon my lists and captures. You can just make a context specific override on that capture?
from andreas-talon.
Yeah that's what I ended up doing. Pasting here for reference:
from talon import Context
ctx = Context()
@ctx.capture(rule="<user.number_key> | {user.letter} [{user.letter}]")
def clippy_hint(m) -> str:
try:
return str(m.number_key)
except AttributeError:
return "".join(m.letter_list)
from andreas-talon.
Nice. Thank you :)
I guess neither of those lists are mac specific though? Since it's already on a context it should win over the default module definition so you don't need to think about specificity.
from andreas-talon.
oh really? I thought I had to have something on the context for it to win
from andreas-talon.
Ok I edited the code snippet. Haven't tested it, but will take your word for it
from andreas-talon.
Related Issues (7)
- Insert snippets error HOT 5
- memory leak for imgui HOT 2
- some clippy text entries are way too big, making clippy window very wide HOT 2
- Looking for Advice: How to enable Pop to 'talon wake'? HOT 1
- "response is already locked" error state after using "git copy file" on locally modified file HOT 1
- Add spoken command to pin clippy HOT 4
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 andreas-talon.