GithubHelp home page GithubHelp logo

sublimetext / advancednewfile Goto Github PK

View Code? Open in Web Editor NEW
824.0 40.0 93.0 277 KB

File creation plugin for Sublime Text

License: MIT License

Python 100.00%
sublime-package sublime-text sublime-text-plugin

advancednewfile's Introduction

AdvancedNewFile

Advanced file creation for Sublime Text.

Overview

This plugin allows for faster file creation within a project. Please see the Features section for more detailed information about advanced features.

Compatability Notes

Sublime Text 2 and 3

Version 1.7.0 is the final version that will be compatible with Sublime Text 2 and 3. Compatiability with these versions of Sublime Text are no longer planned to be maintained and will not receive future enhancements. If the latest features are needed, consider upgrading to Sublime Text 4.

Installation

Note with either method, you may need to restart Sublime Text 2 for the plugin to load.

Package Control

Installation through package control is recommended. It will handle updating your packages as they become available. To install, do the following.

  • In the Command Palette, enter Package Control: Install Package
  • Search for ANF to see the list of available commands

Manual

Clone or copy this repository into the packages directory. You will need to rename the folder to AdvancedNewFile if using this method. By default, the Package directory is located at:

  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
  • Windows: %APPDATA%/Sublime Text 2/Packages/
  • Linux: ~/.config/sublime-text-2/Packages/

or

  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
  • Windows: %APPDATA%/Sublime Text 3/Packages/
  • Linux: ~/.config/sublime-text-3/Packages/

Depending on your install on windows, the ST packages path may be %APPDATA%/Sublime Text 2/...

Usage

Simply bring up the AdvancedNewFile input through the appropriate key binding. Then, enter the path, along with the file name into the input field. Upon pressing enter, the file will be created. In addition, if the directories specified do not yet exists, they will also be created. For more advanced usage of this plugin, be sure to look at Advanced Path Usage. By default, the path to the file being created will be shown in the status bar as you enter the path information.

Default directory: The default directory is specified by the default_root setting. By default, it will be the top directory of the folders listed in the window. If this cannot be resolved, the home directory will be used. See Settings (default_root) for more information.

Commands with no Default Bindings

The plugin supports renaming and deleting files. However, these are not, by default bound to any key binding. For more information on the available commands, see the GitHub wiki page.

Adding Commands to Menu

The plugin does not contain any menu commands by default. To add them yourself, please see the GitHubwiki

Keymaps

If you have issues with keymaps, consider running FindKeyConflicts, also available through the package manager. Alternatively, set command logging to true by entering sublime.log_commands(True) in the Sublime Text console.

Windows

ctrl+alt+n: General keymap to create new files.

ctrl+shift+alt+n: In addition to creating the folders specified, new folders will also contain an __init__.py file.

OS X and Linux

The super keys for Linux and OS X are the Windows and command key respectively.

super+alt+n: General keymap to create new files.

shift+super+alt+n: In addition to creating the folders specified, new folders will also contain an __init__.py file.

Settings

Default settings can be seen by navigating to Preferences -> Packages Settings -> AdvancedNewFile - Default. To modify the default settings, navigate to Preferences -> Packages Settings -> AdvancedNewFile -> User.

alias:

A dictionary that contains a set of aliases tied to a directory. For more information, see Aliases

os_specific_alias:

A dictionary containing a set of aliases tied to a directory. These aliases will be platform specific. For more information, see Platform Specific Aliases

default_initial:

A string that will be automatically inserted into the new file creation input.

use_cursor_text:

A boolean value determining if text from a buffer, bound by quotes or a selected region, will be auto inserted into the new file generation input field. If multiple cursors are used, the first entry either contained in quotes, are a selected region, will be used.

show_files:

A boolean value determining if regular files should be included in the autocompletion list.

show_path:

A boolean value used to determine if the path of the file to be created should be displayed in the status bar.

default_root:

This value is used to determine the default root when using AdvancedNewFile. It must be one of the following values:

  • project_folder- The default path will be the folder specified by the 'default_folder_index' setting.
  • current - The default path will be the directory of the current active view.
  • home - The default path will be your home directory.
  • path - The default path will be defined by the setting default_path

