Tuesday, March 14, 2017

Re: How to delete hidden .swap files (.sw?) if there are no changes?

Paul wrote:
> You could try https://github.com/chrisbra/Recover.vim
---
Thanks Paul, it looks like it might be "morphable" into what
I want. It currently has a bug where it defaults the action
to "Delete" when there are no diffs -- **whether or not**
the file is already open in another window (and just
not changed).

If that can be 'fixed', then either could have
an option for it to 'auto-choose' delete, or I can
patch that code...

But it needs to differentiate between "no-edits"+crash
vs. "no-edits"+currently being edited"

FWIW -- it's a bit "overkill" for what I wanted, as
it also provides option to 'diff', automatically if the
swap-version & disk version are different. I don't know
if it is needed, but it seems to use python -- maybe
only the diff needs that? The diff is handy, as
I usually do a diff anyway if I find changes, BUT
not detecting file already being edited limits its
usefulness.

(Submitted bug & rfe on github site -- hopefully author
is still around and gets notices... )

Thanks again!


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment