{"id":13862717,"url":"https://github.com/ljos/jq-mode","last_synced_at":"2025-04-05T09:06:55.796Z","repository":{"id":36845656,"uuid":"41152594","full_name":"ljos/jq-mode","owner":"ljos","description":"Emacs major mode for editing jq queries.","archived":false,"fork":false,"pushed_at":"2025-01-13T12:14:36.000Z","size":76,"stargazers_count":118,"open_issues_count":6,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T08:06:58.473Z","etag":null,"topics":["emacs","emacs-lisp","emacs-mode","jq"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljos.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-21T11:35:24.000Z","updated_at":"2025-03-25T16:21:53.000Z","dependencies_parsed_at":"2024-04-08T18:58:04.526Z","dependency_job_id":"b35605fb-9378-41c6-b213-80d93ef15f4d","html_url":"https://github.com/ljos/jq-mode","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljos%2Fjq-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljos%2Fjq-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljos%2Fjq-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljos%2Fjq-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljos","download_url":"https://codeload.github.com/ljos/jq-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312077,"owners_count":20918344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","emacs-lisp","emacs-mode","jq"],"created_at":"2024-08-05T06:01:50.726Z","updated_at":"2025-04-05T09:06:55.747Z","avatar_url":"https://github.com/ljos.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"* What is it?\n  =jq-mode= is an emacs major mode for editing [[https://github.com/stedolan/jq][jq]]-scripts.\n\n* Getting started\n  [[https://melpa.org/#/jq-mode][file:https://melpa.org/packages/jq-mode-badge.svg]] [[https://stable.melpa.org/#/jq-mode][file:https://stable.melpa.org/packages/jq-mode-badge.svg]]\n  - Download jq-mode.el and put it in a directory somewhere.\n  - Add the following to your .emacs file\n\n  #+BEGIN_SRC emacs-lisp\n  (add-to-list 'load-path \"/path/to/jq-mode-dir\")\n  (autoload 'jq-mode \"jq-mode.el\"\n      \"Major mode for editing jq files\" t)\n  (add-to-list 'auto-mode-alist '(\"\\\\.jq$\" . jq-mode))\n  #+END_SRC\n\n  Now jq-mode will load whenever you visit a file whose name ends\n  with .jq. Alternatively, run =M-x jq-mode= in an existing\n  buffer containing jq commands.\n\n* Interactive mode\n  =jq-mode= can also be used interactively in a JSON buffer. If you\n  add the following to your .emacs file\n\n  #+BEGIN_SRC emacs-lisp\n    (with-eval-after-load \"json-mode\"\n      (define-key json-mode-map (kbd \"C-c C-j\") #'jq-interactively))\n  #+END_SRC\n\n  or you can call =M-x jq-interactivly=. =jq-interactively= runs the\n  expression that is written in the minibuffer iteratively over the\n  JSON buffer. Press =C-g= to abort, =C-j= for newline, =RET= commits\n  any changes.\n\n** Use yq for yaml\n\n   It is possible to use [[https://github.com/kislyuk/yq][yq]] to process yaml with the interactive mode instead:\n\n   #+BEGIN_SRC emacs-lisp\n     (setq jq-interactive-command \"yq\"\n           jq-interactive-font-lock-mode #'yaml-mode\n           jq-interactive-default-options \"--yaml-roundtrip\")\n   #+END_SRC\n\n* Org babel\n\n  =jq-mode= provides =ob-jq= for working with literate programming in\n  Org mode.\n\n  Add =jq= under =org-babel-load-languages= in your .emacs file\n\n  #+BEGIN_SRC emacs-lisp\n  (org-babel-do-load-languages 'org-babel-load-languages\n                               '((jq . t)))\n  #+END_SRC\n\n** jq specific header arguments\n\n=ob-jq= provides some additional header arguments:\n\n- =:compact= :: Add =-c= to =jq= arguments list suppressing pretty printing\n\n* Bugs and Enhancements\n  If you have a problem or would like to see it get better in a\n  specific way, feel free to drop an issue in [[https://github.com/ljos/jq-mode/issues][the issue tracker]].\n  Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljos%2Fjq-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljos%2Fjq-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljos%2Fjq-mode/lists"}