Compare commits

...

3 Commits

Author SHA1 Message Date
58268b258e add zk 2023-08-08 10:39:42 +02:00
10df563563 update 2023-08-08 10:39:16 +02:00
1753f210a8 change way to set EDITOR env var 2023-08-08 10:39:00 +02:00
4 changed files with 53 additions and 33 deletions

View File

@ -92,7 +92,8 @@ lvim.builtin.which_key.mappings["L"] = {
lvim.builtin.which_key.mappings["n"] = { lvim.builtin.which_key.mappings["n"] = {
name = "Notes", name = "Notes",
n = { "<CMD>ZkNew { title = vim.fn.input('Titre: ') }<CR>", "Créer une nouvelle note" }, n = { "<CMD>ZkNew { group = vim.fn.input('Groupe: '), title = vim.fn.input('Titre: ') }<CR>",
"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é" },
f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>", f = { "<CMD>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Rechercher note: ') } }<CR>",
@ -124,7 +125,6 @@ lvim.builtin.terminal.open_mapping = "<C-t>"
lvim.builtin.treesitter.ensure_installed = { lvim.builtin.treesitter.ensure_installed = {
"bash", "bash",
"c", "c",
"comment",
"java", "java",
"javascript", "javascript",
"json", "json",
@ -375,16 +375,6 @@ lvim.plugins = {
]]) ]])
end, end,
}, },
-- -- telescope-project
-- {
-- "nvim-telescope/telescope-project.nvim",
-- event = "BufWinEnter",
-- setup = function()
-- vim.cmd ([[
-- packadd telescope.nvim
-- ]])
-- end,
-- },
-- trouble -- trouble
{ {
'folke/trouble.nvim', 'folke/trouble.nvim',
@ -411,7 +401,7 @@ lvim.plugins = {
let g:vimtex_view_method = "zathura" let g:vimtex_view_method = "zathura"
let g:vimtex_quickfix_enabled = 0 let g:vimtex_quickfix_enabled = 0
let g:vimtex_compiler_method = 'latexmk' let g:vimtex_compiler_method = 'latexmk'
let g:vimtex_view_use_temp_files = 1 let g:vimtex_view_use_temp_files = 0
]]) ]])
end, end,
}, },

View File

@ -42,7 +42,7 @@ path=(~/bin ~/.local/bin $path[@])
# >>> environment variables >>> # >>> environment variables >>>
export BROWSER=qutebrowser export BROWSER=qutebrowser
export EDITOR=vim export EDITOR=$([[ $(command -v lvim) ]] && echo lvim || echo vim)
export TERMINAL=alacritty export TERMINAL=alacritty
# export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' # export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"

View File

@ -2,6 +2,10 @@
# #
# Uncomment the properties you want to customize. # Uncomment the properties you want to customize.
# NOTEBOOK SETTINGS
[notebook]
dir = "~/Notes"
# NOTE SETTINGS # NOTE SETTINGS
# #
# Defines the default options used when generating new notes. # Defines the default options used when generating new notes.
@ -12,23 +16,25 @@
language = "fr" language = "fr"
# The default title used for new note, if no `--title` flag is provided. # The default title used for new note, if no `--title` flag is provided.
#default-title = "Untitled" 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 = "{{format-date now}}-{{slug title}}"
# The file extension used for the notes. # The file extension used for the notes.
#extension = "md" extension = "md"
# Template used to generate a note's content. # Template used to generate a note's content.
# If not an absolute path, it is relative to .zk/templates/ # If not an absolute path, it is relative to .zk/templates/
template = "default.md" template = "default.md"
# Path globs ignored while indexing existing notes. # Path globs ignored while indexing existing notes.
#ignore = [ ignore = [
# "drafts/*", "drafts/*",
# "log.md" "log.md"
#] ]
# Configure random ID generation. # Configure random ID generation.
@ -38,13 +44,13 @@ template = "default.md"
# * alphanum: letters + numbers # * alphanum: letters + numbers
# * hex: hexadecimal, from a to f and 0 to 9 # * hex: hexadecimal, from a to f and 0 to 9
# * custom string: will use any character from the provided value # * custom string: will use any character from the provided value
#id-charset = "alphanum" id-charset = "alphanum"
# Length of the generated IDs. # Length of the generated IDs.
#id-length = 4 id-length = 4
# Letter case for the random IDs, among lower, upper or mixed. # Letter case for the random IDs, among lower, upper or mixed.
#id-case = "lower" id-case = "lower"
# EXTRA VARIABLES # EXTRA VARIABLES
@ -67,12 +73,17 @@ author = "Jeff Lance"
# the group. This can be useful to quickly declare a group by the name of the # the group. This can be useful to quickly declare a group by the name of the
# directory it applies to. # directory it applies to.
#[group."<NAME>"] [group."journal"]
#paths = ["<DIR1>", "<DIR2>"] paths = ["journal/daily"]
#[group."<NAME>".note] filename = "{{format-date now}}"
#filename = "{{format-date now}}" extension = "md"
#[group."<NAME>".extra] template = "daily.md"
#key = "value"
[group."travail"]
filename = "{{slug title}}_{{format-date now}}"
[group."wiki"]
filename = "{{format-date now}}_{{slug title}}"
# MARKDOWN SETTINGS # MARKDOWN SETTINGS
@ -113,7 +124,7 @@ pager = "less -FIRX"
# bat is a great tool to render Markdown document with syntax highlighting. # bat is a great tool to render Markdown document with syntax highlighting.
#https://github.com/sharkdp/bat #https://github.com/sharkdp/bat
# fzf-preview = "bat -p --color always {-1}" fzf-preview = "bat -p --color always {-1}"
# LSP # LSP
@ -151,7 +162,7 @@ dead-link = "error"
# Matches the notes created the last two weeks. For example: # Matches the notes created the last two weeks. For example:
# $ zk list recents --limit 15 # $ zk list recents --limit 15
# $ zk edit recents --interactive # $ zk edit recents --interactive
#recents = "--sort created- --created-after 'last two weeks'" recents = "--sort created- --created-after 'last two weeks'"
# COMMAND ALIASES # COMMAND ALIASES
@ -167,7 +178,14 @@ dead-link = "error"
# Here are a few aliases to get you started. # Here are a few aliases to get you started.
# Shortcut to a command. # Shortcut to a command.
ls = "zk list $@" l = "zk list $@"
c = "zk conf $@"
e = "zk edit $@"
el = "zk editlast $@"
h = "zk hist $@"
n = "zk new $@"
nt = 'zk new --title "$*"'
r = "zk recent $@"
# Default flags for an existing command. # Default flags for an existing command.
list = "zk list --quiet $@" list = "zk list --quiet $@"
@ -193,4 +211,13 @@ lucky = "zk list --quiet --format full --sort random --limit 1"
hist = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git log --patch --" hist = "zk list --format path --delimiter0 --quiet $@ | xargs -t -0 git log --patch --"
# Edit this configuration file. # Edit this configuration file.
conf = '$EDITOR "$XDG_CONFIG_HOME/.zk/config.toml"' conf = '$EDITOR "${HOME}/.config/zk/config.toml"'
# Create a new daily journal note.
jour = 'zk new -g journal --no-input "$ZK_NOTEBOOK_DIR/journal/daily"'
# Create a new work note.
trav = 'zk new -g travail -t "$*" "$ZK_NOTEBOOK_DIR/travail"'
# Create a new wiki note.
wiki = 'zk new -g wiki -t "$*" "$ZK_NOTEBOOK_DIR/wiki"'

View File

@ -0,0 +1,3 @@
# {{format-date now "long"}}
Qu'ai-je fait aujourd'hui ?