Coder Social home page Coder Social logo

neuron-kak's Introduction

neuron-kak

IMPORTANT NOTE: This project, much like the neuron project itself, has been replaced by emanote-kak. The good news is that if you don't want to switch from neuron to emanote, emanote-kak can help you with your neuron repository as well. Please check the link for more info.

This repository contains useful commands for interacting with neuron command line tool.

Requirements

You need to have neuron installed.

Installing and configuring

The recommended approach is to use plug.kak for installing this plugin.

The snippet below shows how to install the plugin and also contains the recommended configuration (AKA how I personally use it).

plug "MilanVasko/neuron-kak" config %{
	# the following is a recommended configuration

	declare-user-mode neuron
	map global neuron n -docstring "create new neuron note with random ID" ": neuron-new<ret>"
	map global neuron N -docstring "create new neuron note"                ": neuron-new "
	map global neuron s -docstring "search titles and open zettel"         ": neuron-search-and-open<ret>"
	map global neuron S -docstring "search all and open zettel"            ": neuron-search-and-open -a<ret>"
	map global neuron i -docstring "search titles and insert zettel ID"    ": neuron-search-and-insert<ret>"
	map global neuron I -docstring "search all and insert zettel ID"       ": neuron-search-and-insert -a<ret>"
}

Functionality

The following commands are provided:

  • neuron-new - creates a new zettel (note)
  • neuron-search-and-open - searches for zettels interactively
  • neuron-search-and-insert - inserts the zettel ID of found zettel into the document

More commands may come in the future if I get ideas for new ones - all of the existing ones have their origins in my personal need. For now, these should be enough to make the most common tasks easier.

Contributing

If you'd like to contribute, please do! There are no hard rules to follow, just create an issue or a pull request and I'll try to get back to you (no promises though).

neuron-kak's People

Contributors

milanvasko avatar

Stargazers

 avatar

Watchers

 avatar  avatar

neuron-kak's Issues

Handle existing files when running neuron-new

If I want to create a named note and such a note already exists, an new file with an empty name is created.

Instead, we should either:

  • open the existing note
  • show an error and do nothing

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.