Git Product home page Git Product logo

sublimefilebrowser's Introduction

FileBrowser for SublimeText

Ditch sidebar and browse your files in a normal tab with keyboard, like a pro!

SublimeFileBrowser Screenshot

You can also use it as a sidebar that you can put on right or left side

SublimeFileBrowser Screenshot2

Installation

You can install via Sublime Package Control

Or clone this repo into your SublimeText Packages directory and rename it to FileBrowser, in this case, if you want to make auto-refresh work (note it is an optional feature you may ignore it) then some extra steps might be required:

  1. Satisfy dependencies
    • If you have Package Control installed, bring up command palette and run Package Control: Satisfy Dependencies command
    • If you have no Package Control, then manually install dependencies (every cloning should be into Packages directory):
      1. Clone https://github.com/codexns/package_events
      2. Clone https://github.com/vovkkk/sublime-pathtools and rename to pathtools
      3. Clone https://github.com/vovkkk/sublime-watchdog and rename to watchdog
      4. Write your own plugin which would handle loading order: pathtools must be loaded before watchdog, and watchdog and package_events must be loaded before FileBrowser, that is why we recommend to use Package Control, but there is option for workaround
  2. Restart Sublime Text

Commands and Keybindings

This plugin does not add any keybindings for opening a new tab in Browse Mode. Although, the commands to do that are available in Command Palette but it is recommended to bind F1 to open the current file directory in Browse Mode with this piece of code (that you can add to your Key Bindings - User file):

{
  "keys": ["f1"],
  "command": "dired",
  "args": { "immediate": true }
}

