Add more stuff for journal
This commit is contained in:
@@ -3,11 +3,19 @@ function journal
|
||||
echo "Por favor, define a variável \$wiki com o caminho da wiki."
|
||||
exit 5
|
||||
end
|
||||
set -x NVIM_APPNAME nvim.bak
|
||||
set NVIM "$wiki/journal/nvim.appimage"
|
||||
# set -x NVIM_APPNAME nvim.bak
|
||||
# set NVIM "$wiki/journal/nvim.appimage"
|
||||
|
||||
cd $wiki/journal
|
||||
|
||||
git pull
|
||||
set NVIM nvim
|
||||
if test -e "$wiki/journal/$(date +%Y/%m/%d).md"
|
||||
$NVIM +'execute "normal :WikiJournal\<cr>Go\<enter>\<esc>!!date +\\\\%R\<cr>I# \<c-o>o\<enter>"' +"norm G\$" -c 'startinsert';
|
||||
$NVIM +'set spell' +'execute "normal :WikiJournal\<cr>Go\<enter>\<esc>!!date +\\\\%R\<cr>I# \<c-o>o\<enter>"' +"norm G\$" -c 'startinsert';
|
||||
else
|
||||
$NVIM +'execute "normal :WikiJournal\<cr>!!date +\\\\%R\<cr>I# \<c-o>o\<enter>"' +"norm G\$" -c 'startinsert'
|
||||
$NVIM +'set spell' +'execute "normal :WikiJournal\<cr>!!date +\\\\%R\<cr>I# \<c-o>o\<enter>"' +"norm G\$" -c 'startinsert'
|
||||
end
|
||||
git add .
|
||||
git commit -m "More entries"
|
||||
git push
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user