cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.77k stars 176 forks source link

delete huge mistake #241

Closed delanym closed 2 years ago

delanym commented 2 years ago

Suppose I accidentally paste a huge wad of text and attempt to run as a command. Previously I would open the history file and delete it manually. How would I do this in mcfly?

cantino commented 2 years ago

Search for it in the McFly UI and press F2.

delanym commented 2 years ago

It appears I need to use the beginning string, which looks like "./mvnw Caused by" but the search doesn't match anything. Is there some mismatch between the length of a record and the search's ability to bring it up?

image

cantino commented 2 years ago

It should match anywhere in the string. Are you launching McFly with ctrl-r? That doesn't look like the McFly UI.

delanym commented 2 years ago

Yeah im confused. Mcfly replaces ctrl+r, but it doesn't replace the history file or accessing that through the up key - it provides an alternative history.

It still looks like it didn't include the above command. Is that because it failed?

cantino commented 2 years ago

That’s possible, perhaps there was an issue logging something so long. You’re correct that the Up arrow is still managed by the shell’s history file.

On Sat, Mar 5, 2022 at 2:36 AM Delany @.***> wrote:

Yeah im confused. Mcfly replaces ctrl+r, but it doesn't replace the history file or accessing that through the up key - it provides an alternative history.

It still looks like it didn't include the above command. Is that because it failed?

— Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/241#issuecomment-1059739665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUO66ERM3LAUJ2Z67WQZ3U6M2KTANCNFSM5P4Y4N4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>