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
I recently came across sad and found it interesting and useful. sad is essentially an interactive sed tool that uses, by default, fzf --multi allowing the user to interactively choose which replacements to apply, with previews, before anything is actually done and to avoid making mistakes.
Having found sad useful I was wondering if there exists a similar toof for patches and/or diffs.
It would be nice if it showed on running it --dry-run like outcome on which hunks succeed and which fail, i.e. entries that fail colored red.
Unfortunately my Google-fu was not good enough to find any.
So I decided to ask here if anyone knows of a tool or script that allows to interactively choose from diff/patch which hunks to apply.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently came across sad and found it interesting and useful.
sad
is essentially an interactive sed tool that uses, by default,fzf --multi
allowing the user to interactively choose which replacements to apply, with previews, before anything is actually done and to avoid making mistakes.Having found
sad
useful I was wondering if there exists a similar toof for patches and/or diffs.It would be nice if it showed on running it
--dry-run
like outcome on which hunks succeed and which fail, i.e. entries that fail colored red.Unfortunately my Google-fu was not good enough to find any.
So I decided to ask here if anyone knows of a tool or script that allows to interactively choose from diff/patch which hunks to apply.
Beta Was this translation helpful? Give feedback.
All reactions