Sublime Forum

How can I flatten my project directory structure in a sidebar?

#1

Right now I have this project configuration:

{
   "path": "/Users/ruslan/.config/karabiner",
   "name": "Karabiner",
   "file_include_patterns": [
     "/Users/ruslan/.config/karabiner/karabiner.json",
     "/Users/ruslan/.config/karabiner/assets/complex_modifications/mymod.json"
   ],
   "folder_exclude_patterns": [
     "/Users/ruslan/.config/karabiner/automatic_backups",
   ],
   "follow_symlinks": true
}, 

This yields the following directory structure in the side bar:
04

Is it possible to “flatten” the directory structure in the sidebar so that I could see both json files in the root of “Karabiner” folder without any nested directories?

0 Likes

#2

The sidebar always displays the contents of the associated files and folders you have open in the same physical layout as they exist on disk; to do something like that you’d need something like a symlink to the files and then open the folder containing the symlinks.

If you only have a couple of files you can also just open the files and turn on the list of open files in the side bar to be able to see them that way.

0 Likes