If the current view's directory cannot be resolved, the top level folder in the window will be used. If the top level folder in the window cannot be resolved either, the home directory will be used.

default_path:

This path is used as the default if path has been specified for the setting default_root. This path should be absolute. If a relative path is specified, it will be relative to the AdvancedNewFile package directory.

default_folder_index:

An integer value representing a folder index to be used when "folder" is specified for "default_root". If an index outside of the range of existing folders is used, it will default to 0 (the top level folder).

alias_root:

This entry defines the root that will be used when resolving aliases defined as relative paths. For more information about valid entries, see default_root. Note that for path, alias_path will be specified.

alias_path:

This path is used as the default if path has been specified for the setting alias_root.

alias_folder_index:

An integer value representing the folder index to use when "folder" is specified for "alias_root". If an index outside of the range of the existing folders is used, it will default to 0.

ignore_case:

A boolean specifying if case should be ignored when building auto complete list.

auto_refresh_sidebar:

A boolean specifying if folders should automatically refresh and update the sidebar. In some builds, the sidebar does not refresh when contents of project folder are updated. This setting is required to refresh the sidebar in these circumstances. False by default.

completion_type:

A string specifying the type of auto completion to use. Valid values are "windows" or "nix".

complete_single_entry

A boolean setting specifying if a separator should be inserted when there is only one completion and completion type is "windows"

use_folder_name:

A boolean setting specifying if the folder name should be used or the name specified in the project. This setting only applies to ST3.

relative_from_current:

Boolean setting specifying if relative paths should be based on the current working directory.

default_extension:

String containing the default file extension. Note the extension is only applied if the specified path does not contain a dot (.) character.

folder_permissions:

String representing permissions to be applied to newly created folders. E.g. "777" -> RWX for user, group, and other.

file_permissions:

String representing permissions to be applied to newly created files. E.g. "777" -> RWX for user, group, and other.

rename_default:

Default input for renaming a file. Special value <filename> will be replaced with the current file name. Special value <filepath> will be replaced with the complete filepath, including the filename. Special value <filedirectory> will be replaced with the filepath, not including the filename. Note that a colon as the default will resolve to the same path as <filedirectory>, if the file exists on disk.

vcs_management:

Setting to control if VCS management is used when moving and removing files.

file_templates:

An object containing information to use for templates when creating new files. The key values for this object should be a file extension. Files without extensions such as "Makefile" or ".bash_profile" use the full file name as the key. The value may either be a string of the content to be inserted or a list of paths. If a list of paths is specified, the name of the file will be displayed during selection. The paths must either be absolute, from the home directory of the user (~/), or relative to the Packages directory. These relative files should have the form "Packages/User/mytest.sublime-snippet". If a string is used, or the list contains a single entry, it will be automatically inserted into any newly created files.

shell_input:

Setting this value to true will allow you to escape characters as you normally would when using a shell. For example, given the input string "foo\ bar", false would result in a file named " bar" in the foo directory. With the value set to true, a file named "foo bar" would be created. In addition, setting this value to true will allow for curly brace expansion. Currently, only comma separated entries are supported.

append_extension_on_move:

Setting to control if the extension will be automatically applied to renamed files.

relative_fallback_index:

An integer value representing a folder index to be used when a relative path cannot be resolved from the current active view. If an index outside of the range of existing folders is used, it will default to 0 (the top level folder). If no folders exist as part of the project the home directory will be used.

append_extension_on_copy:

Setting to control if the extension will be automatically applied to copied files.

copy_default:

Same as rename_default, applied to copy command.

cut_to_file_default:

Same as rename_default, applied to cut to file command.

current_fallback_to_project:

If default_root is set to current, the project folder should be used as the default rather than the home directory.

warn_overwrite_on_move:

If a warning should be displayed when trying to overwrite an existing file using the move command.

new_file_default_root: Same as default_root for new file commands. In addition to the valid values listed for default_root, "default_root" will use the value for that setting.

rename_file_default_root: Same as default_root for rename file commands. In addition to the valid values listed for default_root, "default_root" will use the value for that setting.

copy_file_default_root: Same as default_root for copy file commands. In addition to the valid values listed for default_root, "default_root" will use the value for that setting.

