Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvim-telescope/telescope-smart-history.nvim
A history implementation that memorizes prompt input for a specific context
https://github.com/nvim-telescope/telescope-smart-history.nvim
Last synced: 3 days ago
JSON representation
A history implementation that memorizes prompt input for a specific context
- Host: GitHub
- URL: https://github.com/nvim-telescope/telescope-smart-history.nvim
- Owner: nvim-telescope
- License: mit
- Created: 2021-04-21T19:26:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T19:25:54.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T13:33:59.195Z (3 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 136
- Watchers: 5
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telescope-smart-history.nvim
A history implementation that memorizes prompt input for a specific context.
This means that each prompt input is associated with a calling picker and cwd.So if you work on multiple projects and cycle back it will only show input that
was used in this Project.## Setup
It requires [sqlite.lua](https://github.com/tami5/sqlite.lua), because its easier
and faster than having a flat text file that keeps track of input + picker + cwd.It will be configured with the same keys as the normal history configuration.
```lua
telescope.setup {
defaults = {
history = {
path = '~/.local/share/nvim/databases/telescope_history.sqlite3',
limit = 100,
}
}
}require('telescope').load_extension('smart_history')
```