feat: file browser & refresh interface (#290)

and more picker api stuff for sunjon. refresh is implemented for file_browser and git_status
This commit is contained in:
Simon Hauser
2021-02-23 22:10:19 +01:00
committed by GitHub
parent 0a32b47f20
commit 4dd35ef0e1
8 changed files with 186 additions and 27 deletions

View File

@@ -54,11 +54,11 @@ function config.set_defaults(defaults)
set("borderchars", { '', '', '', '', '', '', '', ''})
set("get_status_text", function(self)
return string.format(
"%s / %s",
(self.stats.processed or 0) - (self.stats.filtered or 0),
self.stats.processed or 0
)
local xx = (self.stats.processed or 0) - (self.stats.filtered or 0)
local yy = self.stats.processed or 0
if xx == 0 and yy == 0 then return "" end
return string.format("%s / %s", xx, yy)
end)
-- Builtin configuration