empty_filename_action: On empty input of file name, execute an alternative action. Currently only implemented for the new file command, which will open a new unnamed file. Default value is false

cursor_before_extension: When specifying initial input, this boolean will place the cursor prior to the last occurring dot. Default value is False.

Project Specific Settings

All of the above settings can also be specified as part of the project specific settings. These values override any previous values set by higher level settings, with aliases being an exception. Alias settings will be merged with higher level configurations for alias. In addition, if the same alias exist for both default/user settings and project settings, the project setting will take precedence.

"settings": {
    "AdvancedNewFile": {
        "default_initial": "/project/specific/path"
    }
}

Features

init.py creation:

This plugin may optionally create __init__ in the created directories. Please reference Key Maps to see the default key bindings to do this.

Tab Autocompletion:

After typing in a partial path, simply press tab to autocomplete it. Continue to press tab to cycle through the options.

Advanced Path Usage

Home directory:

To begin at the home directory simply start with ~/ like you would in the shell.

Aliases:

You can create an alias to quickly navigate to a directory. Simply type in the alias followed by a colon. Then specify the path as you would normally. Note, in an event a specified alias conflicts with a predefined alias, the specified alias will take precedence.

Alias paths may be relative or absolute. If a relative path is specified, the alias_root setting will be used as the base. When specifying absolute paths, be sure to use the system specific style (e.g. Windows C:\\Users\\username\\Desktop, OS X and Linux /home/username/desktop/). In addition, you may specify an alias from the home directory by using ~/.

If an invalid alias is specified, an error pop up will be displayed when trying to create the file.

Sample aliases:

{
    "alias": {
        "Desktop": "~/Desktop/"
    }
}

To use the above alias, when specifying a new file enter Desktop:testDir/testFile, which would then create a file at <home_directory>/Desktop/testDir/testFile.

Platform Specific Aliases

You can also create aliases that are platform specific. These follow a similar set of rules as aliases. However, rather than specifying a string path to use, a dictionary is specified. This dictionary may contain the following keys: windows, linux, and osx. The path for this particular alias will be used based on the operating system in use. If the same alias is specified in both alias and os_specific_alias, the path in os_specific_alias will be used.

Sample OS Specific Aliases:

{
    "os_specific_alias": {
        "subl_packages": {
            "windows": "~\\AppData\\Roaming\\Sublime Text 2\\Packages",
            "linux": "~/.config/sublime-text-2/Packages",
            "osx": "~/Library/Application Support/Sublime Text 2/Packages"
        }
    }
}
Predefined Aliases
Top level folders in window

Top level folders can be specified by typing in the name of the folder followed by a colon. Then specify the path as you would normally.

Note

In Sublime Text 2, the name of the folder will be the actual name of the folder, not an arbitrary name specified in the project. However, due to an API update, folder names in Sublime Text 3 will match the Side Bar names. To achieve a similar behavior in Sublime Text 2, you can create Project Specific Settings for alias.

Current Working Directory

To specify the current working directory, simply type a colon, without any preceding text. Alternatively, set relative_from_current to true in your settings. Paths specified as relative paths will then begin from the current working directory.

Notes

Thanks to Dima Kukushkin (xobb1t) for the original work on this plugin. Also, thank you to facelessuser, and by extension biermeester and matthjes for the idea of platform specific settings. Additional thanks to kemayo for the work in identifying git executable.

Libraries Used

  • ushlex - Improved version of shlex, supporting unicode characters for Python 2.

Contributors

advancednewfile's People

Contributors

abhbh avatar alirezas avatar breunigs avatar btsai avatar cibinmathew avatar deathaxe avatar edmundask avatar farhansalam avatar ggreer avatar sapegin avatar skuroda avatar stoivo avatar xobb1t avatar yogiben 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  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

advancednewfile's Issues

Not possible to create file using absolute path in Windows

After starting to type filename like: "D:\SomeFolder\somenewfile.txt" autocompletion for SomeFolder works fine.
Status bar shows message "Creating file at C:\SomeFolder". After hiting enter it creates a window for new file with name: "c:omeFolder\somenewfile.txt" (first letter from folder is absent). This file is not possible to save (wrong filename)
In console there is a warning: "advancedNewFile[Warning]: No alias found for 'd'"
I guess because of ":" D considered as a alias, not as a part of path.

