RyanGreenup / cadmus

Shell Scripts to Facilitate Effective Note Taking
163 stars 7 forks source link

Fuzzy Commands might be nice #10

Open RyanGreenup opened 4 years ago

RyanGreenup commented 4 years ago

So for example:

echo "
cadmus find
cadmus search
cadmus tags
cadmus tags create
cadmus tags filter
cadmus tools mount
cadmus export
cadmus convert
cadmus misc
cadmus publish
cadmus preview
cadmus help" > /tmp/mycommands

and then

eval $(cat /tmp/mycommands | sk --height 40%)

This could be tied to something like cadmus misc fuzzy and users could alias it to something like caz, see for example this Gif:

fuzzy

danimateo commented 4 years ago

Another option would be autocomplete scripts for zsh/fish/bash. That would be nice and better in my opinion.

RyanGreenup commented 4 years ago

Yeah I agree, I haven't done that before that's why I played with this approach.

Did you want to have a go at that?

danimateo commented 4 years ago

I'll try and make it for zsh and bash at least, haven't used fish but I'll have a look.

RyanGreenup commented 4 years ago

If you can do bash and zsh I'll figure out fish, just gotta read up on it.