When a new window is opened with a single folder:
- A
.sublime.autoopen
file is looked for in the folder. If it exists, each file listed in the file is then opened. - Otherwise it'll look for a
notes.txt
,readme.md
,readme.txt
, thenreadme
files in that order and opens the first it finds.
Use WBond's Package Control
Try having a notes.txt or readme.md file in a folder and opening that folder in sublime.
mkdir ~/tmp
echo hello world > ~/tmp/notes.txt
subl ~/tmp
Check out my other Sublime Text 3 plugins:
- Open URL .. hit a hotkey to open the url/file/folder under the cursor
- Google Spell Check .. uses Google to check words and phrases
- Task List .. toggles task list icons on a line, like ✅
Combined with the Open URL plugin ... create a projects.txt file that you put lines in for each project folder. Then just open this projects.txt file, put the cursor over a line, ctrl+u to "open url" to that folder, and bamn, the folder is opened and the appropriate notes/readme file is opened automatically.
Should this be renamed to "Auto Open Readme"? bc most people use readme files instead of notes?
Improvement ideas for contributing and improving...
- Add to Package Control
- Move default set of files to open (like notes.txt, readme.txt, etc) to a settings file that the user can override
Shout out to @josiahcoad for code reviewing and improvement ideas!