{"id":13895644,"url":"https://github.com/jtroo/telescope-buffer-extract","last_synced_at":"2026-03-01T04:05:30.560Z","repository":{"id":111804194,"uuid":"603651637","full_name":"jtroo/telescope-buffer-extract","owner":"jtroo","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-29T20:45:15.000Z","size":13,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T04:22:22.951Z","etag":null,"topics":["clipboard","convenience","ergonomics","fuzzy-search","lua","neovim","nvim","paste","plugin","telescope-extension","terminal","text"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtroo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-02-19T06:44:46.000Z","updated_at":"2025-01-13T16:02:04.000Z","dependencies_parsed_at":"2024-01-24T14:17:32.515Z","dependency_job_id":null,"html_url":"https://github.com/jtroo/telescope-buffer-extract","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/jtroo%2Ftelescope-buffer-extract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtroo%2Ftelescope-buffer-extract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtroo%2Ftelescope-buffer-extract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtroo%2Ftelescope-buffer-extract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtroo","download_url":"https://codeload.github.com/jtroo/telescope-buffer-extract/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248718016,"owners_count":21150488,"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":["clipboard","convenience","ergonomics","fuzzy-search","lua","neovim","nvim","paste","plugin","telescope-extension","terminal","text"],"created_at":"2024-08-06T18:02:21.706Z","updated_at":"2026-03-01T04:05:25.517Z","avatar_url":"https://github.com/jtroo.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# Telescope buffer extract\n\n![WindowsTerminal_f29utBfQhh](https://user-images.githubusercontent.com/6634136/219940608-398c6145-a0df-4c47-9c1b-45cdb9d0c408.gif)\n\n## What does this do?\n\nThis allows you to fuzzy-select a word or line from the current buffer using\ntelescope and then either paste the selection at the current position, or copy\nthe selection to your clipboard.\n\nThe inspiration for this plugin came from the tmux\n[extrakto](https://github.com/laktak/extrakto) plugin. The reason I created\nthis was for better ergonomics in the Neovim terminal for the use case of\npasting terminal output back into the terminal input, or copying terminal\noutput for use elsewhere.\n\n## Installation\n\nI have no idea how modern-day Neovim plugin installation works. I still use pathogen\nwith vendored plugins. Using pathogen, git clone into the `bundle` directory.\n\nYou must have [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)\ninstalled as well for this plugin to do anything.\n\n## How to use\n\nThis plugin automatically adds two new commands that open pickers. After the\ntelescope picker closes, you will automatically go back to insert or terminal\nmode, depending on the active buffer. This is the default behaviour, but can be\noverridden.\n\n    :TelescopeBufferExtractWord\n    :TelescopeBufferExtractLine\n\nAlternatively, with Lua:\n\n    :lua require'telescope-buffer-extract'.pick_word()\n    :lua require'telescope-buffer-extract'.pick_line()\n\nIf you do not want to enter insert/terminal mode after running the functions, do:\n\n    :lua require'telescope-buffer-extract'.pick_word({no_insert_mode = true})\n    :lua require'telescope-buffer-extract'.pick_line({no_insert_mode = true})\n\nWith the picker open, pressing `Tab` will paste the selection at the cursor's\ncurrent location. Pressing `Enter` will copy the selection into the `+`\nregister (usually the OS clipboard).\n\n## How I (jtroo) use it\n\nI use the Neovim terminal only when I'm working in Windows, otherwise on Linux\nI'm using tmux. I have some keybindings to emulate tmux workflows inside the\nNeovim terminal. The ones calling this plugin in particular are:\n\n    \" by word\n    tnoremap \u003cc-b\u003e\u003ctab\u003e \u003cc-\\\u003e\u003cc-n\u003e:TelescopeBufferExtractWord\u003ccr\u003e\n    \" by line\n    tnoremap \u003cc-b\u003e` \u003cc-\\\u003e\u003cc-n\u003e:TelescopeBufferExtractLine\u003ccr\u003e\n\nThese are terminal-mode mappings (like insert, but within a terminal) which\nwill open the picker and then go back to terminal-mode once a selection is\nmade.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtroo%2Ftelescope-buffer-extract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtroo%2Ftelescope-buffer-extract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtroo%2Ftelescope-buffer-extract/lists"}