|
|
@ -28,7 +28,8 @@ function FzfWin.save_query(key)
|
|
|
|
-- remove '*' from the start of the line & prompt
|
|
|
|
-- remove '*' from the start of the line & prompt
|
|
|
|
local query = lines[1]:gsub("^%*+", "")
|
|
|
|
local query = lines[1]:gsub("^%*+", "")
|
|
|
|
:gsub("^"..utils.lua_escape(self.prompt:match("[^%*]+")), "")
|
|
|
|
:gsub("^"..utils.lua_escape(self.prompt:match("[^%*]+")), "")
|
|
|
|
:match("[^<]+")
|
|
|
|
-- remove '--info=inline'
|
|
|
|
|
|
|
|
query = query and query:gsub("<%s%d+/%d+.*$", "")
|
|
|
|
-- trim whitespaces at the end
|
|
|
|
-- trim whitespaces at the end
|
|
|
|
query = query and query:gsub("%s*$", "")
|
|
|
|
query = query and query:gsub("%s*$", "")
|
|
|
|
if self.fn_save_query then
|
|
|
|
if self.fn_save_query then
|
|
|
|