Convert JSON into hash and play with the keys on your tests!
Load ruby-json-to-hash.el
in your personal configuration.
Coming soon.
- Convert JSON into Hash
- Move a key from the converted hash to a let
- Move back the let to the parent hash
Example of how to set the shortcuts:
;; On vanilla
(define-key ruby-mode-map (kbd "C-c ! J") 'ruby-json-to-hash-parse-json) ;; Parse the json
(define-key ruby-mode-map (kbd "C-c ! j") 'ruby-json-to-hash-toggle-let) ;; Create a let or send the let back to parent
;; On doom emacs
(map! :mode ruby-mode :localleader "J" 'ruby-json-to-hash-parse-json) ;; Parse the json, SPC m J
(map! :mode ruby-mode :localleader "j" 'ruby-json-to-hash-toggle-let) ;; Create a let or send the let back to parent. SPC m j
https://github.com/otavioschwanck/rails-i18n.el
https://github.com/otavioschwanck/rails-routes.el
(Very complete, has videos + handbooks of how to use) https://github.com/otavioschwanck/doom-emacs-on-rails/