1
1
local M = {}
2
2
3
- local ags_previewers = require (" advanced_git_search.fzf.previewers" )
4
- local ags_finders = require (" advanced_git_search.fzf.finders" )
5
- local ags_mappings = require (" advanced_git_search.fzf.mappings" )
6
- local picker_utils = require (" advanced_git_search.fzf.pickers.utils" )
3
+ local fzf_previewers = require (" advanced_git_search.fzf.previewers" )
4
+ local fzf_finders = require (" advanced_git_search.fzf.finders" )
5
+ local fzf_mappings = require (" advanced_git_search.fzf.mappings" )
6
+ local fzf_picker_utils = require (" advanced_git_search.fzf.pickers.utils" )
7
7
local global_picker = require (" advanced_git_search.global_picker" )
8
8
9
9
M .search_log_content = function ()
@@ -13,22 +13,22 @@ M.search_log_content = function()
13
13
exec_empty_query = false ,
14
14
func_async_callback = false ,
15
15
fzf_opts = {
16
- [" --preview" ] = ags_previewers .git_diff_content_previewer (),
16
+ [" --preview" ] = fzf_previewers .git_diff_content_previewer (),
17
17
},
18
18
fn_transform = function (x )
19
- return picker_utils .make_entry (x )
19
+ return fzf_picker_utils .make_entry (x )
20
20
end ,
21
21
actions = vim .tbl_extend (
22
22
" keep" ,
23
- ags_mappings .open_commit_in_brower (),
24
- ags_mappings .open_diff_buffer_with_selected_commit (bufnr ),
25
- ags_mappings .show_entire_commit (),
26
- ags_mappings .copy_commit_hash ()
23
+ fzf_mappings .open_commit_in_brower (),
24
+ fzf_mappings .open_diff_buffer_with_selected_commit (bufnr ),
25
+ fzf_mappings .show_entire_commit (),
26
+ fzf_mappings .copy_commit_hash ()
27
27
),
28
28
}
29
29
30
30
require (" fzf-lua" ).fzf_live (function (query )
31
- return ags_finders .git_log_content_finder (query , nil )
31
+ return fzf_finders .git_log_content_finder (query , nil )
32
32
end , opts )
33
33
end
34
34
@@ -40,22 +40,22 @@ M.search_log_content_file = function()
40
40
exec_empty_query = false ,
41
41
func_async_callback = false ,
42
42
fzf_opts = {
43
- [" --preview" ] = ags_previewers .git_diff_content_previewer (),
43
+ [" --preview" ] = fzf_previewers .git_diff_content_previewer (),
44
44
},
45
45
fn_transform = function (x )
46
- return picker_utils .make_entry (x )
46
+ return fzf_picker_utils .make_entry (x )
47
47
end ,
48
48
actions = vim .tbl_extend (
49
49
" keep" ,
50
- ags_mappings .open_commit_in_brower (),
51
- ags_mappings .open_diff_buffer_with_selected_commit (bufnr ),
52
- ags_mappings .show_entire_commit (),
53
- ags_mappings .copy_commit_hash ()
50
+ fzf_mappings .open_commit_in_brower (),
51
+ fzf_mappings .open_diff_buffer_with_selected_commit (bufnr ),
52
+ fzf_mappings .show_entire_commit (),
53
+ fzf_mappings .copy_commit_hash ()
54
54
),
55
55
}
56
56
57
57
require (" fzf-lua" ).fzf_live (function (query )
58
- return ags_finders .git_log_content_finder (query , bufnr )
58
+ return fzf_finders .git_log_content_finder (query , bufnr )
59
59
end , opts )
60
60
end
61
61
@@ -69,22 +69,22 @@ M.diff_commit_line = function()
69
69
exec_empty_query = true ,
70
70
func_async_callback = false ,
71
71
fzf_opts = {
72
- [" --preview" ] = ags_previewers .git_diff_file_previewer (bufnr ),
72
+ [" --preview" ] = fzf_previewers .git_diff_file_previewer (bufnr ),
73
73
},
74
74
fn_transform = function (x )
75
- return picker_utils .make_entry (x )
75
+ return fzf_picker_utils .make_entry (x )
76
76
end ,
77
77
actions = vim .tbl_extend (
78
78
" keep" ,
79
- ags_mappings .open_commit_in_brower (),
80
- ags_mappings .open_diff_buffer_with_selected_commit (bufnr ),
81
- ags_mappings .show_entire_commit (),
82
- ags_mappings .copy_commit_hash ()
79
+ fzf_mappings .open_commit_in_brower (),
80
+ fzf_mappings .open_diff_buffer_with_selected_commit (bufnr ),
81
+ fzf_mappings .show_entire_commit (),
82
+ fzf_mappings .copy_commit_hash ()
83
83
),
84
84
}
85
85
86
86
require (" fzf-lua" ).fzf_live (function (query )
87
- return ags_finders .git_log_location_finder (query , bufnr , s_start , s_end )
87
+ return fzf_finders .git_log_location_finder (query , bufnr , s_start , s_end )
88
88
end , opts )
89
89
end
90
90
@@ -96,22 +96,22 @@ M.diff_commit_file = function()
96
96
exec_empty_query = true ,
97
97
func_async_callback = false ,
98
98
fzf_opts = {
99
- [" --preview" ] = ags_previewers .git_diff_file_previewer (bufnr ),
99
+ [" --preview" ] = fzf_previewers .git_diff_file_previewer (bufnr ),
100
100
},
101
101
fn_transform = function (x )
102
- return picker_utils .make_entry (x )
102
+ return fzf_picker_utils .make_entry (x )
103
103
end ,
104
104
actions = vim .tbl_extend (
105
105
" keep" ,
106
- ags_mappings .open_commit_in_brower (),
107
- ags_mappings .open_diff_buffer_with_selected_commit (bufnr ),
108
- ags_mappings .show_entire_commit (),
109
- ags_mappings .copy_commit_hash ()
106
+ fzf_mappings .open_commit_in_brower (),
107
+ fzf_mappings .open_diff_buffer_with_selected_commit (bufnr ),
108
+ fzf_mappings .show_entire_commit (),
109
+ fzf_mappings .copy_commit_hash ()
110
110
),
111
111
}
112
112
113
113
require (" fzf-lua" ).fzf_live (function (query )
114
- return ags_finders .git_log_file_finder (query , bufnr )
114
+ return fzf_finders .git_log_file_finder (query , bufnr )
115
115
end , opts )
116
116
end
117
117
@@ -122,15 +122,15 @@ M.diff_branch_file = function()
122
122
prompt = " Branch> " ,
123
123
func_async_callback = false ,
124
124
fzf_opts = {
125
- [" --preview" ] = ags_previewers .git_diff_branch_file_previewer (
125
+ [" --preview" ] = fzf_previewers .git_diff_branch_file_previewer (
126
126
bufnr
127
127
),
128
128
},
129
129
actions = vim .tbl_extend (
130
130
" keep" ,
131
- ags_mappings .open_commit_in_brower (),
132
- ags_mappings .open_diff_buffer_with_selected_commit (bufnr ),
133
- ags_mappings .copy_commit_hash ()
131
+ fzf_mappings .open_commit_in_brower (),
132
+ fzf_mappings .open_diff_buffer_with_selected_commit (bufnr ),
133
+ fzf_mappings .copy_commit_hash ()
134
134
),
135
135
}
136
136
@@ -148,7 +148,7 @@ M.changed_on_branch = function()
148
148
prompt = " File> " ,
149
149
func_async_callback = false ,
150
150
fzf_opts = {
151
- [" --preview" ] = ags_previewers .git_diff_base_branch (),
151
+ [" --preview" ] = fzf_previewers .git_diff_base_branch (),
152
152
},
153
153
}
154
154
@@ -165,7 +165,7 @@ M.checkout_reflog = function()
165
165
local opts = {
166
166
func_async_callback = false ,
167
167
fn_transform = function (x )
168
- return picker_utils .make_reflog_entry (x )
168
+ return fzf_picker_utils .make_reflog_entry (x )
169
169
end ,
170
170
actions = {
171
171
[" default" ] = function (selected )
0 commit comments