Package: mkbak
mkbak.pymkbakis a commandline utility to painlessly create file backups.It interfaces withfzfas a menu for file selection, allowing you to
quickly select files.InstallationWith Pippip install --user -U mkbakWith PoetryDownload the repository:git clone https://github.com/sudo-julia/mkbakEnter the repocd mkbakInstall dependencies:poetry installRun mkbak:poetry run mkbakTo avoid typing this every time you want to run the program,
you can alias the above command with:alias mkbak='poetry run mkbak'.From SourceDownload the repository:git clone https://github.com/sudo-julia/mkbakEnter the repocd mkbakBuild the package:python3 setup.py sdist bdist_wheelInstall from the local buildpip install --user -U .Run mkbak:mkbakPlease note that running from a local build may not set up the entry point
correctly, resulting in:bash: command not found: mkbak. In this case, simply
runalias mkbak='python3 -m mkbak'. This sets upmkbakto be run as
a module whenmkbakis typed, which solves the entry point problem.
You can add thealiascommand to the bottom of your shell's configuration file
for it to be set automatically at your terminal's initialization.Usageusage: mkbak [-h] [-a] [--ansi] [--bind BIND] [-d] [-e] [--height HEIGHT] [-i] [--no_mouse] [--no_recursion]
             [--no_sort] [--padding PADDING] [-p PATH] [--preview PREVIEW] [--print_query] [--prompt PROMPT]
             [-q QUERY] [-u] [-v] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -d, --delete          iterate through '.bak' files to delete
  -q QUERY, --query QUERY
                        start the finder with the given query
  -u, --unbak           restore files to their most recent backup
  --version             print version information

  -a, --all             show hidden and 'dot' files
  --ansi                enable processing of ANSI color codes
  --bind BIND           custom keybindings. refer to fzf's manpage
  -e, --exact           exact matching
  --height HEIGHT       display fzf window with the given height
  -i, --ignore_case     ignore case distinction
  --no_mouse            disable mouse interaction
  --no_recursion        run mkbak without recursing through subdirectories
  --no_sort             don't sort the results
  --padding PADDING     padding inside the menu's border
  -p PATH, --path PATH  directory to iterate through (default '.')
  --preview PREVIEW     starts external process with current line as arg
  --print_query         print query as the first line
  --prompt PROMPT       input prompt (default: '> ')
  -v, --verbose         explain what is being doneExamplemkbak -vi --path "$folder" -q 'pdf$'will launch mkbak searching$folder,
query files ending in 'pdf', ignore case distinctions in file names and
print out any errors along with files successfully copiedRequirementsmkbak-iterfzffor the fzf interfacerichfor text formattingPython^3.7LinuxChangelogSeeCHANGELOG.mdBugsOpen an issue or PRTODOPackage for pypiDefine entry point so the program can be run asmkbakAdd all options to READMEGithub releasesMove argument parsing to a separate moduleMode to replace a regular file with its backupCreate documentationShell completionsCreditsThanks tojunegunnfor makingfzfThanks todahliafor makingiterfzf