Is there any workaround to fix it?

Initial value while renaming

Can you add a feature to prefill the initial value , with the same file name
appending ':' to denote the same folder?

Get path from current opened folder

Good idea but plugin is useles for me becase of one thing: it always try to create files not where I expect them.

What I want is an option to create files in the same folder as active opened file in Sublime.

Most of options are disabled in the menu

I use ST3 and most of menu actions are disabled (i suspect permissions problems, but even if i run sublime as a root, it doesn't help). Though, this plugin works well in ST2 with the same files which makes me think there is an issue for ST3 support.

Hot key not work when use_cursor_text is on

Hello,

I use key ctrl+n for advanced_new_file command. It works fine. But when I turn on the use_cursor_text, I cannot open new file panel anymore. I tried ctrl+n, ctrl+alt+n, shift+ctrl+alt+n but none of it works.

I use Sublime Text 3 on Windows 7 x64

Not working on windows 8

I have used it in the pass previous versions of windows / linux (ubuntu), now when i right click to get more options don't get anything but the ones that sublime has already built in, is there anything i can do to provide more information for you to debug further let me know. Thanks.

Ability to remove 'New File' from Window Menu (Windows)

Hi skuroda, is there a way to easily disable the 'New File' shortcut in the Window Menu?

I'm very used to hitting Alt-Space, n, to minimize the window I'm focused on, and having New File in this spot binded to n means it competes for the action.

st2-anf-windowmenu

Going up the folder tree

As mentioned here, : can be used to make a file in the same folder. But it is currently not possible to go up the tree. Or at least I'm unaware as to how this can be achieved.

And it would be nice to use something like the default . to indicate the current folder and .. to indicate the parent folder rather than :.

Autocompletion right after alias name

If I enter a alias name, say "docs:", then press Ctrl + Space expecting to get autocompletion list with list of folders inside docs, but nothing is shown.
If there are several aliases with same prefix, say "docs" and "documentaiton" it will show this aliases instead of list of dirs inside current aliased directory.

I see that continue_previous_autocomplete method in PathAutocomplete returns true, so new list of suggestions is not build, no glue how to fix it myself, could you fix it or give me a direction?

Default key binding not working on a mac

I'm pretty new at this so bear with me. I'm trying to make sure I don't overlook the obvious before hitting send.

I installed AdvancedNewFile into Sublime Text 2 on a mac with Package Control after watching the tuts+ course. I did not need to enable it.

I want to get the alt+super+N combination to work and I haven't succeeded yet.
The shift+alt+super+N combination works out of the box.

I could not find AdvancedNewFile with shift+command+P.
So I added the .sublime-commands file mentioned in the README.
Then I could pull it up in the command palette with shift+super+P, "adv".

I installed FindKeyConflicts.
When I use shift+super+P to bring up the command palette,
then type "find" for FindKeyConflicts, and select Command Search,
AdvancedNewFile is there for three commands. The alt+super+N
key binding shows up in the result, and if I click on it it works.

I tried FindKeyConflicts All Key Maps to Buffer, and searched for "+n" and found no
conflicts for alt+super+N.

I tried the console too and found that no commands were registering when I hit alt+super+N. Other key combinations showed in the console.

I created a user key-bindings file, but that didn't work either.

Any advice on how to get the alt+super+N to work?

Base path for project

Hi,
in a project where you have you main codebase not directly under the project path you can find yourself typing the same path "prefix" over and over again.

It would be cool if we could setup a relative path option in project settings to mark as a default path being prefilled when openning the dialogue - it's much faster to just delete it in those 2% of cases where it should be somewhere else

Thanks

Unable to fill status bar without view

If you open a project like subl --project foobar.sublime-project opposed to opening a folder and then switch to the project, first time you try to create a new file status bar says: “Unable to fill status bar without view”.

Any ideas please?

Open in Browser

"Browser "chrome" not found! Is installed? Which location...?"

This is the message i get when i try to "Open in Browser" a flie.

Where can i find setup for browser command ?

Thank you in advance,
Ounos

Unknown P13 folder pops up

I have a directory structure as such
Browsing log
2013 > August > August 13, 2013.txt

When I type in Browsing hit tab, Browsing Log/ pops up. But after that when I type in 2 or 20 or 201 or 2013 and hit tab Browsing Log/2 becomes P13/. I don't have such a folder in my directory structure. This issue is there on Windows and Ubuntu, in ST2 and ST3 for me. Its only been a week since this issue popped up. I even reverted to sublime 'factory' settings twice but the issue still prevails.

No longer shows up in Command List

For the last month or so since the chance I've thought the plugin was broken, or was only supported on Sublime 3.

Now I've checked and I see there's a hotkey to still do it but I miss the ability to type it from the command palette.

What are the chances we can see this back? :)

