cantino / mcfly

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

Does not find command with a sub-command #97

Open screendriver opened 4 years ago

screendriver commented 4 years ago

I don't know how I should write the issue title but if you have something like this in your history

$ foo bar baz

and you open McFly and type in foo baz it doesn't find the entry. It only finds it when I enter foo bar. Is this related to #74 ?

cantino commented 4 years ago

Hey Christian, you’re correct, McFly doesn’t currently do tokenization like that. You can add a % between words though: foo%baz

On Sun, Aug 16, 2020 at 11:07 PM Christian Rackerseder < notifications@github.com> wrote:

I don't know how I should write the issue title but if you have something like this in your history

$ foo bar baz

and you open McFly and type in foo baz it doesn't find the entry. It only finds it when I enter foo bar. Is this related to #74 https://github.com/cantino/mcfly/issues/74 ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/97, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUO6YNQPUL2X4IERCNAY3SBDCI5ANCNFSM4QBI7G5A .

screendriver commented 4 years ago

Ah! tokenization was the word I was looking for 😉

Then I will do a %. Are there any plans to do that by default?

cantino commented 4 years ago

Not currently, but I'd gladly take pull requests if someone wants to tackle it :)