GNOME Bugzilla – Bug 309186
gedit file dialog doesn't remember the "current directory"
Last modified: 2005-08-24 17:17:39 UTC
Distribution/Version: Ubuntu 4.10 When you open file with gedit and select file from the project directory and then open file dialog again to open another file from the same directory as the last file the file dialog shows you your home directory, not the last directory where the previous file was opened.
hmmm... are you sure? I cannot reproduce it? The algorithm gedit implements is the following: - if the current tab contains a local file then open the file selector with the same directory of the current file - if the current tab contains an untitled or remote document then open the file selector with the same directory of the last local file you opened. Can you confirm your gedit works in the way I described?
I can't reproduce either... the file chooser opens in the dir of the current file or, if the file is untitled or remote, in the last opened dir.
This bug can be closed because it's not reproducable. Look rather #311628 which points the correct problem. Sorry for misinformation.
I reopened this bug since there seems to be way to reproduce it. 1. Open GEdit 2. Open file using GNOME-VFS (SFTP) 3. Try to open a new file and the current directory is not same as in step 2 Also, why does file opened with SFTP show in read-only mode even if it's writable?
As I wrote in comment #1, gedit remembers the directory of the current file only for local files. This is a desired behavior since in many cases you don't have the rights to browse a remote directory (for example when using the http protocol) and also because opening a remote directory could be a slow operation. Note that current version of gedit does not support editing of remote files. Re-closing as NOTABUG