lemoony / snipkit Goto Github PK
View Code? Open in Web Editor NEWSnippet CLI manager for quickly accessing shell snippets without leaving the terminal.
License: Apache License 2.0
Snippet CLI manager for quickly accessing shell snippets without leaving the terminal.
License: Apache License 2.0
Because goreleaser
is in use here this shouldn't be that difficult:
https://goreleaser.com/customization/chocolatey/
If a PR is welcome I can try to implement this.
Hi!
I noticed that when I try to edit my config file via:
snipkit config edit
I see that it's trying to open the file with "mvim" rather than my default editor (for example I have vim installed and not mvim)
Error:
failed to open editor: mvim /Users/xxxxxxxx/Library/Application Support/snipkit/config.yaml: exec: "mvim": executable file not found in $PATH
Would it be possible to use the default text editor of the system? Super repo btw!
Hi there,
A coworker of mine wanted a command flag to show the debug information before like the command is run. He added it to pet, but looks like pet development stalled: knqyf263/pet#142
Any chance this could be added to snipkit? Low priority of course.
Thanks.
- go install github.com/lemoony/snipkit@latest
go: github.com/lemoony/snipkit@latest (in github.com/lemoony/[email protected]):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
- go version
- go version go1.19.3 linux/amd64
Hey there, for some reason I can't type the k and q keys on my terminal. K is not registering and Q quits the program. Any ideas?
Going from snipkit exec
to actually having the command executing has too many flows, and still doesn't put the command in the terminal input and history.
Isn't it better to change so so the command is inlined into the terminal window and just requires to user to press enter. That way it gets stored in history and the redundant confirmations are removed. Pressing enter is the confirmation.
Hey @lemoony, I enjoy snipkit
a lot since this is a great aggregator of snippets.
I was wondering if it is part of the scope of this project to have the ability to expose available snippets via JSON in addition to the TUI.
If we can access all the snippets as a JSON, we can leverage snipkit
and use this info for various GUI/front ends.
For example, I would like to have an Alfred workflow or a Raycast extension to act as the front end.
The following config will return all snipptes for SnippetsLab if there is not at least one snippet with tag foo
:
manager:
snippetsLab:
includeTags: ["foo"]
The expected behavior would be to return no snippets at all since none meet the criteria.
Pet added multiple parameters in a later version (see knqyf263/pet#290). Would be awesome if snipkit could add support for that. Currently, it just shows all the parameters as one line.
Hi, thanks for this great manager!
I've managed to sync all my snippets from snippetslab successfully. is it possible to fzf the command (not only the snippet name)?
I'm using fish shell, what I'm trying to achieve is basically this https://github.com/aluxian/fish-pet with snipkit.
when invoking ctrl -s I can search my snippets using fzf.
Appreciate any help,
Benny
When I run snipkit 1.3.1 on my intel mac (running Mac os 12.6), I seem to be getting this error:
runtime error: invalid memory address or nil pointer dereference
When I run 1.2.0 though, I don't see any errors. Any suggestions on how I can try to debug this further? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.