Use tilde expansion when running save-as command

This commit is contained in:
Francesco Abbate
2021-02-16 22:54:00 +01:00
parent 1decf67b64
commit 6369a7f760
3 changed files with 16 additions and 13 deletions
+4 -2
View File
@@ -301,8 +301,10 @@ local commands = {
core.command_view:set_text(doc().filename)
end
core.command_view:enter("Save As", function(filename)
save(filename)
end, common.path_suggest)
save(common.home_expand(filename))
end, function (text)
return common.home_encode_list(common.path_suggest(common.home_expand(text)))
end)
end,
["doc:save"] = function()