You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for your interest and sorry for the delay, in the end I decided to take a few days off of programming over the holidays.
I am not 100-percent sure I understand the request.
Would this mean dragging with the mouse? To some file manager? Or to another vimiv instance?
This would be a simple path completion? In this case I can only think of a bit of a dirty hack as the actual completion models are currently not exposed via the api. Using the code in vimiv.completions which could break / change at any time as it is considered internal we would have something along:
importosimportshutilfromvimivimportapifromvimiv.completionimportcompletionmodels@api.commands.register()defcopy_marked(target: str):
"""Copy all marked images to target."""target=os.path.abspath(os.path.expanduser(target))
ifnotos.path.isdir(target):
raiseapi.commands.CommandError("target must be a directory")
forsrcinapi.mark.paths:
shutil.copy(src, target)
api.mark.mark_clear()
definit(*args, **kwargs):
completionmodels.PathModel("copy-marked")
As a follow up to #366 (from which I will copy the awesome custom command), I think two things would make
vimiv
easier to use for moving stuff around:copy_marked
argument?The text was updated successfully, but these errors were encountered: