fix: make NewFromSelection actually accept a range

remotes/origin/HEAD
Filipe Kiss 2023-05-17 12:11:44 +02:00
parent ea1318137a
commit 396aa5ae23
No known key found for this signature in database
GPG Key ID: 0BD3425F7E07DA42
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ if not vim.g.genghis_disable_commands then
local command = vim.api.nvim_create_user_command
local genghis = require("genghis")
command("NewFromSelection", function() genghis.moveSelectionToNewFile() end, {})
command("NewFromSelection", function() genghis.moveSelectionToNewFile() end, { range = true })
command("Duplicate", function() genghis.duplicateFile() end, {})
command("Rename", function() genghis.renameFile() end, {})
command("Trash", function() genghis.trashFile() end, {})