Coder Social home page Coder Social logo

lemoony / snipkit Goto Github PK

View Code? Open in Web Editor NEW
73.0 1.0 4.0 5.21 MB

Snippet CLI manager for quickly accessing shell snippets without leaving the terminal.

License: Apache License 2.0

Makefile 0.65% Go 99.35%
go snippets macos command-line standalone snippets-manager developer-tools shell developer-tool productivity

snipkit's People

Contributors

dependabot[bot] avatar enlewof avatar lemoony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

snipkit's Issues

Default text editor seems to be "mvim"

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!

Show command flag

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 failing to install

- 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

Command should be inlined so it can be confirmed and stored in histfile.

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.

image
image

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.

Feature Request: Expose Snippets Via JSON

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.

fzf in snippet and command?

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

Nil pointer error with snipkit 1.3.1 and 1.3.0, not 1.2.0

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.