spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.29k stars 1.61k forks source link

Feature Request: open file from directory of the last opened file #1041

Closed spyder-bot closed 9 years ago

spyder-bot commented 9 years ago

From kenny.ko...@gmail.com on 2012-05-22T17:34:40Z

What steps will illustrate the feature?

  1. Open a file A from directory A.
  2. Open file B from directory B.
  3. Make A the active file.
  4. Open another file from A.
  5. The file browser opens in directory A rather the last (B). What version of the product are you using? On what operating system? 2.1.9

Please provide any additional information below

. VIM has this feature and is very handy.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1041

spyder-bot commented 9 years ago

From pierre.raybaut on 2012-05-23T04:51:33Z

This is not a bug as this is the intended behavior. Unless you change the settings in the "Global working directory" section of "Preferences" dialog box, the editor will always open the directory of the current file when opening a new file.

If you mean that you would want an option to switch between the default (current) behavior and the one that you described, then this is another story.

spyder-bot commented 9 years ago

From kenny.ko...@gmail.com on 2012-05-23T08:04:04Z

I logged this as an enhancement and I tried to describe opening in the directory of the current file. My installation does not currently open from the current file's directory. I'll take another look at how I am using it when I get in to the office.

spyder-bot commented 9 years ago

From ccordoba12 on 2012-07-07T10:16:51Z

If you or someone else wants to send us a patch for it, then I'll be happy to merge it.

However, I don't know how easy it would be to implement this, because as Pierre said, this is controlled by the Global working directory options in the Preferences pane.

Summary: Feature Request: open file from directory of the last opened file
Status: HelpNeeded
Labels: Cat-Editor

spyder-bot commented 9 years ago

From pierre.raybaut on 2012-07-28T06:44:11Z

Time has passed. I propose to close this Issue and eventually reopen it if kenny.koller wants to.

Status: WontFix

spyder-bot commented 9 years ago

From kenny.ko...@gmail.com on 2012-07-28T07:53:55Z

I apologize. I meant to follow up on this. What I really wanted was the file browser to open to the directory of the currently active tab and it does indeed do this after all. I'm not sure why I thought otherwise but it was probably that I was very new to the tool.

Please close this.