10

I'm searching for code snippets manager for Windows which fulfills these criteria

Required features

  • searching through snippets, displaying list of search results
  • tree organization of snippets (at least with one sublevel - i.e. not just a plain list)

Important features

  • mature design with keyboard on mind – having enough keyboard acceleratos and shortcuts, not requiring mouse for searching, editing, pressing common buttons etc.
  • possible access to snippets from outside the tool (i.e. snippets are stored in files or some standard database so I can 'own' the snippets even if application is unavailable or fails)
  • free (best if open source), but I'm also open to commercial ones under some €30 (no subscription)

Other features (syntax highlighting, online account, ...) are welcome but they don't matter too much to me. I will downvote applications not working at least partially well with keyboard.

0

Git Repository In WSL

The Windows Subsystem for Linux is very handy for managing all types of source code. It allows you to easily version control, distribute, and backup your snippets with git. Plus it places a lot of helpful tools at your finger tips (eg: grep, find, sed, vim).

Setup:

  • Install a subsystem (or use a bash emulator)
  • Make a snippet folder
    • Use git if online account/backups are useful

Features:

  • Organize snippets in whatever folder structure you choose
  • Search with Bash commands (eg: grep 'var x = 7;' . -R)
  • Very keyboard friendly (eg: aliases)
  • Use any editor you want (eg: vim, emacs, nano)
  • Accessible outside WSL (eg: use C drive /mnt/c/Users/miroxlav/snippets)
  • Easily send to clipboard (eg: cat snippet.java | clip.exe)
  • Run snippets (eg: python snippet.py)
  • Free
  • Thanks for the answer. Interesting idea, will think about the git concept. But from your answer, it does not appear to be sufficiently interactive and convenient for standard UI users. I am rather a developer (Visual Studio, SSMS, Eclipse, Notepad++) than a sysOps worker, so grep, find, sed, vim is not something I would prefer to use daily. My normal programming almost never involves a need of entering the command line. – miroxlav Jul 17 at 9:35
  • For a UI-friendly solution, you could use a git UI (eg: SourceTree, Git Kraken) with your favorite editor (eg: Notepad++, Sublime) with its file navigation system. – NonlinearFruit Jul 17 at 14:40
  • Yes, git is not an issue. It basically nicely covers a versioning part, maybe a sync and a backup. But the rest (quick search, smart insertion, good keyboard support) may not be so practical when performed from command line (grep, find, sed, vim) instead of tool inside an IDE. – miroxlav Jul 17 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.