No options in menu of Sublime Text 3

Hello,
I'm trying to use this plugin with Sublime Text 3 and it's not working.
I don't have any option in the command palette for the plugin.
The console doesn't show any error.
I'm on Ubuntu 13.04 64bits.
I've also tryied to install it with a fresh installation but it's the same result.

Thanks !

Default new directory permissions

Can you add an option that allows us to customize the permissions of any new directories created? Right now it defaults to 777 and I have to chmod all of them to 755.

Tab completion should be protected from snippets

I am come across a bit of an annoyance.

I often need to add a file in a directory called 'client'. My instinct is to type 'cl -> tab'.

Because I have a snippet using 'cl' as a tab trigger, that snippet is running in the new file dialogue, and given priority over matching folder.

I can see how snippets might be useful within the new file dialogue, but maybe priority should be given to folder matches?

Can't get Aliases to work

Hello,

I've downloaded your plugin called AdvancedNewFile and installed it into Sublime Text 2 on my Mac.

I want to add an alias so I can create a new file by doing:

xampp/hello.html

and it will create hello.html in /Applications/XAMPP/htdocs/hello.html

How can I set this up in my User settings? Currently my user settings look like this:

{
    "alias": {
        "xampp": "../../../Applications/XAMPP/htdocs/"
    }
}

and this doesn't work. Any Ideas?

Create new file key binding

Well, this may not really be an issue but, just saying, I'm using a Windows pc and the default key binding is alt+n, but this alt is the right alt (left one triggers the menu bar of the actual window on Windows). So, the right alt is used to insert special characters (alt+a = á, alt+m = µ, alt+e = é, alt+o = ó ...) when your keyboard is configured as "United States International". So it happens that alt+n = ñ and as that keybinding is being used for advance new file, you can't input ñ.

Yes, I know I can change the key binding and all that, I'm just saying. Also, the default setting's file has this line:

{ "keys": ["ctrl+alt+n"], "command": "advanced_new_file"}

But just pressing alt+n triggers it. Why is that?

"Command alt n" shortcut not working on Mac?

I'm getting the following console error when I try and utilize the "cmd alt n" shortcut on my mac:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 350, in run_
  File "./AdvancedNewFile.py", line 10, in run
  File "./AdvancedNewFile.py", line 18, in get_root
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 119, in dirname
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Any idea as to what's going on here?

create dirs structure

This is a feature request.

Currently typing assets\css\ will create the folder structure assets\css but an error pops up saying "Cannot open view for blah\assets\css. It is a directory"

It'd be great if AdvancedNewFile was smart enough to know that this was intended and just create the directory structure without the error message.

Great plugin by the way!
Thanks.

alias inserted twice

My settings:

{
    "default_root": "current",
    "alias": {
        "css": "files/stylesheets/",
        "js": "files/javascripts/"
    }
}

When I create a new file and type css:filename, it tries to make the file at files/javascripts/files/stylesheets/filename. Similar, with js:filename I am getting files/javascripts/files/javascripts/filename.

With absolute path, it works fine. However, that's not what you want in a project, right?

remove "New File" from sidebar context when "Advanced New File" is enabled

Not sure why it was changed but in the old version this plugin modified what "New File" does instead of adding another "Advanced New File" to the context menu. Although I could just get used to using the shortcut key if I want to use the mouse it's going to be irritating to click on the wrong one.

use_cursor_text error

If you're not busy @skuroda,

