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 :w :!python % nnoremap :NERDTreeToggle " Global keybindings +noremap gc :!git commit -m "" +noremap gp :!git push noremap :setlocal spell! spelllang=en noremap :setlocal spell! spelllang=es noremap exec !!$SHELL -noremap :bn +noremap :bn noremap :bd noremap :w noremap za @@ -103,7 +105,6 @@ let g:indentLine_enabled = 1 let g:indentLine_char = '|' " fzf-lua -noremap :FzfLua complete_line noremap :FzfLua git_branches noremap :FzfLua git_commits noremap :FzfLua git_status