telescope-repo.nvim icon indicating copy to clipboard operation
telescope-repo.nvim copied to clipboard

Get oldfiles list after enter repo

Open Mr-LLLLL opened this issue 2 years ago • 4 comments

would you add config: when i enter a repo after execute :Telescope repo,show Oldfiles not Git Files. i think this will be useful

Mr-LLLLL avatar Dec 26 '22 03:12 Mr-LLLLL

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

Mr-LLLLL avatar Dec 27 '22 09:12 Mr-LLLLL

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
    },
  },
}

cljoly avatar Dec 28 '22 15:12 cljoly

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.

cljoly avatar Dec 28 '22 15:12 cljoly

i think it's good idea, may i creat a PR,if this feature havn't implemented when i have sparetime.

Mr-LLLLL avatar Dec 29 '22 00:12 Mr-LLLLL