Comments (6)
Hi,
{:t {:category "toggles"}
:p {:category "pomodoro"
:s {:action "pomodoro:start"
:title "Start Timer"}
:a {:action "pomodoro:abort"
:title "Abort Timer"}}})
here you are just overwriting the :t
key: :t {:category "toggles"}
(the :t
map is closed). I think you have a little bracket misplacement.
Nevertheless, code in question is here. Looks like I misunderstood what merge
does. Need to apply a recursive merge here that goes into sub-maps
from proton.
Found some deep-merge implementations and added them as helpers here. Didn't have time yet to check deep-merging of keybindings
from proton.
So the deep merge seems to work.
How could I extend the :t
map (i.e. what did you mean by "it is closed")?
from proton.
I mean, you want :p
inside :t
, don't you? So :p
should be a element of the map thats assigned to :t
.
In your example you define 2 root keys: :t
and :p
.
{:t {:category "toggles"}
:p {:category "pomodoro"
:s {:action "pomodoro:start"
:title "Start Timer"}
:a {:action "pomodoro:abort"
:title "Abort Timer"}}}
It should be
{:t {:category "toggles"
:p {:category "pomodoro"
:s {:action "pomodoro:start"
:title "Start Timer"}
:a {:action "pomodoro:abort"
:title "Abort Timer"}}}}
now :p
is inside :t
and the chain would be t -> p -> s
for pomodoro start
from proton.
🤦 oh man that was a dumb mistake. Parifiner is cool, but I'm going to have to get used to it adding brackets in places.
Anyway, this is closed by #28
from proton.
Haha that's what I thought :)
You technically never really have to touch your brackets with Parinfer. Just indent it so the :p
aligns with :category
and it will change the brackets for you.
from proton.
Related Issues (20)
- space 0 not focusing on tree view HOT 3
- space does not work unless focused on ui HOT 1
- Jump to line with EasyMotion?
- Pressing spacebar after a fresh install throws an error HOT 1
- Tree view as window
- Buffer navigation HOT 1
- Can't see default theme logs HOT 13
- Is this project still active? HOT 2
- Limited functionality on Windows HOT 2
- SPC g causes atom-keymap to start failing HOT 25
- Proton should clearly warn users about its destructive behaviour on first install HOT 1
- Unmatched delimiter ] when I open atom.
- Packages not Remaining Installed HOT 2
- Document controlling package settings HOT 2
- custom layer support?
- error when using atom-elixir-formatter
- GO lang support (with go-plus) is completly wrong !!!
- configuration from .proton doesn't get set on atom.cson anymore. HOT 1
- SPC menu uncaught TypeError: 'nodeName' HOT 1
- issue with setting HOT 2
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 proton.