{"id":16340852,"url":"https://github.com/casey/reap.vim","last_synced_at":"2025-03-20T23:31:28.626Z","repository":{"id":81088007,"uuid":"176700406","full_name":"casey/reap.vim","owner":"casey","description":"🧐Read, evaluate, and annotate code in vim","archived":false,"fork":false,"pushed_at":"2024-03-13T00:49:56.000Z","size":12,"stargazers_count":21,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T23:58:06.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2019-03-20T09:34:54.000Z","updated_at":"2024-03-21T05:10:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4b75931-7b4c-467f-bcc8-38724dedac80","html_url":"https://github.com/casey/reap.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Freap.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Freap.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Freap.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casey%2Freap.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casey","download_url":"https://codeload.github.com/casey/reap.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221810054,"owners_count":16884041,"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":[],"created_at":"2024-10-10T23:58:02.927Z","updated_at":"2024-10-28T08:52:14.079Z","avatar_url":"https://github.com/casey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n*reap.vim* / *rave.imp* (R)ead (E)val (A)nnotate (P)rint [Python!]\n\n                       ____  _________    ____        _\n                      / __ \\/ ____/   |  / __ \\_   __(_)___ ___\n                     / /_/ / __/ / /| | / /_/ / | / / / __ `__ \\\n                    / _, _/ /___/ ___ |/ ____/| |/ / / / / / / /\n                   /_/ |_/_____/_/  |_/_/   (_)___/_/_/ /_/ /_/\n\n                        (R)ead (E)val (A)nnotate (P)rint\n\n                                By Casey Rodarmor\n                            mailto:casey@rodarmor.com\n\nCONTENTS                                                   \n==============================================================================\n\n0. Magnasanti\n1. Intro\n2. Usage\n3. Configuration\n4. License\n5. Contributing\n6. Wishlist\n7. Changelog\n8. Grid\n\n\nMAGNASANTI                                    \n------------------------------------------------------------------------------\n\n                         ALL ROADS LEAD TO MAGNASANTI\n\n                                  ██████████\n                              ████          ████\n                            ██        ██        ██\n                          ██      ██  ██  ██      ██\n                        ██    ██  ████  ████  ██    ██\n                        ██      ██  ██  ██  ██      ██\n                      ██    ████    ██████    ████    ██\n                      ██      ██████  ██  ██████      ██\n                      ██  ████    ████  ████    ████  ██\n                      ██      ██████  ██  ██████      ██\n                      ██    ████    ██████    ████    ██\n                        ██      ██  ██  ██  ██      ██\n                        ██    ██  ████  ████  ██    ██\n                          ██      ██  ██  ██      ██\n                            ██        ██        ██\n                              ████          ████\n                                  ██████████\n\n                         https://youtu.be/NTJQTc-TqpU\n\n\nINTRO                                                        \n------------------------------------------------------------------------------\n\nReap.vim hijacks the = operator to run Python 3 source code directly from vim\nbuffers, annotating it with values and ouput.\n\nA demonstration is online here: https://youtu.be/BNYddRCqfSY\n\nUse ={motion} on the code you want to run, or == to evaluate the current line.\n\nReap is provided as a plugin, available at `github.com/casey/reap.vim`. A nice\ntool to manage your Vim plugins is vim-plug:\n\nhttps://github.com/junegunn/vim-plug\n\nIf you use vim-plug, add the following to your .vimrc and run `:PlugUpdate`:\n\u003e\n Plug 'casey/reap.vim'\n\nReap expects a `python3` binary to be in the `$PATH`.\n\n\nUSAGE                                                        \n------------------------------------------------------------------------------\n\nReap annotates expressions and assignments in Python 3 code with their values:\n\u003e\n  1 + 1             # 2\n                    #\n  tau = 2 * math.pi # 6.283185307179586\n                    #\n  x = 'foo' + 'bar' # 'foobar'\n\nIf an expression is evaluated more than once, it will be annotated with the\nmost recent value:\n\u003e\n  def fib(n):                        #\n    if n \u003c 2:                        #\n      return n                       # 0\n    else:                            #\n      return fib(n - 1) + fib(n - 2) # 55\n                                     #\n  fib(10)                            # 55\n\nReap works by setting 'equalprg' to the included ``reap.py`` script, which\nruns and annotates Python 3 source code. 'equalprg' determines the program\nused to filter text passed to the = operator, and is conventionally set to a\nformatting utility.\n\n\nCONFIGURATION                                        \n------------------------------------------------------------------------------\n\nReap is not configurable, although it should be. See |ReapWishlist|.\n\n\n------------------------------------------------------------------------------\nLICENSE                                                    \n\nInformally, do what thou wilt shall be the whole of the license.\n\nFormally, `reap.vim` is dedicated to the public domain with the CC0 public\ndomain dedication.\n\n\nCONTRIBUTING                                          \n------------------------------------------------------------------------------\n\nReap is developed on GitHub at https://github.com/casey/reap.vim. Please feel\nfree to open issues with feature requests and bug reports.\n\n\nWISHLIST                                                  \n------------------------------------------------------------------------------\n\nThere are lots of things that Reap should do:\n\n- Configure the operator, allowing un-hijacking = and 'equalprg'\n\n- Use the integrated Python 3 interpreter, if Vim is compiled with one.\n\n- Support languages other than Python\n\n- Be available as a command, i.e. `:Reap`, as well as an operator.\n\n- Annotate if, for, yield, raise, assert, and while statements\n\n- Expose the options that `reap.py` takes as configuration\n\nPull-requests with implementations of the above are most welcome!\n\n\nCHANGELOG                                                \n------------------------------------------------------------------------------\n\n## [0.0.0] - 2019-03-21\n### Added\n- Initial public version\n\n\nGRID                                           \n------------------------------------------------------------------------------\n\n            ╾╼░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░╾╼                        ╾╼\n              ░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░▒▒▒▒▓▓▓▓▒▒▒▒░░░░░░░░\n              ░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░▒▒▒▒▓▓▓▓▒▒▒▒░░░░░░░░\n              ░░░░▒▒▒▒▓▓▓▓▒▒▒▒░░░░░░░░░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░\n              ▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░\n              ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n              ████▒▒▒▒▒▒▒▒▒▒▒▒████▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n              ████▒▒▒▒▒▒▒▒▒▒▒▒████▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒\n              ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒\n              ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n              ░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n              ░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░\n              ░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░\n            ╾╼░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░╾╼░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░╾╼\n            ░░░░░░░░▒▒▒▒▓▓▓▓▒▒▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░\n            ░░░░░░░░▒▒▒▒▓▓▓▓▒▒▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░\n            ░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░░░░░▒▒▒▒▓▓▓▓▒▒▒▒░░░░░░░░\n            ░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒\n            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████▒▒▒▒▒▒▒▒▒▒▒▒████▓▓▓▓\n            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒████▒▒▒▒▒▒▒▒▒▒▒▒████▓▓▓▓\n            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░\n            ░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░\n            ░░░░░░░░▒▒▒▒████▒▒▒▒░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░\n            ╾╼                        ╾╼░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░╾╼\n\n                           Tʜᴇ sᴜᴘᴇʀɪᴏʀ 12x12 ɢʀɪᴅ\n                        ᴇᴍᴘʟᴏʏᴇᴅ ɪɴ Mᴀɢɴᴀsᴀɴᴛɪ ᴄᴀɴɴᴏᴛ\n                                ʙᴇ ʙᴇᴀᴛᴇɴ \u003e:]\n\n\n==============================================================================\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Freap.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasey%2Freap.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasey%2Freap.vim/lists"}