telescope-repo.nvim
telescope-repo.nvim copied to clipboard
Get oldfiles list after enter repo
would you add config: when i enter a repo after execute :Telescope repo,show Oldfiles not Git Files. i think this will be useful
i think add a option when select a repo, because i have some file not staged, and i select a repo, not staged file not exists the list. if add a option, when select a repo, and the list is oldfiles, it's very handy
Hey, thanks for opening this issue!
I agree, that’s a valuable feature. I think I’ll add it as a part of a custom action for a mapping (#19). We also need to be able to load actions from the telescope-repo plugin, ideally lazily (from strings, as it’s done in some other places.)
Then the setting would look like this:
require("telescope").setup {
extensions = {
-- That’s the standard place to put telescope extensions settings
repo = {
mappings = {
i = {
["<CR>"] = "old_files_for_repo"
["<S-CR>"] = "git_status"
["<Some-other-binding>"] = "git_files" -- That’s what we show currently.
}
}
-- … other stuff
},
},
}
What do you think of the above @zhaogangang ? I don’t know when I’ll implement this though. If you want to create a PR we can discuss more of the implementation details.
i think it's good idea, may i creat a PR,if this feature havn't implemented when i have sparetime.