Skip to content
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

Use mv when applicable #16

Open
abaldwin88 opened this issue Aug 30, 2017 · 5 comments
Open

Use mv when applicable #16

abaldwin88 opened this issue Aug 30, 2017 · 5 comments

Comments

@abaldwin88
Copy link
Owner

This...

roamer-trash-copy /Users/abaldwin/Desktop/bleh/meh.txt
cp /Users/abaldwin/Desktop/bleh/meh.txt /Users/abaldwin/Desktop/bleh/argh.txt
rm /Users/abaldwin/Desktop/bleh/meh.txt

Should instead be this...

roamer-trash-copy /Users/abaldwin/Desktop/bleh/meh.txt
mv /Users/abaldwin/Desktop/bleh/meh.txt /Users/abaldwin/Desktop/bleh/argh.txt
@alex-bender
Copy link
Contributor

Hi @abaldwin88, could you please describe little bit the reason what command roamer-trash-copy exists for?
I want to pick up this issue.

@abaldwin88
Copy link
Owner Author

It does two things:

  • It copies an entry (document or folder) into the trash directory. Default directory is here: ~/.roamer-data/trash.
  • It saves the trash entry in the SQLite db

This is done so that users can delete/overwrite files but still paste it in later sessions. In short it makes cut/paste operations work.

@alex-bender
Copy link
Contributor

Aha, I see, thanks.

@alex-bender
Copy link
Contributor

alex-bender commented Oct 6, 2017

What do you think about using hard links instead of copying moving files?

Maybe even copying.

@abaldwin88
Copy link
Owner Author

abaldwin88 commented Oct 6, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants