Skip to content

Commit

Permalink
chore(buffer_gutter_blame_preview)!: deprecate infavour of live blame…
Browse files Browse the repository at this point in the history
… and buffer_line_blame_preview
  • Loading branch information
tanvirtin committed Jun 14, 2024
1 parent 570e363 commit f17f8d6
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 260 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ require('vgit').setup({
['n <leader>gf'] = function() require('vgit').buffer_diff_preview() end,
['n <leader>gh'] = function() require('vgit').buffer_history_preview() end,
['n <leader>gu'] = function() require('vgit').buffer_reset() end,
['n <leader>gg'] = function() require('vgit').buffer_gutter_blame_preview() end,
['n <leader>gd'] = function() require('vgit').project_diff_preview() end,
['n <leader>gx'] = function() require('vgit').toggle_diff_preference() end,
},
Expand Down Expand Up @@ -339,7 +338,6 @@ set statusline+=%{get(b:,'vgit_status','')}
| buffer_diff_preview | Opens a diff preview showing the diff of the current buffer in comparison to that found in index. If the command is called while being on a hunk, the window will open focused on the diff of that hunk. |
| buffer_history_preview | Opens a diff preview along with a table of logs, enabling users to see different iterations of the file through it's lifecycle in git. |
| buffer_blame_preview | Opens a preview detailing the blame of the line that based on the cursor position within the buffer. |
| buffer_gutter_blame_preview | Opens a preview which shows all the blames related to the lines of the buffer. |
| buffer_diff_staged_preview | Opens a diff preview showing the diff of the staged changes in the current buffer. |
| buffer_hunk_staged_preview | Opens a diff preview showing the diff of the staged changes in the current buffer. This preview will open up in a smaller window relative to where your cursor is. |
| buffer_hunk_stage | Stages a hunk, if a cursor is on the hunk. |
Expand Down
5 changes: 0 additions & 5 deletions doc/vgit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ More advanced configuration:
['n <leader>gf'] = function() require('vgit').buffer_diff_preview() end,
['n <leader>gh'] = function() require('vgit').buffer_history_preview() end,
['n <leader>gu'] = function() require('vgit').buffer_reset() end,
['n <leader>gg'] = function() require('vgit').buffer_gutter_blame_preview() end,
['n <leader>gd'] = function() require('vgit').project_diff_preview() end,
['n <leader>gx'] = function() require('vgit').toggle_diff_preference() end,
},
Expand Down Expand Up @@ -271,10 +270,6 @@ buffer_blame_preview() *vgit.buffer_blame_preview()*
Pressing the enter key will open |vgit.project_commits_preview()|
with with the commit associated with the link being blamed.

buffer_gutter_blame_preview() *vgit.buffer_gutter_blame_preview()*
Opens a preview which shows all the blames related to each
line in the buffer.

buffer_diff_staged_preview() *vgit.buffer_staged_diff_preview()*
Opens a diff preview showing the diff of the staged changes in
the current buffer.
Expand Down
4 changes: 0 additions & 4 deletions lua/vgit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ local buffer = {
blame_preview = loop.coroutine(function()
screen_manager.show('line_blame_screen')
end),
gutter_blame_preview = loop.coroutine(function()
screen_manager.show('gutter_blame_screen')
end),
diff_staged_preview = loop.coroutine(function()
screen_manager.show('diff_screen', { is_staged = true })
end),
Expand Down Expand Up @@ -236,7 +233,6 @@ return {
buffer_history_preview = buffer.history_preview,
buffer_hunk_staged_preview = buffer.hunk_staged_preview,
buffer_diff_staged_preview = buffer.diff_staged_preview,
buffer_gutter_blame_preview = buffer.gutter_blame_preview,
buffer_conflict_accept_current_change = buffer.conflict_accept_current_change,
buffer_conflict_accept_incoming_change = buffer.conflict_accept_incoming_change,
buffer_conflict_accept_both_changes = buffer.conflict_accept_both_changes,
Expand Down
1 change: 0 additions & 1 deletion lua/vgit/Command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function Command:constructor()
'buffer_diff_preview',
'buffer_history_preview',
'buffer_blame_preview',
'buffer_gutter_blame_preview',
'buffer_diff_staged_preview',
'buffer_hunk_staged_preview',
'buffer_hunk_stage',
Expand Down
63 changes: 0 additions & 63 deletions lua/vgit/features/screens/GutterBlameScreen/Store.lua

This file was deleted.

85 changes: 0 additions & 85 deletions lua/vgit/features/screens/GutterBlameScreen/init.lua

This file was deleted.

7 changes: 0 additions & 7 deletions lua/vgit/ui/screen_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local DiffScreen = require('vgit.features.screens.DiffScreen')
local HistoryScreen = require('vgit.features.screens.HistoryScreen')
local LineBlameScreen = require('vgit.features.screens.LineBlameScreen')
local ProjectDiffScreen = require('vgit.features.screens.ProjectDiffScreen')
local GutterBlameScreen = require('vgit.features.screens.GutterBlameScreen')
local ProjectLogsScreen = require('vgit.features.screens.ProjectLogsScreen')
local ProjectStashScreen = require('vgit.features.screens.ProjectStashScreen')
local ProjectCommitScreen = require('vgit.features.screens.ProjectCommitScreen')
Expand Down Expand Up @@ -37,12 +36,6 @@ function screen_manager.screens.diff_hunk_screen(opts)
return diff_hunk_screen:show(opts), diff_hunk_screen
end

function screen_manager.screens.gutter_blame_screen()
local gutter_blame_screen = GutterBlameScreen()

return gutter_blame_screen:show(), gutter_blame_screen
end

function screen_manager.screens.project_logs_screen(...)
local project_logs_screen = ProjectLogsScreen()

Expand Down
93 changes: 0 additions & 93 deletions lua/vgit/ui/views/GutterBlameView.lua

This file was deleted.

0 comments on commit f17f8d6

Please sign in to comment.