Comments (6)
Can you post your code (or the relevant segment)? I'm not seeing this...
> hs.settings.set("BrainFart", "abc")
> hs.settings.get("BrainFart")
abc
> hs.settings.set("BrainFart2", "Abc")
> hs.settings.get("BrainFart2")
Abc
I have noticed problems with including periods in the setting key name (IIRC related to watching them with hs.settings.watchKey
) but never with uppercase in the key or value name...
from hammerspoon.
Ok, maybe an edge case where I accidentally set it first using camel case and then I was not able to use it again with PascalCase?
> hs.settings.set("brainFart", "abc")
> hs.settings.get("brainFart")
abc
> hs.settings.set("BrainFart", "Abc")
> hs.settings.get("BrainFart")
Abc
> hs.settings.get("brainFart")
abc
Ok, nope. Does it matter that I'm doing this from within a spoon and I'm using the SpoonName as key?
from hammerspoon.
Ok, something is now wrong with my spoon setting settings, now they are not stored at all. Do you mind having a look at it? https://github.com/danielo515/StreamDeckButton.spoon/blob/main/init.lua
from hammerspoon.
This line looks wrong:
You should be providing the key and value?
from hammerspoon.
Oh, dam it, how can I be so dumb?
from hammerspoon.
That was indeed the problem. That is one of the things I hate about Lua, and why I try to not code anything complex in it. Probably will have to write some Haxe bindings for some type safety here 😂
Thanks for your help
from hammerspoon.
Related Issues (20)
- allWindows() skips Finder windows HOT 2
- passing arguments to hs.osascript.applescriptFromFile
- Unable to make distinction between window types of most apps HOT 1
- `hs.application.get` sometimes returns `hs.window` HOT 1
- hs.wifi.currentNetwork() is not work in macos 14 HOT 6
- hs.window functionality regression HOT 1
- `hs.window.filter:isWindowAllowed` breaks when the filter has a subscription
- Keyboard Shortcuts on Sonoma? HOT 1
- hs.alert.show: how to place this alert on different place on screen (center?) HOT 5
- Feature Request: detect screen recording and watcher
- Filter/group windows by stage manager?
- ClipboardTool logs images despite description stating it only copies text HOT 1
- Modifiers not working on Remote desktop HOT 4
- How can I run shortcuts via the terminal instead of using keys? HOT 1
- Any way to swap caps to ctrl? HOT 7
- Test hs.ipc.cliInstall on macOS Sonoma HOT 3
- suspected memory leak HOT 8
- New revision of Stream Deck XL with a new PID not supported HOT 1
- Various small questions about the hs.wifi module HOT 5
- Hammerspoon hangs spradically when entering hyper mode and displaying a modal window HOT 7
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 hammerspoon.