Home Download Buy Blog Forum Support

How to customize the side bar

How to customize the side bar

Postby vrenjith on Thu Mar 07, 2013 12:25 pm

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.
vrenjith
 
Posts: 1
Joined: Thu Mar 07, 2013 12:22 pm

Re: How to customize the side bar

Postby robertcollier4 on Thu Mar 07, 2013 1:09 pm

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.

Image
Image
robertcollier4
 
Posts: 154
Joined: Sun Feb 24, 2013 5:37 pm

Re: How to customize the side bar

Postby Grant on Thu Mar 07, 2013 2:08 pm

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

Code: Select all
{
   "folders":
   [
      {
         "name": "com.keypoint",
         "path": "com/keypoint"
      },
      {
         "name": "org.jfree.base",
         "path": "org/jfree/base"
      }
   ]
}
Grant
 
Posts: 69
Joined: Fri Jan 20, 2012 2:42 pm

Re: How to customize the side bar

Postby tobia on Fri May 22, 2015 9:08 am

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
tobia
 
Posts: 13
Joined: Tue Oct 16, 2012 2:55 pm

Re: How to customize the side bar

Postby tito on Fri May 22, 2015 12:34 pm

absolutely, but how do you create a file or file under these directories?
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 985
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: How to customize the side bar

Postby adzenith on Fri May 22, 2015 1:48 pm

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.
adzenith
 
Posts: 1350
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 19 guests