Format tab completion message

This commit is contained in:
Ian Jauslin 2021-10-16 12:29:39 -04:00
parent 3d1fdee7d5
commit e0f52a4b02

View File

@ -266,6 +266,10 @@ class Command_prompt(Label):
# display in status bar # display in status bar
self.app.status_bar.raw_text="" self.app.status_bar.raw_text=""
for path in paths: for path in paths:
self.app.status_bar.raw_text+="\""+path+"\" " name=os.path.basename(path)
# add quotes if needed
if " " in name:
name="\""+name+"\""
self.app.status_bar.raw_text+=name+" "
self.app.status_bar.draw() self.app.status_bar.draw()
return common_substr(paths)[end:] return common_substr(paths)[end:]