|
1 | | -*nvim-tinygit.txt* For Neovim Last change: 2024 December 14 |
| 1 | +*nvim-tinygit.txt* For Neovim Last change: 2024 December 15 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *nvim-tinygit-table-of-contents* |
@@ -31,7 +31,8 @@ FEATURE OVERVIEW *nvim-tinygit-nvim-tinygit-feature-overview* |
31 | 31 | If there are no staged changes, stages all changes before doing so (`git add -A`). Optionally trigger a `git push` afterward. |
32 | 32 | - Quick commands for amend, stash, fixup, or undoing commits. |
33 | 33 | - Search **issues & PRs**. Open the selected issue or PR in the browser. |
34 | | -- Open the **GitHub URL** of the current line or selection. |
| 34 | +- Open the **GitHub URL** of the current file, repo, or selection. Also supports |
| 35 | + opening the blame view. |
35 | 36 | - **Explore the git history**Search the file for a string ("git pickaxe"), or |
36 | 37 | examine the history of a function or line range. Displays the results in a |
37 | 38 | diff view with syntax highlighting, correctly following file renamings. |
@@ -204,15 +205,13 @@ GITHUB INTERACTION ~ |
204 | 205 | < |
205 | 206 |
|
206 | 207 | **GitHub URL** Creates a permalink to the current file/lines at GitHub. The |
207 | | -link is opened in the browser and copied to the system clipboard. |
208 | | - |
209 | | -- Normal mode: current file |
210 | | -- Visual mode: selected lines |
211 | | -- Using `"repo"` as argument, will just the repo URL instead |
| 208 | +link is opened in the browser and copied to the system clipboard. In normal |
| 209 | +mode, uses the current file, in visual mode, uses the selected lines. - |
| 210 | +`"file"`code view - `"blame"`blame view - `"repo"`repo root |
212 | 211 |
|
213 | 212 | >lua |
214 | | - -- file|repo (default: file) |
215 | | - require("tinygit").githubUrl("file") |
| 213 | + -- file|repo|blame (default: file) |
| 214 | + require("tinygit").githubUrl() |
216 | 215 | < |
217 | 216 |
|
218 | 217 |
|
|
0 commit comments