Home
Softono

Jot.lua

Open source Lua
34
Stars
1
Forks
0
Issues
2
Watchers
1 year
Last Commit

 About Jot.lua

Markdown note file per project

Platforms

Web Self-hosted

Languages

Lua

Links

Need Help Installing Jot.lua?

We provide expert installation service for this software. Our team will install, configure, and secure Jot.lua on your server. plans start at just $30.

jot.lua

Screenshot 2024-03-26 at 4 23 29 PM

A note file per project. When you have an idea, note, something to copy later, just open the window and write it down. The note will be persisted.

Features:

  • Togglable note per project in a markdown file.
  • Customizable jot window (Only for neovim 0.10+)

Installation

  • With lazy.nvim
{
  "letieu/jot.lua",
  dependencies = { "nvim-lua/plenary.nvim" }
}
  • With packer.nvim
use {
  'letieu/jot.lua',
  requires = {{'nvim-lua/plenary.nvim'}}
}

Usage

Open

require('jot').open()

Close use quit_key in config

Toggle

require('jot').toggle()

Map open to a key

vim.keymap.set("n", "<leader>fj", function() require("jot").open() end)

Custom window options when open, toggle

require('jot').toggle({
  relative = "editor",
  width = 100,
  height = 30,
  row = 5,
  col = 35,
})

Config

Default config

{
  quit_key = "q",
  notes_dir = vim.fn.stdpath("data") .. "/jot",
  win_opts = {
    split = "right",
    focusable = false,
  },
}

win_opts : neovim docs

Customize config to open in floating window (Only for neovim 0.10+)


{
  quit_key = "q",
  notes_dir = vim.fn.stdpath("data") .. "/jot",
  win_opts = {
    relative = "editor",
    width = 100,
    height = 30,
    row = 5,
    col = 35,
  },
}

Q&A

  • What differentiates jot.lua from flote.nvim?
    • flote.nvim open in a floating window, I want to open in a split window.
    • jot.lua can customize the window options. Can use floating window if you want.
    • jot.lua use plenary.nvim to handle file operations.
    • jot.lua no need setup call

Inspiration and Thanks