Sublime Forum

How to customize the side bar

#1

Is it possible to customize the side-bar so that the folders do not open like a tree and instead it opens like the way packages are shown in Java IDEs like Eclipse?
The package hierarchy is long and the side-bar looks awful with so many sub-directories.

0 Likes

#2

Interesting suggestion, +1.

Here are screenshots of the Eclipse Project Explorer and Eclipse Package Explorer. The Eclipse Package Explorer seems to take empty subdirectories and combine them into one name. SublimeText could do similar such as org/emptysubdir1/emptysubdir2

It would also be nice to see class names and method names in the Sidebar.

http://img18.imageshack.us/img18/9139/eclipseprojectexplorer.gif

0 Likes

#3

You can do this (manually) by adding the folders to the project with a name.

[code]{
“folders”:

	{
		"name": "com.keypoint",
		"path": "com/keypoint"
	},
	{
		"name": "org.jfree.base",
		"path": "org/jfree/base"
	}
]

}[/code]

0 Likes

#4

Bump.

It would be nice if ST could merge directories that have exactly one visible children, when it’s a directory.

▼ src
▼ com/my/company/package
File1.java
File2.java
File3.java
▼ some/other/package
File4.java
File5.java

0 Likes

#5

absolutely, but how do you create a file or file under these directories?

0 Likes

#6

When you right-click > new file, it doesn’t save the file yet. So when you save it, you could just press up a couple times in the save dialog.

0 Likes