-
-
Notifications
You must be signed in to change notification settings - Fork 626
Add cut,copy and paste functionality. #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cut,copy and paste functionality. #52
Conversation
85850dd
to
9b20fcb
Compare
thanks :) I'll review this PR in depth later but it looks already pretty good imo. |
I think handling of existing files on copy/move needs to be handled. Now it will just throw an error, but I guess it should prompt for override/cancel. Will try to add it. Edit: Prompt added. |
dd511d0
to
86ff3b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work.
I wonder if you could add some kind of popup information or buffer list that would show information about the state of the clipboard ? This could also be done in another PR.
lua/lib/fs.lua
Outdated
if not success then | ||
api.nvim_err_writeln('Could not '..action_type..' '..entry.absolute_path..' - '..msg) | ||
end | ||
::continue:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goto is not available for some distributions of neovim (as neovim uses lua 5.1 where goto is not available). You could leave it for now as i still have some piece of code with goto
s but this issue will need to be addressed in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the logic to not use continue.
Yeah I can add something. Maybe echo will be sufficient? |
a command would be more appropriate. Echo should be enough indeed |
I added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! Thanks :)
…paste Add cut,copy and paste functionality.
This PR adds cut, copy and paste functionality that I mentioned in issue #51
Note that I don't have much experience with Lua, so do as detailed review as possible.