Coder Social home page Coder Social logo

cacher-cli's People

Contributors

jookyboi avatar rjiang-bb 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  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  avatar  avatar  avatar  avatar  avatar  avatar

cacher-cli's Issues

Feature request: Import notes from json

I would really like to import the batch of snippets from the json file I have exported from GistBox.
If there were any API documentation I could do it myself via a self-written script probably.
Yet, as there is now this CLI tool for cacher.io in the making, maybe it could implement such import feature.

Cacher Insert from CLI

Has there been any desire to insert an existing snippet (how would search occur) from CLI?

I am thinking something like:

> cacher snippets:insert --name filename.txt --labels bash,???

I guess I could always use gist, but I am so used to using Cacher in my workflow (usually use it from the VSCode extension) so it would be swell if it were available on the CLI

In my case, I dont use VSCode for PHP work (I prefer PHPStorm, but there is no plugin)

Update README Instructions

Noticed in the README instructions the terminal install is out of date. It should be npm install -g @cacherapp/cli instead of npm install -g @cacher/cli

Support Viewing Snippets

From the documentation, it looks like you can only add snippets to Cacher.

Any chance of viewing snippets?

Something like:

cacher snippet view:{snippet title}, where {snippet title} matches or fuzzy matches the name of the snippet.

The ergonomics of this aren't super simple, but even dumping the snippet to stdout would be useful because then a user can pipe that into pbcopy. I'm surprised this issue hasn't been opened already.

Actually quiet output with --quiet

First, just wanna say, I love this tool. Thanks!

One issue Im having is that sometimes I create large snippets, but I dont want the output to blast my terminal. The --quiet option hides the "View your snippet..." messages, but it doesnt hide the much louder "Snippet file content read from ...: " messages.

It seems to me that --quiet should truly quiet the output - maybe as far as only showing "Snippet successfully created: <title>" and nothing else. The current behavior could be maintained by another flag, something more specific like --suppress-links or something better. Even better, maybe the granularity of the logging could also be configured with ~/.cacher.storage.json, or another config file, if that one is too low-level.

Thoughts? Im happy to submit a PR for any of the aforementioned functionality, but I first want to make sure my ideas make sense.

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.