Skip to content

Commit a55cd22

Browse files
committed
fix(#375): fix case sensitivity issue with one of the files
1 parent af86d77 commit a55cd22

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Enable live blame annotations directly in your editor to see the author and comm
102102
> Releases prior to the major versions will no longer be maintained.
103103
> Branch `v1.0.x` contains several new features and massive optimizations but unfortunately also contains several breaking and deprecated changes.
104104
> For the time being the main branch will still be following `v0.2.x` while core users slowly migrate to `v1.0.x` without breaking their current workflow.
105-
> New users please use tag `v1.0.1` or branch `v1.0.x` for the latest changes!
105+
> New users please use tag `v1.0.2` or branch `v1.0.x` for the latest changes!
106106
107107
---
108108

@@ -111,7 +111,7 @@ Using [packer.nvim](https://github.com/wbthomason/packer.nvim)
111111
```lua
112112
use {
113113
'tanvirtin/vgit.nvim', branch = 'v1.0.x',
114-
-- or , tag = 'v1.0.1',
114+
-- or , tag = 'v1.0.2',
115115
requires = { 'nvim-lua/plenary.nvim', 'nvim-tree/nvim-web-devicons' },
116116
-- Lazy loading on 'VimEnter' event is necessary.
117117
event = 'VimEnter',
@@ -124,7 +124,7 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim)
124124
```lua
125125
{
126126
'tanvirtin/vgit.nvim', branch = 'v1.0.x',
127-
-- or , tag = 'v1.0.1',
127+
-- or , tag = 'v1.0.2',
128128
dependencies = { 'nvim-lua/plenary.nvim', 'nvim-tree/nvim-web-devicons' },
129129
-- Lazy loading on 'VimEnter' event is necessary.
130130
event = 'VimEnter',

lua/vgit/features/screens/DiffScreen/init.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ local Window = require('vgit.core.Window')
66
local Buffer = require('vgit.core.Buffer')
77
local console = require('vgit.core.console')
88
local DiffView = require('vgit.ui.views.DiffView')
9+
local KeyHelpBarView = require('vgit.ui.views.KeyHelpBarView')
910
local Model = require('vgit.features.screens.DiffScreen.Model')
1011
local diff_preview_setting = require('vgit.settings.diff_preview')
11-
local KeymapHelpBarView = require('vgit.ui.views.KeymapHelpBarView')
1212

1313
local DiffScreen = Object:extend()
1414

@@ -46,20 +46,20 @@ end
4646

4747
function DiffScreen:create_app_bar_view(scene, model)
4848
if model:is_hunk() then return nil end
49-
return KeymapHelpBarView(scene, {
49+
return KeyHelpBarView(scene, {
5050
keymaps = function()
5151
local keymaps = diff_preview_setting:get('keymaps')
5252
if model:is_staged() then
5353
return {
54-
{ 'Unstage Buffer', keymaps['buffer_unstage'] },
55-
{ 'Unstage Hunk', keymaps['buffer_hunk_unstage'] },
54+
{ 'Unstage Buffer', keymaps['buffer_unstage'] },
55+
{ 'Unstage Hunk', keymaps['buffer_hunk_unstage'] },
5656
{ 'Switch to Staged View', keymaps['toggle_view'] },
5757
}
5858
end
5959
return {
60-
{ 'Stage Buffer', keymaps['buffer_stage'] },
61-
{ 'Stage Hunk', keymaps['buffer_hunk_stage'] },
62-
{ 'Reset Buffer', keymaps['reset'] },
60+
{ 'Stage Buffer', keymaps['buffer_stage'] },
61+
{ 'Stage Hunk', keymaps['buffer_hunk_stage'] },
62+
{ 'Reset Buffer', keymaps['reset'] },
6363
{ 'Switch to Unstage View', keymaps['toggle_view'] },
6464
}
6565
end,

lua/vgit/features/screens/ProjectCommitScreen/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local Scene = require('vgit.ui.Scene')
33
local Object = require('vgit.core.Object')
44
local console = require('vgit.core.console')
55
local SimpleView = require('vgit.ui.views.SimpleView')
6-
local KeymapHelpBarView = require('vgit.ui.views.KeyMapHelpBarView')
6+
local KeyHelpBarView = require('vgit.ui.views.KeyHelpBarView')
77
local Model = require('vgit.features.screens.ProjectCommitScreen.Model')
88
local project_commit_preview_setting = require('vgit.settings.project_commit_preview')
99

@@ -18,7 +18,7 @@ function ProjectCommitScreen:constructor(opts)
1818
name = 'Project Commit Screen',
1919
scene = scene,
2020
model = model,
21-
app_bar_view = KeymapHelpBarView(scene, {
21+
app_bar_view = KeyHelpBarView(scene, {
2222
keymaps = function()
2323
local keymaps = project_commit_preview_setting:get('keymaps')
2424
return { { 'Save Commit', keymaps['save'] } }

lua/vgit/features/screens/ProjectDiffScreen/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local Window = require('vgit.core.Window')
88
local console = require('vgit.core.console')
99
local DiffView = require('vgit.ui.views.DiffView')
1010
local StatusListView = require('vgit.ui.views.StatusListView')
11-
local KeymapHelpBarView = require('vgit.ui.views.KeymapHelpBarView')
11+
local KeyHelpBarView = require('vgit.ui.views.KeyHelpBarView')
1212
local Model = require('vgit.features.screens.ProjectDiffScreen.Model')
1313
local project_diff_preview_setting = require('vgit.settings.project_diff_preview')
1414

@@ -24,7 +24,7 @@ function ProjectDiffScreen:constructor(opts)
2424
name = 'Project Diff Screen',
2525
scene = scene,
2626
model = model,
27-
app_bar_view = KeymapHelpBarView(scene, {
27+
app_bar_view = KeyHelpBarView(scene, {
2828
keymaps = function()
2929
local keymaps = project_diff_preview_setting:get('keymaps')
3030
return {

lua/vgit/features/screens/ProjectStashScreen/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local Object = require('vgit.core.Object')
55
local console = require('vgit.core.console')
66
local DiffView = require('vgit.ui.views.DiffView')
77
local StatusListView = require('vgit.ui.views.StatusListView')
8-
local KeymapHelpBarView = require('vgit.ui.views.KeymapHelpBarView')
8+
local KeyHelpBarView = require('vgit.ui.views.KeyHelpBarView')
99
local Model = require('vgit.features.screens.ProjectStashScreen.Model')
1010
local project_stash_preview_setting = require('vgit.settings.project_stash_preview')
1111

@@ -21,7 +21,7 @@ function ProjectStashScreen:constructor(opts)
2121
name = 'Stash Screen',
2222
scene = scene,
2323
model = model,
24-
app_bar_view = KeymapHelpBarView(scene, {
24+
app_bar_view = KeyHelpBarView(scene, {
2525
keymaps = function()
2626
local keymaps = project_stash_preview_setting:get('keymaps')
2727
return {

lua/vgit/ui/views/KeyMapHelpBarView.lua renamed to lua/vgit/ui/views/KeyHelpBarView.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ local Object = require('vgit.core.Object')
22
local dimensions = require('vgit.ui.dimensions')
33
local AppBarComponent = require('vgit.ui.components.AppBarComponent')
44

5-
local KeymapHelpBarView = Object:extend()
5+
local KeyHelpBarView = Object:extend()
66

7-
function KeymapHelpBarView:constructor(scene, props, plot)
7+
function KeyHelpBarView:constructor(scene, props, plot)
88
return {
99
plot = plot,
1010
scene = scene,
1111
props = props,
1212
}
1313
end
1414

15-
function KeymapHelpBarView:define()
15+
function KeyHelpBarView:define()
1616
self.scene:set(
1717
'app_bar',
1818
AppBarComponent({
@@ -26,15 +26,15 @@ function KeymapHelpBarView:define()
2626
)
2727
end
2828

29-
function KeymapHelpBarView:get_components()
29+
function KeyHelpBarView:get_components()
3030
return { self.scene:get('app_bar') }
3131
end
3232

33-
function KeymapHelpBarView:mount(opts)
33+
function KeyHelpBarView:mount(opts)
3434
self.scene:get('app_bar'):mount(opts)
3535
end
3636

37-
function KeymapHelpBarView:render()
37+
function KeyHelpBarView:render()
3838
local keymaps = self.props.keymaps()
3939

4040
local text = ''
@@ -56,4 +56,4 @@ function KeymapHelpBarView:render()
5656
})
5757
end
5858

59-
return KeymapHelpBarView
59+
return KeyHelpBarView

0 commit comments

Comments
 (0)