{"id":13500935,"url":"https://github.com/rmagatti/session-lens","last_synced_at":"2025-04-10T01:14:32.448Z","repository":{"id":41164059,"uuid":"358771838","full_name":"rmagatti/session-lens","owner":"rmagatti","description":"A session-switcher extension for rmagatti/auto-session using Telescope.nvim","archived":false,"fork":false,"pushed_at":"2024-07-16T07:54:34.000Z","size":44,"stargazers_count":226,"open_issues_count":9,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T01:14:25.624Z","etag":null,"topics":["hacktoberfest","lua","neovim","neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/rmagatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["rmagatti"],"patreon":"rmagatti","ko_fi":"rmagatti","custom":["buymeacoffee.com/rmagatti"]}},"created_at":"2021-04-17T03:04:28.000Z","updated_at":"2025-03-12T18:00:28.000Z","dependencies_parsed_at":"2024-05-30T08:04:53.043Z","dependency_job_id":"4fcd9118-8b63-4ed8-a027-74eb2b78c511","html_url":"https://github.com/rmagatti/session-lens","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/rmagatti%2Fsession-lens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmagatti%2Fsession-lens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmagatti%2Fsession-lens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmagatti%2Fsession-lens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmagatti","download_url":"https://codeload.github.com/rmagatti/session-lens/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"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":["hacktoberfest","lua","neovim","neovim-plugin"],"created_at":"2024-07-31T22:01:19.753Z","updated_at":"2025-04-10T01:14:32.430Z","avatar_url":"https://github.com/rmagatti.png","language":"Lua","funding_links":["https://github.com/sponsors/rmagatti","https://patreon.com/rmagatti","https://ko-fi.com/rmagatti","buymeacoffee.com/rmagatti"],"categories":["Lua"],"sub_categories":[],"readme":"\u003c!-- Finish README --\u003e\n# ⚠️ DEPRECATED - Session Lens is now part of auto-session. This repository is no longer needed. ⚠️\n\n\u003e # Session Lens\n\u003e Session Lens extends [auto-session](https://github.com/rmagatti/auto-session) through Telescope.nvim, creating a simple session switcher with fuzzy finding capabilities.\n\u003e \n\u003e \u003c!-- TODO: use correct gif --\u003e\n\u003e \u003cimg src=\"https://github.com/rmagatti/readme-assets/blob/main/session-lens.gif\" width=\"1000\" /\u003e\n\u003e \n\u003e # Usage\n\u003e You can call the switcher from telescope\n\u003e ```viml\n\u003e :Telescope session-lens search_session\n\u003e ```\n\u003e \n\u003e Or straight from the plugin's path with lua\n\u003e ```viml\n\u003e :lua require('session-lens').search_session()\n\u003e ```\n\u003e \n\u003e # Installation\n\u003e Any plugin manager should do.\n\u003e \n\u003e Plug\n\u003e ```viml\n\u003e \" Plugin dependencies\n\u003e Plug 'nvim-telescope/telescope.nvim'\n\u003e Plug 'rmagatti/auto-session'\n\u003e \n\u003e Plug 'rmagatti/session-lens'\n\u003e ```\n\u003e See https://github.com/nvim-telescope/telescope.nvim for it's dependencies\n\u003e \n\u003e Packer\n\u003e ```lua\n\u003e use {\n\u003e   'rmagatti/session-lens',\n\u003e   requires = {'rmagatti/auto-session', 'nvim-telescope/telescope.nvim'},\n\u003e   config = function()\n\u003e     require('session-lens').setup({--[[your custom config--]]})\n\u003e   end\n\u003e }\n\u003e ```\n\u003e \n\u003e The plugin is lazy loaded when calling it for the first time but you can pre-load it with Telescope like this if you'd rather have autocomplete for it off the bat.\n\u003e ```lua\n\u003e require(\"telescope\").load_extension(\"session-lens\")\n\u003e ```\n\u003e \n\u003e # Configuration\n\u003e \n\u003e ### Custom\n\u003e Options can be set by calling the setup function, a common option is changing the shorten path behaviour.\n\u003e ```lua\n\u003e require('session-lens').setup {\n\u003e     path_display={'shorten'},\n\u003e }\n\u003e ```\n\u003e \n\u003e Another example would be changing how the dropdown looks, this can be done by setting the `theme` and `theme_conf` in the setup options.\n\u003e The options in `theme_conf` get passed into `require('telescope.themes').get_dropdown(theme_conf)`, so anything supported by `get_dropdown` (or the function that corresponds to the specified `theme`) can be used here as well.\n\u003e ```lua\n\u003e require('session-lens').setup {\n\u003e   path_display = {'shorten'},\n\u003e   theme = 'ivy', -- default is dropdown\n\u003e   theme_conf = { border = false },\n\u003e   previewer = true\n\u003e }\n\u003e ```\n\u003e 👇\n\u003e \u003cimg width=\"1000\" alt=\"Screen Shot 2021-04-17 at 9 17 43 PM\" src=\"https://user-images.githubusercontent.com/2881382/115133046-5eed1680-9fc2-11eb-9bda-dd80d649e761.png\"\u003e\n\u003e \n\u003e In addition to the above configs, since everything gets passed into `telescope.builtin.find_files`, any configs passed to the `setup` if supported by `find_files` will override the default behaviour, for example:\n\u003e ```lua\n\u003e require('session-lens').setup {\n\u003e     prompt_title = 'YEAH SESSIONS',\n\u003e }\n\u003e ```\n\u003e 👇\n\u003e \u003cimg width=\"1000\" alt=\"Screen Shot 2021-04-17 at 8 16 49 PM\" src=\"https://user-images.githubusercontent.com/2881382/115132025-d9fdff00-9fb9-11eb-8549-22a7131a3d59.png\"\u003e\n\u003e \n\u003e \n\u003e # Commands\n\u003e Session Lens exposes one command\n\u003e - `:SearchSession` triggers the customized session picker\n\u003e \n\u003e # Compatibility\n\u003e Neovim \u003e 0.5\n\u003e \n\u003e Tested with:\n\u003e ```\n\u003e NVIM v0.5.0-dev+a1ec36f\n\u003e Build type: Release\n\u003e LuaJIT 2.1.0-beta3\n\u003e ```\n\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmagatti%2Fsession-lens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmagatti%2Fsession-lens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmagatti%2Fsession-lens/lists"}