You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are two use cases where it would be helpful to be able to 'define' a keyword and navigate to where it was 'defined':
specs: s/def and friends
re-frame: In re-frame you register effects and subscriptions to keywords (e.g. :app/do-something).
(reg-event-fx:app/do-something
(fn [{:keys [db]} [_ val]]
(do something)
))
When navigating through re-frame code, we often want to navigate to where this keyword was registered. Find usages works, but shows you all usages of the keyword, not where it was registered. I imagine spec will have the same issues?
The text was updated successfully, but these errors were encountered:
This would be a great feature to have. Interested to know how Cursive will tell the difference between the definition (reg-event-fx :app/do-something ... and the usage (dispatch [:app/do-something]) where :app/ is a synthetic namespace ?
IMHO it should be an knowledge about re-frame/spec code...
Maybe "Case contains re-frame.core on imported namespaces, than keys after reg-event-fx are definitions" or something like...
Here are two use cases where it would be helpful to be able to 'define' a keyword and navigate to where it was 'defined':
s/def
and friends:app/do-something
).When navigating through re-frame code, we often want to navigate to where this keyword was registered. Find usages works, but shows you all usages of the keyword, not where it was registered. I imagine spec will have the same issues?
The text was updated successfully, but these errors were encountered: