I am using the following script for a search bar that opens my notes:
#! /bin/sh cd ~/UniNotes chosen=$(printf '%s\n' * | rofi -dmenu -i "Test" ) cd $chosen/Notes alacritty -e vim $chosen.tex This works because my notes follow the template
UniNotes/Subject1/Notes/Subject1.tex This set up is quite primitive because it only allows for single tex files to be identified in each folder.
I would like to have a script that lists me all of the tex files from uninotes in rofi. Then I want to select a given tex file and open it with alacrity and vim.
My biggest issue seems to be to somehow preserve the location of a file when it is listed.
Could someone help me with the script?
Notes/in the path (i.e.~/UniNotes/Subject1/Notes/Subject1.tex). In any case, please read Why is "Can someone help me?" not an actual question? You need to ask a specific question for it to be on-topic here, like maybe "How can I find all .tex files in a folder and subfolders?" For more tips, see How to Ask.