When I invoke diff
I get two ivy prompts.
The first one defaults to the current buffer, the second often to some kind of backup.
It is quite awkward to navigate from the backup path to any useful location,
so I was wondering if I could change that.
Is it from ivy? Or from diff? Can I use advice here?
Ideally the second prompt would default to the path of the buffer in another open window, or if there is none, default to the same location as the first.
I am using Doom, if that matters.
diff
, notivy
; specifically the functionfile-newest-backup
. FWIW, you can repeatedly typeM-n
(next-history-element
) to see other default file suggestions.diff
to use your preferred default instead offile-newest-backup
; or you could write a custom function with your preferred interactive spec that in turn callsdiff
non-interactively. You could also submit a feature request or patch upstream viaM-x report-emacs-bug
to makediff
's default prompt more customisable.M-n
has become a staple in my workflow now, thank you very much :)