aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbatnote4
-rwxr-xr-xcurdel.sh13
-rwxr-xr-xcurlist.sh10
-rwxr-xr-xcurset.sh13
4 files changed, 38 insertions, 2 deletions
diff --git a/batnote b/batnote
index 57d455a..110d7c7 100755
--- a/batnote
+++ b/batnote
@@ -3,8 +3,8 @@
# a script for FZFing through my Notes folder for quick reading.
# Uses bat if installed, otherwise will use less.
-NOTES=/home/$USER/Notes
-FZF_BIN=/home/$USER/.fzf/bin/fzf
+NOTES=/home/$USER/Documents/Notes
+FZF_BIN=/usr/bin/fzf
BAT=/usr/bin/bat
LESS=/usr/bin/less
VIM=/usr/bin/vim
diff --git a/curdel.sh b/curdel.sh
new file mode 100755
index 0000000..e4263cf
--- /dev/null
+++ b/curdel.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+curdir=~/Documents/Notes/current/
+file=$(find $curdir -type l |fzf)
+echo $file
+
+if [[ -d $curdir ]]; then
+ unlink "$file"
+ echo "Deleted symbolic link for $file in $curdir."
+else
+ echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed."
+ exit 1
+fi
diff --git a/curlist.sh b/curlist.sh
new file mode 100755
index 0000000..6720b91
--- /dev/null
+++ b/curlist.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+curdir=~/Documents/Notes/current/
+
+if [[ -d $curdir ]]; then
+ ls "$curdir/"
+else
+ echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed."
+ exit 1
+fi
diff --git a/curset.sh b/curset.sh
new file mode 100755
index 0000000..8d80605
--- /dev/null
+++ b/curset.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+file=$(find ~/Documents/Notes -type f|fzf)
+curdir=~/Documents/Notes/current/
+
+if [[ -d $curdir ]]; then
+ ln -s "$file" "$curdir"
+ echo "Created symbolic link for $file in $curdir."
+else
+ echo "The ~/Documents/Notes/current directory does not exist. Please create it to proceed."
+ exit 1
+fi
+