You also can use optional arguments to tweak behavior:

  • "single_pane": true — always use a single File Browser view, i.e. prefer to reuse existing one rather than create a new.
  • "other_group": "left" (or "right) — open FileBrowser in other group, i.e. like sidebar; if you use "left" then all other tabs from left group will be moved into the right one.
  • "project": true — always prefer project's directory(s) rather than path of current view.

You can mix these arguments as you like (perhaps, even bind several shortcuts for different cases); e.g. to completely mimic sidebar, it would be:

{
  "keys": ["f1"],
  "command": "dired",
  "args": {
    "immediate": true,
    "single_pane": true,
    "other_group": "left",
    "project": true
  }
}

Commands

Commands Description
Browse Mode... Asks for a directory to open in browse mode
Browse Mode: Current file or project Opens the directory of current file or project in browse mode
Browse Mode: Left Sidebar Opens in browse mode as a sidebar on the left
Browse Mode: Right Sidebar Opens in browse mode as a sidebar on the right
Browse Mode: Jump List Shows the jump list view (see jump list section below)
Browse Mode: Jump List Quick Panel Shows the jump list in quick panel

Shortcuts

General Shortcuts
Command Shortcut
Shortcuts page ?
Refresh view r
Navigation Shortcuts
Command Shortcut
Move to previous k or
Move to next j or
Expand directory l or
Collapse directory h or
Toggle expand/collapse o
Go to parent directory backspace
Go to first ⌘+↑ or ctrl+home
Go to last ⌘+↓ or ctrl+end
Jump to /
Go to directory g
Quick jump to directory p
Find in files s
Toggle mark m
Toggle mark and move down shift+↓
Toggle mark and move up shift+↑
Toggle all marks t
Unmark all u
Mark by extension *
Action Shortcuts
Command Shortcut
Rename R
Delete to trash D
Delete (does not send to trash) alt+shift+d
Create directory cd, enter
Create directory and open it cd, ⌘+enter
Create file cf, enter
Create file and open it cf, ⌘+enter
Create/Edit/Remove jump point P
Toggle hidden files H
Open in Finder/File Explorer \
Open in new window W
Open file in another group enter
Open all marked items in new tabs ⌘+enter / ctrl+enter
Preview file in another group shift+enter
Toggle add directory to project f
Set current directory as the only one for the project F
Quicklook for Mac or open in default app on other OSs space

If you prefer to open file(s) on Mac in default app instead of Quicklook, add the following code in your user key bindings file:

{
  "keys": [" "],
  "command": "dired_quick_look", "args": { "preview": false},
  "context": [
    { "key": "selector", "operator": "equal", "operand": "text.dired" },
    { "key": "setting.dired_rename_mode", "operand": false }
  ]
}
Rename Mode Shortcuts
Command Shortcut
Apply changes enter
Discard changes escape

NOTE: All these keyboard shortcuts can be customized in your own key-binding file. Open the default key-bindings file (PreferencesPackage SettingsFileBrowserKeybinding — Default) and copy the ones you want to change to your Keybinding — User file.

Usage

Selecting Files and Directories

You can select files and/or directories by marking them with m, or Shift + ↑/↓ or just use SublimeText multiple cursor feature and extend your cursor to the line that has those files/directories.

You can expand or collapse a directory (or multiple directories using marking or multiple cursors) by pressing o. l or will also expand directories inline and h or will collapse.

Search

Besides incremental search available by /, you also may use build-in "Goto Symbol…" (⌘+r or ctrl + r) for fuzzy search.

"Find in Files…" integration

Press s to summon "Find in Files…" panel — if you've marked some files they will fill Where field, otherwise it will be filled by current directory path.

Rename Mode

The rename command puts the view into rename mode. The view is made editable so files can be renamed directly in the view using all of your SublimeText tools: multiple cursors, search and replace, etc.

After you are done with editing press enter to commit your changes or escape to cancel them.

Cut, copy and paste files

You can move and copy files/folders. Shortcuts are quite standard: x, c, v with or ctrl.

You can copy and/or cut as many items and from many locations as you like — status-bar will show amounts of copied and cut items.
If you change your mind — ⌘+z or ctrl+z will clear both lists. Note, those lists are stored in FileBrowser settings file, so you can edit it by hand if need.

As soon as you paste, each item will be either copied or moved into folder under cursor.
If you want to alter the destination path without moving cursor, you may do so with ⌘+shift+v or ctrl+shift+v to open prompt; you may use prompt without copy/cut before, i.e. if those lists in settings file are empty then prompt will take marked or selected item(s) and suggest copying them.

On Windows all operations will be done via system API with all its features (renaming semantics, interactive overwrite, progress-bar, pause/cancel, and so on).

On other OSes all operations will be done via Python API, which is not that cool, but you will see a vague progress in status-bar and can choose what to do in case of conflicts (overwrite, duplicate, skip), however, there are some restrictions, e.g. folders cannot be overwritten or merged.
Duplication adds separator and generic number to old name, e.g. duplicate of file.ext would be file — 2.ext, you can change separator to any string (beware illegal path characters), e.g.

{
  "dired_dup_separator": "_"
}

so new filename would be file_2.ext

Open in new window

Selecting a couple of files and/or directories (either by marking them or using the normal multiple cursor feature of SublimeText) and pressing w will open them in a new window.

Close FileBrowser when files have been opened

Add the following code in your user key bindings file:

{
  "keys": ["enter"],
  "command": "dired_select", "args": {"and_close": true},
  "context": [
    { "key": "selector", "operator": "equal", "operand": "text.dired" },
    { "key": "setting.dired_rename_mode", "operand": false }
  ]
}

Jump List & Jump Points

Adding Jump Points

While in Browse Mode, you can press P(Shift + p) to add the current directory to your Jump List, we call it a Jump Point. It's like Bookmarks or Favorites in other file managers.

Viewing Jump List

There are several ways to view your Jump list:

Jump List in a Quick Panel in Browse Mode

While in Browse Mode, you can press p to view the Jump List in a Sublime quick panel.

SublimeFileBrowser Jump List is quick panel

NOTE: This command does NOT create a new window or project. it lets you jump quickly to a particular location.

Jump List in a Quick Panel from anywhere

Bring up Command Palette and search for Browse Mode: Jump List Quick Panel (typing bmq should find it for you). If you want to save some key stokes you can add the following code in your user key bindings file:

{
  "keys": ["f3"],
  "command": "dired_jump",
  "args": { "new_window": true }
}

You can change f3 in the above code to your custom keyboard shortcut.

NOTE: This command creates a new window and open that directory in Sublime with a Browse Mode view. The view opens as a left sidebar by default. To change it add dired_open_on_jump to your user settings file (PreferencesPackage SettingsFileBrowserSettings — User). Set it to "right" to open the view as sidebar on the right side of the window or to true to fill all space. A value of false will prevent any view to open when jumping.
To open the directory in the same window call the command with false. To keep the current window if it is empty call the command with "auto" and edit your user settings with "dired_smart_jump": true.

Jump List View

Bring up Command Palette and search for Browse Mode: Jump List (typing bmj should find it for you). This command will open a Jump List View that looks like this:

SublimeFileBrowser Jump List View

If you want to save some key stokes you can add the following code in your user key bindings file:

{ "keys": ["f3"], "command": "dired_jump_list" }

You can change f3 in the above code to your custom keyboard shortcut. Jump List View can be browsed using the up/down or j/k. Pressing enter on a jump point will open it in a new window with a Browse Mode view as sidebar or what was configured with dired_open_on_jump. Empty windows will be reused if dired_smart_jump is set to true in your user settings.

Jump List in a new empty window e.g. Hijacking (ST3 only)

You can also configure FileBrower to automatically open Jump List View in new empty windows. That is when you run the new_window command (through menu or using shortcuts) or when SublimeText starts and there's no previous windows open. To do this you need to add the code below to your user settings file (PreferencesPackage SettingsFileBrowserSettings — User)

{ "dired_hijack_new_window": "jump_list" }

Edit/Delete Jump points

When you are in Jump List View pressing P (Shift + p) allow you to rename or delete (by clearing the name) the jump point that is currently highlighted.

When a jump point is opened in Browse Mode pressing P will also do the same.

NOTE: When a jump point is opened in Browse Mode the path in the header is prefixed with name of the jump point.

Hidden files

By default, FileBrowser shows all files in the browsed directory. Pressing h toggles the display of hidden files. For all platforms, any file that starts with a . is considered hidden; additionally, on Windows, files that have the hidden attribute set are also considered hidden.

To set FileBrowser to hide hidden files by default, add the following to your settings:

{ "dired_show_hidden_files": false }

You can also customize the patterns used to determine if a file should be hidden with the dired_hidden_files_patterns setting, which should be either a single pattern string or a list of such patterns:

{ "dired_hidden_files_patterns": [".*", "__pycache__", "*.pyc"] }

VCS integration

In case git status(or hg status) returns a colorable output in current directory, the modified and untracked files will be designated by orange and green icons respectively. You can use setting "vcs_color_blind": true — untracked files will get vertical line on left side of their icons, modified files will get horizontal line under their icons. If Git (or HG) is not presented in your PATH you may set git_path (resp hg_path) setting (see example in default settings file).

Hijacking a new empty window (ST3 only)

FileBrowser can hijack new empty windows and show you a Browse Mode or Jump List View. That is when you run the new_window command (through menu or using shortcuts) or when SublimeText starts and there's no previous windows open.

This feature is only available for ST3 and is disabled by default. You can activate it by setting dired_hijack_new_window to "jump_list" or "dired" in your user settings file (PreferencesPackage SettingsFileBrowserSettings — User).

To disable this feature set it back to false or remove if from your user settings file.

{ "dired_hijack_new_window": "jump_list"}

Using Mouse!

We believe keeping your hands on keyboard and not moving them away to reach the mouse or track-pad will increase your productivity. Despite this, there might be situations where using a mouse to click on a file is easier or you might be in transition to becoming a keyboard ninja and still prefer the mouse by habit. For these situations, you can just double click a file or directory to open them. Although we stand firm with our belief, we're liberals! :)

Auto-refresh

This feature is supposed to automatically refresh a corresponding view(s) whenever something happen within open and/or expanded directories (i.e. a file was created/removed/modified).

Auto-refresh of a corresponding view shall be happen not more than once per second (for performance reason), however, the longest delay is not restricted, which means in some rare cases auto-refresh may not happen for long unrestricted time, but of course you can always refresh a view manually with r.

Auto-refresh can be disabled globally in user settings file

{ "dired_autorefresh": false }

And, regardless of global setting, can be toggled per view via context menu.

Tweaking Look and Feel

Customizing UI Elements

If you don't like symbol and want to hide it (then you should use keyboard binding backspace to go to parent directory) you can do it in your user settings file (PreferencesPackage SettingsFileBrowserSettings — User) and paste the code below:

{ "dired_show_parent": false }

If you want to see header (underlined full path) on top of file list:

{ "dired_header": true }

If you want to see full path in tab title and thus in window title if tab is focused:

{ "dired_show_full_path": true }

Changing color scheme

If you don't like colors used in FileBrowser just copy this file to your User directory, change colors and paste the code below in your user settings file:

{ "color_scheme": "Path to your custom color scheme file. e.g. Packages/User/custom_dired.hidden-tmTheme" }

Changing font

Changing the font of sidebar in SublimeText is not that easy! not if you're using FileBrowser as your sidebar. Since it is just a normal Sublime view with a special syntax, you can change the font to whatever font that's available on your system.

To do that, add the code below (don't forget to change the font name!) to user settings file (PreferencesPackage SettingsFileBrowserSettings — User).

{ "font_face": "comic sans" }

Changing font size

Normally you want the FileBrowser to use a smaller font compared to your normal views. It helps you see more content and also prevents any font size changes when you make your normal view font bigger or smaller.

You can change the font size by adding the code below to user settings file (PreferencesPackage SettingsFileBrowserSettings — User).

{ "font_size": 13 }

Changing nested directories indentation

The amount of indentation for nested directories is controlled by tab_size. By default FileBrowser is using a tab_size of 3 but you can customize it in your user settings file (PreferencesPackage SettingsFileBrowserSettings — User).

Other settings

Disable confirmation dialog for sending items to trash (does not affect system one):
{ "dired_confirm_send2trash": false }
Change initial width of FileBrowser column (as sidebar):

The value can be either float as fraction of window width which is 1.0 — so default value 0.3 means that FileBrowser will take slightly less than a third part of window width;
or int as the exact amount of pixels, however, if value will be more than current window width (e.g. 1920) then it will fallback to 0.9.

{ "dired_width": 250 }  // approximately 250 pixels

or

{ "dired_width": 0.2 }  // fifth part of window
Keep Vintageous enabled in FileBrowser view (beware of keybindings incompatibilities)

note it is Vintageous setting, if it does not work you should report into appropriate repository

{ "__vi_external_disable": false }

General tip for Windows users

DirectWrite rendering gives better Unicode support and better font appearance overall, to enable it add following setting into PreferencesSettings — User:

{ "font_options": ["directwrite"] }

Credit

This is a fork of the awesome dired plugin by Michael Kleehammer

License

See the LICENSE file

sublimefilebrowser's People

Contributors

aziz avatar drocco007 avatar exaspark avatar famousgarkin avatar jspenced avatar kl0tl avatar laggingreflex avatar meganlkm avatar sergei-kucher avatar vovkkk avatar vprimachenko avatar xavi- avatar xsandr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sublimefilebrowser's Issues

How to open?

I hate Sublime Text for that everyone is thinking that I'm a f***ing professional of it!
I installed this plugin, but how do I open it to just show me my directories?
Ridiculous

"s" for "find in files" not disabled under rename mode?

I don't remember this being a problem before. Maybe a recent update accidentally removed the // MISSING LINE? line?

// search
  {
      "keys": ["s"],

      "command": "dired_find_in_files",
      "context": [
        { "key": "selector", "operator": "equal", "operand": "text.dired" },
        { "key": "setting.dired_rename_mode", "operand": false } // MISSING LINE?
      ]
  },

Key bindings don't work as the scope is no longer set to 'text.dired'

Since commit 6f0405f, the scope is no longer set to text.dired.

Before:

>>> view.syntax_name(view.sel()[0].b)
u'string.name.file.dired dired.item.file text.dired '

Now:

>>> view.syntax_name(view.sel()[0].b)
u'meta.paragraph.text text.plain '

Because of this, key bindings with the following settings don't work anymore:

"context": [
    {
        "key": "selector",
        "operator": "equal",
        "operand": "text.dired"
    }
]

Fuzzy Search

Would be really nice if the plugin could move the selection to a file/folder as we type a few characters of that file/folder.

UnicodeEncodeError when renaming file in Sublime 2

Hello,

A UnicodeEncodeError exception is being thrown when I try to exit "Rename Mode". Here's the full stack trace:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./dired.py", line 621, in run
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 64, in join
    for b in p:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2192' in position 31: ordinal not in range(128)

I'm not sure why the stack trace points to line 621, but the actual root cause seems to be on dired.py:620:

print(u'dired rename: {0} → {1}'.format(b, a))

Either of the following changes seems to fix the problem:

print(u'dired rename: {0} -> {1}'.format(b, a))

or

print(u'dired rename: {0} → {1}'.encode("utf-8").format(b, a))

Thanks,
Xavi

How to open a sidebar to the right?

Hello,

can you please tell me, or update the readme along the way, how to actually open the file browser as a sidebar to the right?

It's great that there's the screenshot but there's absolutely no information on how to achieve it.

I'm just evaluating ST and the fact that the built-in sidebar is hardcoded to the left is a deal breaker for me hence I'm interested in your plugin.

Thanks a lot!

Issues installing in ST3 on Ubuntu

I was able to get the plugin installed by adding the repository, then selecting the package for install, but started getting errors about the color scheme file being missing.

The color scheme was being looked for at ~/.config/sublime-text-3/Packages/FileBrowser/

To remidy the issue, I created the FileBrwoser folder, and moved a copy of the dired.hidden-tmTheme file into it.

The plugin opens without throwing an error now, but keyboard shortcuts don't seem to be working (they weren't working before I copied the theme file, either). I can move up and down the list, but pressing o, or enter doesn't open files, or allow me to move into other directories.

I'm on ubuntu 12.04, using the ST3 build 3059

Can't commit from Rename mode; enter just does nothing?

Just installed this for the first time. Documentation seems p clear to me that it should simply work the way I tried (shift+r, edit file names, hit enter to have all the files thus renamed), but enter just does nothing at all, doesn't even exit [RENAME MODE].

Has SublimeFileBrowser been tested on *ubuntu before?

Set theme font size

Is it possible to set a different font size only for FileBrowser? I use 18px, but that seems too big for the file browser, so I'd like to decrease the size to 15px.

Nice plugin! Just discovered! <3

Launch files according to OS defaults

Hey SublimeFileBrowser Team,
Thanks for writing such a great plug-in. I love it's quick jump functionality.

I guess it would be great if I can launch all types of files, like pdf, documents and video files with their default program right through this plugin- something like (os.system("open /media/mukesh/Stuff/video.flv")).

Thanks again and Regards,
Mukesh Soni

can't uninstall

due to #48 this package is unusable, but the uninstall seems broken.

after i get these dialogs

image

in an infinite popup loop

so i can't even use sublime to try and edit settings file to get rid of this plugin

Git Integration Bug: linux, python3.3 and ST3. the git parameter of vcs_check function could be "list".

def vcs_check(self, edit, path, names, git='git'):
    shell = True if sublime.platform()=='windows' else False

somehow, the "git" could be a list.

my current solution is to
if isinstance(git, list):
git = git.pop()

it's still somehow broken with the solution.

When you enter file browser, it'll show files colorized. But when you navigate around the folders, colors are gone.

If you need anything more from me, please let me know.

just you know, I'm not familiar with python.

Command to jump to current file in browser

Is there a way to map a key binding to open the file browser to the currently active file? ala the "Reveal in sidebar" option in the sublime context menu for a given file.

Otherwise, what an awesome tool.

Icons not visible

I use sublime text on windows and icons not visible like screenshots

screenshot_3

Open view in another group

how to hide the mini-map for the browser tab ?

because the browser opens in a new tab ,so any opened files will open in that tab which is good but ,
what if i want to have the browser window to be as a sidebar so it have its own column and any opened files will be opened next to the tab i activated the plugin from ?

what i mean is when u activate the plugin by f1 the plugin will now create a column to the far right/left and move its own tab to it then when u open a file it will move that file tab back to the main column ,so you wont have any thing in that column except the plugin window/tab.

Hide Header Settings

The header is not that useful and visible (specially when using FB as a sidebar), it would be cool to be able to hide it through settings.

Permissions for newly created files/directories

On linux, system commands (e.g. mkdir and touch) set 'rw' only for owner and 'r' for group and others.
The FileBrowser permissions after create file/directory is read/write for all. I think it's undesired.

Git colors not working

In dired.py you use p = subprocess.Popen([git, 'status', '-z'] but according to the git documentation this will not generate colored output by default, which is what I'm seeing on OSX.

Git Documentation

-z

Terminate entries with NUL, instead of LF. This implies the --porcelain output format if no other format is given.

Porcelain Format

The porcelain format is similar to the short format, but is guaranteed not to change in a backwards-incompatible way between Git versions or based on user configuration. This makes it ideal for parsing by scripts. The description of the short format above also describes the porcelain format, with a few exceptions:

The user’s color.status configuration is not respected; color will always be off.

Can't change color scheme

i have added
{
"color_scheme": "Packages/User/dired.hidden-tmTheme"
}

to user sittings of file browser, but it doesnt work botho on mac ox 10.10 and windows 8.

could you please help me?
thank you!

Tree view enhancements

  • Use ▾ icon for unfolded folders, let's get rid of for empty folders
  • Inconsistent left and right arrow key behavior on files. left behaves like the up arrow!
  • When unfolding a folder, while the cursor is inside that folder content, the cursor goes to the next folder and highlights the next one, instead of staying on the same folder that's been just unfolded.
  • Each time you press left arrow key you loose a line when going to the last line using shortcut key super+down / ctrl+end
  • Use 2 spaces for indentation (right now it's 3 spaces)

Vintageous Compatability

Using the Vintageous package, I have to invoke insert mode to use FileBrowser's selection features. Could you disable Vintageous within FileBrowser, or automatically activate Vintageous's insert mode on launch of Browse?

Toggle hidden files for OSX don't works

Feature 'toggle hidden files' works for Linux and maybe for Mac. In fact now it hides only dot-prefixed files (.*)

So needed to toggle Windows and maybe Mac hidden files.

Besides should the feature to hide dot-prefixed files on Windows? Or only files marked as hidden and system?

Other (non-git) VCS support

It would be cool, if your plugin could highlight changes in current folder not only for git, but for svn, hg and others. I'm personally interested only in svn and hg. (I think git + hg + svn will cover 99% of all needs).

P.S. Thank you for this great plugin! It really saves a lot of time!

Duplicate File/Folder(s)

Thinking of just a simple command to duplicate the currently highlighted file/folder.

I forked this to try and give this a shot, but haven't made much head way since I'm just learning Python.

Cannot open multiple files

The "w" (open in new window) command allows marking multiple files and opening all of them in a new window. Would it be possible to make the other open commands ("o", "enter") to do the same thing as well? Right now it looks like they only open one file even if multiple were marked.

Can't rename a symlink to a folder

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./dired.py", line 695, in run
OSError: [Errno 20] Not a directory

No problem renaming symlinks to files, though.

(Sorry, I just keep pestering you, Vova! xD You're awesome, thanks. ^^; )

Default: Open in different column?

First, killer package. Loving this. 👍

Is it possible to have it open files in a separate column when I'm using it like a sidebar in a two-column setup?

Example

readme_md__good_news_ocala_v2_and_composer_json__gospel_crusade-4

Feature Req.

hi again ,thanx for all ur work just a couple of feature requests

  1. when u select multi-file then press super+entre to open them the plugin doesn't reset the selecting ,so if u made a selection to other files ,now u will open the newly selected + the one selected b4,
    this is not the case if u have "and_close": true which will reset the plugin to the default and in-return will clear any file selection u made b4.
  2. in the 2nd screen shoot ,i think there are 2 themes (one for the browser & one for the main window) because the color scheme on it self cant change the tabs & its bg color ,so is there away to add this option ?
  3. could u please make a file that describe what each option in args mean ? ex.
"other_group": true,
"new_view": true,
"immediate": true,
etc...

Tree view

The ability to expand a folder and have its contents presented in context with indentation, like in a tree view. Left/right arrows to collapse/expand folders

Hidden files option doesn't work

Files like the following still being displayed:

▸ .git/
≡ .gitignore

/Users/user/Library/Application Support/Sublime Text 3/Packages/User/dired.sublime-settings:

{
  "dired_show_parent": false, // double dot as first element of each folder
  "dired_show_hidden_files": false,
  "dired_hidden_files_patterns": [".*"]
}

⠤ element is redundant

Backspace key is for go to parent, ⠤ is a duplication.
Moreover, in some cases it’s getting in the way, e.g. in Java it is common practice to create a bunch of nested folders each contains a single folder (random java project for illustration). When you open folder, a first choosen element is ⠤, so need to press ↓, enter to open next folder, instead of just pressing enter.

So I suggest either to ditch that relic of CLI­-age completly or make it optional/configurable.
Thoughts?

Handle [Error 5] (Access denied)

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 356, in run_
  File ".\dired.py", line 120, in run
WindowsError: [Error 5] : u'C:\\Users\\Default\\Application Data\\*.*'

Can we change the colour of element and add inline message? so it would be more visible than msg in status bar and not so annoying as dialog window.

Maintain position in navigation tree after action

Currently, I take advantage of the directory tree hierarchy by expanding nested directories. However, if I perform some actions, like "D" for delete file, or "h" for toggle hidden files, or "r" for refresh view -- the entire tree collapses and my cursor is placed on the top line. This is counterintuitive and interrupts the workflow. Ideally, these actions could be performed and maintain my view with some directories expanded and my cursor would also maintain its position.

Rename mode

Useful plugin!
The only thing that I have not worked in the "rename mode" - it saves changes to a combination of "super(ctrl) + enter". (OS - Win 8.1)
In the plug "dired" it all works.
Sorry for my english.

sublime.active_window().views() error - ST v.2 only

Using: SublimeFileBrowser v.0.5.3 on ST v. 2.0.2 Build 2221.

SublimeFileBrowser is not working in ST v. 2, although it was recently. There is an error reported by console when it loads the plugin.

Console says:

Reloading plugin snip/.config/sublime-text-2/Packages/FileBrowser/dired.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./dired.py", line 82, in <module>
    plugin_loaded()
  File "./dired.py", line 77, in plugin_loaded
    for v in sublime.active_window().views():
AttributeError: 'NoneType' object has no attribute 'views'

The same version of SublimeFileBrowser is working fine with ST v. 3 Build 3065.

Hope this helps.

Integrate with VCS

Would be nice to have some git/mercurial/etc... integration like showing changed files in different color.

quicker browsing?

is there a way to use this plugin to quickly navigate to a file? much like the navigation in WebStorm

ie type a few letters of the directory, hit return, first few letters etc

currently i have to do:
/
type
/ again
type

its tedious for the 99% use case of quicknav

or maybe theres another plugin for that?

Browse mode: previous or project

Is there a way to re-open the file browser in same state it was before, including tree state and cursor position, independently of the current file?

crashing on file open

if i hit enter with a file selected, this hangs sublime - tried this twice and had to force-kill, restart.

next time i used "o" to first open the file. this worked fine. now hitting enter also works fine...

not sure if this is reproducible, since it seemed to fix itself, but ...

Renaming based on template e.g myfile-${i}-${d}-${t}.ext

Rename Mode is really cool and powerful, specially when it's mixed with multi cursor capabilities of Sublime. It would be even cooler if we could rename with a simple template that could be interpolated in python when committing the rename action. something like this:

myfile-${i}-${d}-${t}.ext

where:
${i} : an index auto-incrementing number
${d}: date
${t}: time
${name}: previous file name

It's just an idea.

Calling FileBrowser always prompts to install git (OS X 10.9.5)

Not sure if someone can test this but when I call FileBrowser to open in a tab (shortcut key) and then each time I try to navigate a folder in FileBrowser, I always get repeated OS X's prompts to install Git, making navigation impossible:

git prompt

If I choose to install it manually (with Rudix package manager or the official Git package), I have to include the path in my .bash_profile for git to be seen in Terminal:

export PATH=/usr/local/bin:$PATH

Then if I set the same path in FileBrowser's preferences:

{
    "git_path": "/usr/local/bin"
}

I can navigate FileBrowser just fine if it's already open. But if close FileBrowser and open it again (in the same or new window) I always get one system prompt to install Git and by cancelling it, I can navigate just fine again without further prompts.

The only thing that works is by accepting to install Apple's Git but this version won't be easy to update.
Since this can be a OS X bug, can Git checking be disabled in FileBrowser? I mean, having Git installed is not a requirement, is it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.