Giter Club home page Giter Club logo

snac_archived's Introduction

Project on hold, latest commit is not in working state

commits 3439da0d6eeb6664220c2a56c6ff7cee20a0b5f4 or 6d795972529fc3f7db596ce29ca2cf91ad32ec3b may work

Snac

snac is the snippet manager you, or your small Team, needs. Ever google the same thing multiple times a week, and then see your colleague also searching for the same piece of code? No more!

Now you can easily use snippets in any language (or in no language?!), with a simple table making use of Postgresql features, and a clean looking web frontend inspired by Colors of GitHub Copilot.

This is a rewrite in Go and VanillaJS from the Fullstack Kotlin version before. The Kotlin version is no longer being maintained but is accessible on the kotlin-version branch

contributors last update forks stars open issues


Screenshot

Installation

Download the distribution zip and create a config.yaml from the the config-template.yaml to your liking and start the server.

./snac

The sql code to create the table and the needed function dn trigger in the sql/. The table.sql file should be executed last.

NOTE: The sql files assume a user called snac.

Building

Clone this repo

git clone https://github.com/Sett17/snac.git

and run the go build command to build the binary.

go build .

Config

Currently, all items in the config-template.yaml are needed.

Explanations for each configuration key are given in the config-template.yaml file.

Frontend Usage

Shortcuts

Key Description Context
ctrl+s Saves the current snippet Everywhere
ctrl+enter Re-Highlights the Snippet (is also done automatically after editing) in Editor
tab Inserts 2 spaces in current cursor position in Editor

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

snac_archived's People

Contributors

sett17 avatar

Stargazers

 avatar

Watchers

 avatar

snac_archived's Issues

Wrong behaviour when cookie expires while site is open

e.g. the site is open for more than 24h and you want to create a new snippet. You write the snippet and click save, the saved message comes up but the new snippet is not shown annywhere, it is not actually saved.

A check needs to be implemented that you are still authenticated when a user is returning to the site.

Sidebar not updated

Sidebar should be updated, at least when the tags of the current snippets are changed

Search

search input field,
results should be visible between input and tags section (limited to some amount w/ scrolling)

search in type? of performance allows it

open tag height is wrong

precalculated height is wrong, due to style change

min-height: calc(X * (1em + 8px));

remove the +.4em

shortcut help

small question mark button and/or shortcut to show help modal with all shortcuts and context for them

make tags closable again

likely need to add another hidden radio input that is activated when a click is registered on already open tag

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.