Skip to content

Commit

Permalink
Merge pull request #4 from Cretezy/patch-1
Browse files Browse the repository at this point in the history
Add __locations_input and entry_maker
  • Loading branch information
zschreur authored May 9, 2024
2 parents 5ba7e0f + 2f1dd57 commit 84b45d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/jj/files.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local finders = require("telescope.finders")
local pickers = require("telescope.pickers")
local conf = require("telescope.config").values
local make_entry = require("telescope.make_entry")
local utils = require("jj.utils")

return function(opts)
Expand All @@ -10,8 +11,10 @@ return function(opts)
pickers
.new(opts, {
prompt_title = "Jujutsu Files",
__locations_input = true,
finder = finders.new_table({
results = utils.get_os_command_output(cmd),
results = utils.get_os_command_output(cmd),
entry_maker = opts.entry_maker or make_entry.gen_from_file(opts),
}),
previewer = conf.file_previewer(opts),
sorter = conf.file_sorter(opts),
Expand Down

0 comments on commit 84b45d5

Please sign in to comment.