Skip to content

Conversation

CKolkey
Copy link
Member

@CKolkey CKolkey commented Sep 16, 2025

breaking! Add "o" mapping to commit view, which opens the commit's view in web browser. This changes the config.git_services.x table format
from:

{
  ["github.com"] = "<pull request url template>",
  ...
}

to:

{
  ["github.com"] = {
    pull_request = "<pull request url template>",
    commit = "<commit url template>",
    tree = "<tree url template>",
  },
  ...
}

Github, gitlab, and bitbucket are supported out-of-the-box.

in web browser. This changes the `config.git_services.x` table format
from:

```lua
{
  ["github.com"] = "<pull request url template>",
  ...
}
```

to:
```lua
{
  ["github.com"] = {
    pull_request = "<pull request url template>",
    commit = "<commit url template>"
  },
  ...
}
```

Github, gitlab, and bitbucket are supported out-of-the-box.
url function.

In status view, if you have a commit selected, open that commit's url.
Otherwise, open the branch's tree url instead.
@CKolkey CKolkey merged commit 596b421 into master Sep 16, 2025
6 checks passed
@CKolkey CKolkey deleted the open-commit-in-browser branch September 16, 2025 14:00
@disrupted
Copy link

the readme hasn't been updated it seems

@CKolkey
Copy link
Member Author

CKolkey commented Sep 19, 2025

the readme hasn't been updated it seems

Knew I missed something 😅 thanks

@Patrick-Beuks
Copy link
Contributor

doc/neogit.txt documentation has also not been updated

@locnide
Copy link

locnide commented Sep 27, 2025

Hello. Thanks for this feature !
Shouldn’t this breaking change be mentionned in #649 ?

@CKolkey
Copy link
Member Author

CKolkey commented Sep 27, 2025

Thanks for the reminder :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants