From e0f52a4b024605243ef2adbd7ae639246dfd51d7 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Sat, 16 Oct 2021 12:29:39 -0400 Subject: [PATCH] Format tab completion message --- command_prompt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/command_prompt.py b/command_prompt.py index 3cbe64f..f935a8c 100644 --- a/command_prompt.py +++ b/command_prompt.py @@ -266,6 +266,10 @@ class Command_prompt(Label): # display in status bar self.app.status_bar.raw_text="" 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() return common_substr(paths)[end:]