![Rofi 中从头开始截断](https://linux22.com/image/145936/Rofi%20%E4%B8%AD%E4%BB%8E%E5%A4%B4%E5%BC%80%E5%A7%8B%E6%88%AA%E6%96%AD.png)
我将此命令用于 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
切换椭圆模式。