我将此命令用于 rofi-locate 脚本(来源):
xdg-open "$(locate $query | rofi -threads 0 -width 90 -dmenu -i -p "locate:")"
目前,所有长路径结果都会从末尾截断,并且实际的文件名不可见,因为如果行太长而无法容纳,Rofi 会从末尾截断。是否可以从头开始截断?
基本上,显示
...h/that/cant/possibly/fit/in/a/single/line/so/it/gets/truncated.txt
代替
/a/very/long/path/that/cant/possibly/fit/in/a/single/line/so/it/ge...
答案1
您可以按Alt + period
切换椭圆模式。