From e16a91d84af6107fbd413040d3002c0a114b0199 Mon Sep 17 00:00:00 2001
From: tavo-wasd <gustavo@gustavocalvo.xyz>
Date: Thu, 24 Aug 2023 10:48:05 -0600
Subject: [PATCH] little fixes & git shortcuts

---
 scripts/menu/menu-addbookmark | 3 ++-
 vim/vimrc                     | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/menu/menu-addbookmark b/scripts/menu/menu-addbookmark
index 03b90ce..0dbefdf 100755
--- a/scripts/menu/menu-addbookmark
+++ b/scripts/menu/menu-addbookmark
@@ -6,8 +6,9 @@ bookmark="$(xsel -ob)"
 
 if grep -q "$bookmark" "$HOME/Desktop/bookmarks" ; then
     notify-send "󰃀 Bookmarks" "Already bookmarked"
+    exit
 else
-    name="$(menu 'Bookmark name:' empty)"
+    name="$(menu "Bookmark name:" empty)"
     [ -z "$name" ] && exit
     entry="$name-$bookmark"
     echo "$entry" >> "$HOME/Desktop/bookmarks"
diff --git a/vim/vimrc b/vim/vimrc
index d6f14cd..7378aed 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -37,10 +37,12 @@ autocmd FileType python noremap <buffer> <F9> :w<CR> :!python %<CR>
 nnoremap <C-t> :NERDTreeToggle<CR>
 
 " Global keybindings
+noremap gc :!git commit -m ""
+noremap gp :!git push
 noremap <F5> :setlocal spell! spelllang=en<CR>
 noremap <F6> :setlocal spell! spelllang=es<CR>
 noremap exec !!$SHELL<CR>
-noremap <C-n> :bn<CR>
+noremap <tab> :bn<CR>
 noremap <C-c> :bd<CR>
 noremap <C-s> :w<CR>
 noremap <Space> za
@@ -103,7 +105,6 @@ let g:indentLine_enabled = 1
 let g:indentLine_char = '|'
 
 " fzf-lua
-noremap <tab> :FzfLua complete_line<CR>
 noremap <A-b> :FzfLua git_branches<CR>
 noremap <A-c> :FzfLua git_commits<CR>
 noremap <A-s> :FzfLua git_status<CR>