mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
feat: expand cwd param (#161)
Now you can use `expand()` string to show up entries by `cwd` param. ```vim :Telescope frecency workspace=CWD cwd=~ :Telescope frecency workspace=CWD cwd=%:p:h ```
This commit is contained in:
parent
6e2c1df245
commit
9c18474d0a
@ -129,6 +129,9 @@ function Frecency:start(opts)
|
||||
local start = os.clock()
|
||||
log.debug "Frecency:start"
|
||||
opts = opts or {}
|
||||
if opts.cwd then
|
||||
opts.cwd = vim.fn.expand(opts.cwd)
|
||||
end
|
||||
self.picker = Picker.new(self.database, self.entry_maker, self.fs, self.recency, {
|
||||
default_workspace_tag = self.config.default_workspace,
|
||||
editing_bufnr = vim.api.nvim_get_current_buf(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user