You might want to considering having the prompt "Enter path for new file:" be populated with selected text or string text under the curser.

It might be useful to see how https://github.com/SublimeText/Open-Include handles this.

Edit: Changed Title to "use_cursor_text error"

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 339, in run_
  File ".\AdvancedNewFile.py", line 55, in run
  File ".\AdvancedNewFile.py", line 152, in show_filename_input
Boost.Python.ArgumentError: Python argument types in
    Window.show_input_panel(Window, str, NoneType, instancemethod, instancemethod, instancemethod)
did not match C++ signature:
    show_input_panel(class SP<struct edit_window::reference>, class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >, class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >, class boost::python::api::object, class boost::python::api::object, class boost::python::api::object)

tab_size ignored

The plugin does not honor the tab_size preference when creating a new file. Instead always (read: frustratingly!) defaulting to 4 spaces.

Windows path error

On Windows 64bits:

super+alt+N -> test\folder\index.html
then crtl-S to save index.html path become double " C::\ " fail to save

How to show side_bar menu

Hello,

I would like to have an option to rename the currently opened file when right clicking on the file in the side bar.

Therefore I set "show_sidebar_menu": true but still I only have the option close when I right click on a file in the sidebar.

This is how it looks like:

This is better, but not exactly what I was looking for...

I wanted to say that this does ease some of the pain of creating new folders/files in Sublime Text 2. However, this doesn't do exactly what I was hoping for. What I'm looking for may have to be implemented by Jon himself. Not sure.

Reason why I'm posting this is just so it's out there somewhere, and this seems like a good enough place to put it.

My ideal workflow:

  • CTRL+0 -> Go into the sidebar.
  • Use keyboard nav to jump in and out of folders.
  • Use keyboard shortcuts to create files/folders based upon the selected folder level in the sidebar.

Some other advancements:

  • Auto "touch" files as they are created, so I don't have to manually save.
  • Don't create non-extension files for empty folders that are created.
  • Be able to create new folders/files when no files are open in the view.

I might think of more things, but these additions would make it a world better for me. I might take a stab at it myself, if I can get the time.

Changelog?

I may be missing it (i've been searching for about 5 mins now) - is there a change log available?

Where do settings go?

The README.md has many interesting settings described. However, it does not say which file should contain them. Want to give us a hint?

Have to restart after install

In order for AdvancedNewFile to work, I had to restart Sublime.

Is this the expected behavior? If so, it should be documented on the Install instructions.

Default file extension

Allow default file extension to be specified when creating files. Will apply if filename does not match the pattern *.*

Readme.md example

In the Readme example, there is a colon missing after: "subl_packages".

{
"os_specific_alias": {
"subl_packages" {
"windows": "\AppData\Roaming\Sublime Text 2\Packages",
"linux": "
/.config/sublime-text-2/Packages",
"osx": "~/Library/Application Support/Sublime Text 2/Packages"
}
}
}

ERROR Exception: Permission Denied - OSX - Local Files

"[AdvancedNewFile] ERROR Exception: Permission denied"

I have tried opening from the working folder from the terminal and from the finder. I have also tried sudo opening from the terminal. In all cases I am not able to create new folders or files with the shortcut command. I think the fix may be pretty simple but I am not seeing it. Any advice?

Inconsistent errors when trying to create a file.

Based on comment.

Inconsistent errors when specifying paths as follows:

/folder:folder2/file.ext

error: Cannot create '/folder:folder2'. See console for details
[AdvancedNewFile] ERROR Exception: Access is denied '/'

/folder:folder2/file.ext

error: Cannot create '/folder:folder2/file.ext'. See console for details
[AdvancedNewFile] ERROR Exception: The directory name is invalid '/folder:folder2'

Create file from sidebar context menu

Hi,

I see Jeffrey Way right click on the folder at the sidebar, choose New File and the new file panel show up. But when I do that, Sublime Text 3 just create new blank file without asking for file name. Is there anyway to achieve that?

Home ~ does not expand

It is frequent to make test files there in the Desktop or paths easily referred from the Home ~ directory, but Advanced New File is not aware of the meaning of that ~ and builds a funny ~/Desktop/file for example inside your current path.

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.