Any way to set default path for opening text files in text v

Is there any way to set a default path for opening text files in the text editor? Or, maybe I’m not doing this the right way. I am using the text editor to edit python scripts. I am putting all my python scripts in a certain directory. So when I’m opening and closing scripts, I always have to navigate to the directory.

No, but use the (Parent and) Dropdown menu button(s) at top-left of the “Open” directory window to get to last-open.

%<

Ah, of course. Thanks, man.

If you want new path entries to appear by default in the drop down menu of the file selector, create (or modify, if you already have one) a file named .Bfs which is a simple text file containing path definitions, one entry per line.

This file can be in your home directory, or in the .blender directory, wherever Blender is.

What is the syntax for a path definition? What would be the entries in the .Bfs file for having blender go to a certain directory when I’m opening a file in the Text Editor Window?

Hi Yasoo2, I think you can’t make Blender open the file selector for loading text in a predefined directory. The first directory Blender will open is the one stored in a file named .Blog which is the filename of the last blend file you saved. If you really want to force Blender to always look first in a certain path you can edit the .Blog file and then make it read-only, so Blender can’t overwrite it.

The .Bfs file has no syntax or commands, it’s just plain text, with one path per line. For example in Linux a .Bfs file could be:

/var/tmp
/home/x

In Windows:

c:\mystuff	extfiles
d:\projects\blender

This makes those paths appear in the file selector list, by pressing the button under the “P” button.

Ah, cool. Thanks toloban.