I'm using this command for a rofi-locate script (source):
xdg-open "$(locate $query | rofi -threads 0 -width 90 -dmenu -i -p "locate:")"
Currently all long path results are truncated from the end, and the actual filename isn't visible, as Rofi truncates from the end if a line is too long to fit. Is it possible to make it truncate from the beginning?
Basically, showing
...h/that/cant/possibly/fit/in/a/single/line/so/it/gets/truncated.txt
in place of
/a/very/long/path/that/cant/possibly/fit/in/a/single/line/so/it/ge...