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

Request remote when viewing in browser or creating links #51

Open
ldelossa opened this issue Feb 16, 2022 · 3 comments
Open

Request remote when viewing in browser or creating links #51

ldelossa opened this issue Feb 16, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ldelossa
Copy link

Is your feature request related to a problem? Please describe.
While working I keep many forks. Sometimes I want to link to specific forks depending on a circumstance. Current config file hardcodes a single remote to force usage.

Describe the solution you'd like
I'd like gitlinker to prompt me which fork to open a link on.

Describe alternatives you've considered
There is a config option for remote, but this is used "full-time" and somtimes I want to link to different forks during the same neovim session, and without changing configs.

@ldelossa ldelossa added the enhancement New feature or request label Feb 16, 2022
@ruifm
Copy link
Owner

ruifm commented Feb 16, 2022

Good idea, I will look into the best way to implement it.

This "prompt in case of multiple remotes" should be guarded behind a config option because I think for 90% of people it can be annoying if the default behavior is to always prompt for a remote.

I'm also accepting suggestions regarding what is the best way to have project local configuration for a gitlinker. Is there any other lua plugin that manages that? 🤔

@ldelossa
Copy link
Author

Guard is OKAY, you can also "remember" a choice for the duration of a Vim session so you do not prompt, but then also add a way to "prompt again" during session if you want to change.

I'm not a big fan of project local configurations if they add a file into the repository.

@linrongbin16
Copy link

hi @ldelossa, let's track this feature request here: https://github.com/linrongbin16/gitlinker.nvim

stevanmilic pushed a commit to stevanmilic/gitlinker.nvim that referenced this issue Nov 12, 2023
* fix: mappings

* fix: mappings=false

* wording

* fix: mappings=false
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

3 participants