-- deactivated by user if vim.g.genghis_disable_commands then return end local command = vim.api.nvim_create_user_command local genghis = require("genghis") 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, {}) command("Move", function() genghis.moveAndRenameFile() end, {}) command("MoveToFolderInCwd", function() genghis.moveToFolderInCwd() end, {}) command("CopyFilename", function() genghis.copyFilename() end, {}) command("CopyFilepath", function() genghis.copyFilepath() end, {}) command("CopyFilepathWithTilde", function() genghis.copyFilepathWithTilde() end, {}) command("CopyRelativePath", function() genghis.copyRelativePath() end, {}) command("CopyDirectoryPath", function() genghis.copyDirectoryPath() end, {}) command("CopyRelativeDirectoryPath", function() genghis.copyRelativeDirectoryPath() end, {}) command("Chmodx", function() genghis.chmodx() end, {}) command("New", function() genghis.createNewFile() end, {})