Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pet 2 Intelli-Shell Converter #10

Open
s3rgeym opened this issue Aug 23, 2023 · 3 comments
Open

Pet 2 Intelli-Shell Converter #10

s3rgeym opened this issue Aug 23, 2023 · 3 comments

Comments

@s3rgeym
Copy link

s3rgeym commented Aug 23, 2023

~   
❯ yay -Qo tomlq                              
/usr/bin/tomlq is owned by yq 3.2.2-2
                                                                                                                                                                                                                  
~   
❯ tomlq -r '.snippets[] | .command |= gsub("<(?<param>[^>]+)>"; "{{ \(.param) }}") | .command + " ## " + .description' ~/.config/pet/snippet.toml > commands.txt
                                                                                                                                                                                                                  
~   
❯ intelli-shell import commands.txt              
 -> Imported 1271 new commands
  • I miss fuzzy search.
  • I want full-text edit.
  • I needed to run a strace to find out where the commands are stored (~/.local/share/intelli-shell/storage.db3).

Thnx

@nkh
Copy link

nkh commented Aug 23, 2023

I also had to search for where the commands are stored

tealdeer has a nice se of option you may want to emulate

@s3rgeym
Copy link
Author

s3rgeym commented Aug 23, 2023

I also had to search for where the commands are stored

tealdeer has a nice se of option you may want to emulate

Do you know good alternative to pet?

@nkh
Copy link

nkh commented Aug 23, 2023

@s3rgeym I don't use pet; intelli-shell is one alternative.

I'm writing my own right now, for the fun of it, because I want to integrate multiple source and I too want a full editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants