Skip to content

Commit

Permalink
added "upload all" shortcut, prepare for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Yu committed Jan 8, 2015
1 parent bd02ca3 commit 5417439
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 13 deletions.
48 changes: 36 additions & 12 deletions README.md
Expand Up @@ -3,8 +3,35 @@ brackets-sftp-upload

SFTP/FTP upload plugin for brackets

## Features ##

* Keep track of changed files in your project
* Upload panel - you have total control over which to upload and which to skip
* Server settings for each project
* Store server settings in the extension folder, not the root folder of your projects, so no worry about uploading your credentials to your git repo.
* Right click menu command in your project panel, upload any specific file or folder you want.
* Also a good sample code to learn how brackets works with node.

## Getting Started ##

1. Open Extension Manager by clicking the building-blocky icon on the right side of Brackets;
2. Search for sftpupload;
3. Click Install;
4. Click the up-side arrow icon (on the right) to open the panel;
5. Navigate to your project, click "Server Setup" button and fill in your server info;
6. Now you can right-click on the files in your project, use Upload via SFTP to upload it to your server;
7. If you change and save a file within the project, it will show up in the bottom panel; you can click "Upload" to upload this file, "Skip" to skip a single file, or "Upload All" to upload all changed files to the server.
8. Shortcuts:
* (Ctrl-Alt-U / Cmd-Alt-U) to upload the current opening file;
* (Ctrl-Shift-U / Cmd-Shift-U) to upload all changed files;
* (Ctrl-Alt-Shift-U / Cmd-Alt-Shift-U) to open up Upload panel.

## Release Notes ##

version 1.3.1
- @dedo1911 added Italian translation.
- new shortcut for "Upload All": Ctrl-Shift-U.

version 1.3
- now saves server info in local user preferences.
- added an indicator icon in the right hand side.
Expand Down Expand Up @@ -32,20 +59,17 @@ version 1.2
- bug fix: setting dialog reverts to default value even when settings are changed
- feature: added new "upload on save" function


## Features ##

* Keep track of changed files in your project
* Upload panel - you have total control over which to upload and which to skip
* Server settings for each project
* Store server settings in the extension folder, not the root folder of your projects, so no worry about uploading your credentials to your git repo.
* Right click menu command in your project panel, upload any specific file or folder you want.
* Also a good sample code to learn how brackets works with node.

## Notes for developers ##

This repo does not include required node modules! For extension develops, please run
This repo does not include required node modules! For extension developers, please run

npm install

in the /node folder.
in the /node folder.

## Contributors ##

@bigeyex
@danielkratz
@mhentgesarrow
@dedo1911
3 changes: 3 additions & 0 deletions main.js
Expand Up @@ -28,6 +28,7 @@ define( function( require, exports, module ) {
// Extension basics.
COMMAND_ID = 'bigeyex.bracketsSFTPUpload.enable',
COMMAND_ID_UPLOAD = 'bigeyex.bracketsSFTPUpload.upload',
COMMAND_ID_UPLOAD_ALL = 'bigeyex.bracketsSFTPUpload.uploadAll',

Strings = require( 'modules/Strings' ),
dataStorage = require( 'modules/DataStorageManager' ),
Expand Down Expand Up @@ -60,13 +61,15 @@ define( function( require, exports, module ) {
// Register extension.
CommandManager.register( Strings.EXTENSION_NAME, COMMAND_ID, togglePanel );
CommandManager.register( Strings.UPLOAD_MENU_NAME, COMMAND_ID_UPLOAD, uploadMenuAction );
CommandManager.register( Strings.UPLOAD_ALL, COMMAND_ID_UPLOAD_ALL, uploadAllItems );


// Add command to menu.
if ( menu !== undefined ) {
menu.addMenuDivider();
menu.addMenuItem( COMMAND_ID, 'Ctrl-Alt-Shift-U' );
menu.addMenuItem( COMMAND_ID_UPLOAD, 'Ctrl-Alt-U' );
menu.addMenuItem( COMMAND_ID_UPLOAD_ALL, 'Ctrl-Shift-U' );
}

if ( contextMenu !== undefined ) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"title": "SFtpUpload",
"description": "Upload changed files in your project to a server via SFTP(SCP)/FTP, you have total control over which to upload through the changed files panel.\nContributors: danielkratz, mhentgesarrow ",
"homepage": "https://github.com/bigeyex/brackets-sftp-upload",
"version": "1.3.0",
"version": "1.3.1",
"author": "Wang Yu <bigeyex@gmail.com> (http://www.mit.edu/~wangyu/)",
"license": "MIT",
"engines": {
Expand Down

0 comments on commit 5417439

Please sign in to comment.