Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get oldfiles list after enter repo #56

Open
Mr-LLLLL opened this issue Dec 26, 2022 · 4 comments
Open

Get oldfiles list after enter repo #56

Mr-LLLLL opened this issue Dec 26, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Mr-LLLLL
Copy link

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
Copy link
Author

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

@cljoly
Copy link
Owner

cljoly commented Dec 28, 2022

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
Copy link
Owner

cljoly commented Dec 28, 2022

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 cljoly added the enhancement New feature or request label Dec 28, 2022
@Mr-LLLLL
Copy link
Author

Mr-LLLLL commented Dec 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants