From 247a150fe7056ec41397d0186d3a2b8e420899bd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 23 Oct 2023 22:55:13 +0200 Subject: added support for pull+push status of remote --- config/essentials/zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/essentials') diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 3f2d7f4..76ff87f 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -115,9 +115,9 @@ RPROMPT='%F{blue}$(parse_git_remote)%f%F{red}$(parse_git_status)%f%F{green}$(par setopt prompt_subst parse_git_remote() { - git branch -v 2>/dev/null | - grep '^\*' | cut -f2 -d'[' | cut -f1 -d' ' | - sed 's/ahead/↑ /;s/behind/↓ /;s/\*//' + git branch -v 2> /dev/null | + awk -F '[][]' '/^\*/ {print $2}' | + sed 's/ahead/↑ /;s/behind/↓ /;s/[^↓↑]*/ /g' } parse_git_branch() { git symbolic-ref --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null -- cgit v1.2.3 From ba95de759a536f436a83e55b9f3302bd6ade7aae Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 26 Oct 2023 11:47:27 +0200 Subject: changed spelling remaps --- config/essentials/nvim/lua/user/remap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/essentials') diff --git a/config/essentials/nvim/lua/user/remap.lua b/config/essentials/nvim/lua/user/remap.lua index e194ffa..fadca21 100644 --- a/config/essentials/nvim/lua/user/remap.lua +++ b/config/essentials/nvim/lua/user/remap.lua @@ -77,7 +77,8 @@ end, { noremap = true }) vim.keymap.set("n", "P", "PackerSync", { noremap = true }) -- spelling -vim.keymap.set("n", "", "setlocal spell!", { noremap = true }) +vim.keymap.set("n", "s", "setlocal spell!", { noremap = true }) +vim.keymap.set("n", "g", "z=1", { noremap = true }) -- -- open terminal in file's parent director -- -- this needs to be asynchrous -- cgit v1.2.3 From ae8f2093860c5f97f1a1ba63d035a653d25bbed9 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 26 Oct 2023 11:50:31 +0200 Subject: added remap --- config/essentials/nvim/ftplugin/telekasten.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'config/essentials') diff --git a/config/essentials/nvim/ftplugin/telekasten.lua b/config/essentials/nvim/ftplugin/telekasten.lua index 2781b12..c180777 100644 --- a/config/essentials/nvim/ftplugin/telekasten.lua +++ b/config/essentials/nvim/ftplugin/telekasten.lua @@ -24,3 +24,4 @@ vim.keymap.set("n", "y", require("telekasten").yank_notelink) vim.keymap.set("n", "", require("telekasten").follow_link) vim.keymap.set("i", "l", "I[A]()+A") +vim.keymap.set("n", "l", "I[[A]]") -- cgit v1.2.3 From d44809f35a85f40bb62988ad9b5ec4a62622f65f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 26 Oct 2023 11:51:54 +0200 Subject: use a new 'school' template --- config/essentials/nvim/lua/user/zk.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'config/essentials') diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index 7e15fa3..98476ca 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -48,52 +48,52 @@ require("telekasten").setup({ }, BusinessEnglish = { home = home .. "/" .. "BusinessEnglish", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, DataEssentials = { home = home .. "/" .. "DataEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, SoftwareDesign = { home = home .. "/" .. "SoftwareDesign", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, BusinessCommunication = { home = home .. "/" .. "BusinessCommunication", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, AIEssentials = { home = home .. "/" .. "AIEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, NETEssentials = { home = home .. "/" .. "NETEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, iTalent = { home = home .. "/" .. "iTalent", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, ScalingNetworks = { home = home .. "/" .. "ScalingNetworks", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, RoutingSwitchingEssentials = { home = home .. "/" .. "RoutingSwitchingEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, SoftwareDesignAndQualityAssurance = { home = home .. "/" .. "SoftwareDesignAndQualityAssurance", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, C = { -- cgit v1.2.3 From 1765df25865f948fa08df40a72899d299f07dc91 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 26 Oct 2023 11:52:21 +0200 Subject: added link snippet --- config/essentials/nvim/after/plugin/luasnip.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/essentials') diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 70d7570..319a68c 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -213,7 +213,8 @@ ls.add_snippets("cs", { ls.add_snippets("telekasten", { --link - s("ln", fmt( + parse("ln", "[[$0]]", {}), + s("cln", fmt( [[ [{}]({}){} ]], -- cgit v1.2.3