{"id":24623144,"url":"https://github.com/ycm/harpy","last_synced_at":"2025-05-07T15:23:28.486Z","repository":{"id":266770574,"uuid":"899005045","full_name":"ycm/harpy","owner":"ycm","description":"(deprecated, use poplar.vim instead)","archived":false,"fork":false,"pushed_at":"2024-12-21T11:34:57.000Z","size":1093,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T11:21:51.817Z","etag":null,"topics":["vim","vim9"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ycm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2024-12-05T12:52:57.000Z","updated_at":"2025-01-15T02:09:45.000Z","dependencies_parsed_at":"2024-12-21T12:26:37.375Z","dependency_job_id":"2b784837-d140-4d3f-8b1c-c1f035bf0e69","html_url":"https://github.com/ycm/harpy","commit_stats":null,"previous_names":["ycm/harpy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycm%2Fharpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycm%2Fharpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycm%2Fharpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycm%2Fharpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ycm","download_url":"https://codeload.github.com/ycm/harpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252903273,"owners_count":21822413,"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":["vim","vim9"],"created_at":"2025-01-25T03:33:44.073Z","updated_at":"2025-05-07T15:23:28.453Z","avatar_url":"https://github.com/ycm.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Deprecated!\n\n[poplar.vim](https://github.com/ycm/poplar.vim) is better and includes a filetree.\n\n\u003ch1 align=\"center\"\u003eharpy\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA small set of \u003ca href=\"https://github.com/ThePrimeagen/harpoon\"\u003eharpoon\u003c/a\u003e-like features for my personal use case.\u003c/p\u003e\n\n![demo](https://github.com/ycm/harpy/blob/master/gallery/demo.gif)\n\n(gif made with [asciinema](https://asciinema.org/))\n\nUnlike harpoon, harpy's menu is not a regular text buffer - as such, harpy does not permit text-editing commands like inserting text, `dd`, etc. To hopefully offset this limitation, some basic menu management functionality is offered with customizable keys. On the other hand, this also means no need to `:w` to save the menu, and the menu can 'remember' the cursor position, show some more info, etc.\n\n## Setup\n\nRequires Vim 9+.\n\n[vim-plug](https://github.com/junegunn/vim-plug):\n```vim\nPlug 'ycm/harpy'\n```\n\nManual installation:\n```\nmkdir -p ~/.vim/pack/ycm/start \u0026\u0026 cd ~/.vim/pack/ycm/start\ngit clone https://github.com/ycm/harpy.git\nvim -u NONE -c \"helptags harpy/doc\" -c q\n```\n\nNote: `set autochdir` is not recommended, since harpy stores its filelist in the cwd. This also means you might want to `ignore` the filelist in your project. \n```bash\necho \".harpylist\" \u003e\u003e .gitignore\n```\n\n## Configs\n\n**Sample mappings**\n\n```vim\nnnoremap \u003csilent\u003e \u003cleader\u003ell :Harpy\u003ccr\u003e\nnnoremap \u003csilent\u003e \u003cleader\u003ela :HarpyAdd\u003ccr\u003e\n```\n\n**Default options**\n```vim\ng:harpy_opts = {\n    file_name: '.harpylist',\n    min_width: 40,\n    pointer:    ' \u003e ',\n    no_pointer: '   ',\n    keys_down:            ['j', '\u003cDown\u003e'],\n    keys_up:              ['k', '\u003cUp\u003e'],\n    keys_move_down:       ['J'],\n    keys_move_up:         ['K'],\n    keys_open:            ['\u003cEnter\u003e', '\u003cSpace\u003e'],\n    keys_open_in_tab:     ['t'],\n    keys_clear_not_found: ['D'],\n    keys_remove_entry:    ['X'],\n    keys_split_top:       ['S'],\n    keys_split_bottom:    ['s'],\n    keys_split_left:      ['V'],\n    keys_split_right:     ['v'],\n    keys_toggle_help:     ['h']\n}\n```\n\nTo set custom options, add a global dictionary called `g:harpy_user_opts`. This\ndictionary is loaded when you first run `:Harpy` or `:HarpyAdd`. If you modify\nthese configs after using harpy, you should restart Vim for the changes to take\neffect.\n```vim\nvim9script\ng:harpy_user_opts = {\n    keys_up: ['k', 'l'],\n    pointer: '\u003e',\n    no_pointer: ' ',\n    min_width: 70\n}\n```\n\n**Colors**\n\nHarpy also comes with these highlight links:\n```vim\nHarpyEntry             -\u003e Normal\nHarpyEntryFile         -\u003e Identifier\nHarpyEntrySelected     -\u003e Normal\nHarpyEntrySelectedFile -\u003e Identifier\nHarpyFileNotFound      -\u003e Removed\nHarpyHelpText          -\u003e Comment\nHarpyMenuBg            -\u003e PMenu\nHarpyMenuBorder        -\u003e PMenu\n```\n\nYou can play around with these as you would any other highlight group.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycm%2Fharpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fycm%2Fharpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycm%2Fharpy/lists"}