We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2980e9b commit 74da090Copy full SHA for 74da090
notes
@@ -87,11 +87,13 @@ grep_notes() {
87
local grep_output
88
if [[ -t 1 ]]; then
89
matches=$(grep --color=$GREP_COLOR -r $NOTES_DIRECTORY -in -e "$*" 2>&1)
90
+ OLDIFS=$IFS
91
IFS=$'\n'
92
for result in $matches; do
93
len=${#result}
94
grep_output+="$(echo ${result})\n"
95
done
96
+ IFS=$OLDIFS
97
else
98
grep_output=$(grep -r "$notes_dir" -li -e "$*" 2>&1)
99
fi
@@ -171,6 +173,7 @@ open_note() {
171
173
local buffer=$@
172
174
local files=()
175
176
177
IFS=','
178
for arg in $buffer; do
179
ext_check=true
@@ -190,6 +193,7 @@ open_note() {
190
193
191
194
files+=(${note_path})
192
195
196
197
198
$EDITOR ${files[@]} < /dev/tty
199
}
0 commit comments