put cwd in open prompt
@@ -58,7 +58,12 @@ class InteractiveOpener(app.controller.Controller):
self.priorTextBuffer = self.host.textBuffer
self.commandDefault = self.textBuffer.insertPrintable
self.textBuffer.selectionAll()
+ if len(self.host.textBuffer.fullPath) == 0:
+ path = os.getcwd()
+ else:
path = os.path.dirname(self.host.textBuffer.fullPath)
+ if len(path) != 0:
+ path += os.path.sep
self.textBuffer.editPasteLines((path,))
# Create a new text buffer to display dir listing.
self.host.setTextBuffer(text_buffer.TextBuffer())
