update
This commit is contained in:
parent
4a3c4dac21
commit
9a3eee6938
@ -99,9 +99,11 @@ lvim.builtin.which_key.mappings["L"] = {
|
|||||||
lvim.builtin.which_key.mappings["Lve"] = lvim.builtin.which_key.mappings["Lvc"]
|
lvim.builtin.which_key.mappings["Lve"] = lvim.builtin.which_key.mappings["Lvc"]
|
||||||
lvim.builtin.which_key.mappings["Lvc"] = {}
|
lvim.builtin.which_key.mappings["Lvc"] = {}
|
||||||
|
|
||||||
lvim.builtin.which_key.mappings["n"] = {
|
lvim.builtin.which_key.mappings["n"] = { "<CMD>AdvancedNewFile<CR>", "Create a new file"}
|
||||||
|
lvim.builtin.which_key.mappings["N"] = {
|
||||||
name = " Notes",
|
name = " Notes",
|
||||||
n = { "<CMD>ZkNew { dir = vim.fn.input('Groupe: '), title = vim.fn.input('Titre: ') }<CR>",
|
c = { "<CMD>edit /home/jeff/.config/zk/config.toml<CR>", "Edit config.toml" },
|
||||||
|
n = { "<CMD>ZkNew { dir = vim.fn.input('Groupe: '), title = vim.fn.input('Titre: '), date = 'now' }<CR>",
|
||||||
"Créer une nouvelle note" },
|
"Créer une nouvelle note" },
|
||||||
o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note" },
|
o = { "<CMD>ZkNotes { sort = { 'modified' } }<CR>", "Ouvrir une note" },
|
||||||
O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" },
|
O = { "<CMD>ZkTags<CR>", "Ouvrir les notes avec le tag sélectionné" },
|
||||||
@ -226,6 +228,10 @@ lvim.plugins = {
|
|||||||
]])
|
]])
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
-- new file plugin
|
||||||
|
{
|
||||||
|
'Mohammed-Taher/AdvancedNewFile.nvim',
|
||||||
|
},
|
||||||
-- asyncrun
|
-- asyncrun
|
||||||
{
|
{
|
||||||
"skywind3000/asyncrun.vim",
|
"skywind3000/asyncrun.vim",
|
||||||
|
@ -20,7 +20,7 @@ default-title = "Untitled"
|
|||||||
|
|
||||||
# Template used to generate a note's filename, without extension.
|
# Template used to generate a note's filename, without extension.
|
||||||
#filename = "{{id}}"
|
#filename = "{{id}}"
|
||||||
filename = "{{id}}-{{slug title}}"
|
filename = "{{slug title}}"
|
||||||
# filename = "{{format-date now}}-{{slug title}}"
|
# filename = "{{format-date now}}-{{slug title}}"
|
||||||
|
|
||||||
# The file extension used for the notes.
|
# The file extension used for the notes.
|
||||||
@ -58,7 +58,9 @@ id-case = "lower"
|
|||||||
# A dictionary of variables you can use for any custom values when generating
|
# A dictionary of variables you can use for any custom values when generating
|
||||||
# new notes. They are accessible in templates with {{extra.<key>}}
|
# new notes. They are accessible in templates with {{extra.<key>}}
|
||||||
[extra]
|
[extra]
|
||||||
|
|
||||||
author = "Jeff Lance"
|
author = "Jeff Lance"
|
||||||
|
mail = "email@jefflance.me"
|
||||||
|
|
||||||
|
|
||||||
# GROUP OVERRIDES
|
# GROUP OVERRIDES
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: {{title}}
|
||||||
|
date: {{format-date now "short"}}
|
||||||
|
author: {{extra.author}}
|
||||||
|
mail: {{extra.mail}}
|
||||||
|
tags: #{{dir}}#
|
||||||
|
---
|
||||||
|
|
||||||
# {{title}}
|
# {{title}}
|
||||||
|
|
||||||
{{content}}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user