Home Download Buy Blog Forum Support

SideBar Enhanc.. (Clipboard, Open With., Reload renamed)

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby willi297 on Wed Oct 19, 2011 1:29 pm

Tito,
Would be awesome if you could fork this plugin over to the S2 GitHub org! Good stuff!
Greg
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Re: SideBar Enhancements (Files, Folder, Cut, Copy, Duplicate)

Postby tito on Thu Oct 20, 2011 11:21 am

MrMartineau wrote:
tito wrote:Can you please answer this:
tito wrote:...............

Additional questions! ( unrelated to above )
1) Over a photoshop file, pressing on context menu "Open / Run" opens photoshop?
2) Over a any file/folder, pressing on context menu "Reveal" opens Finder with the file/folder focused?
3) Careful with this one!! When you delete a file via the context menu, the file is sent to the "trash"?
Thanks

In answer to your questions:

1) This does not open Photoshop & with the command log turned on I get this:
Code: Select all
command: side_bar_open {"paths": ["/Users/MyUser/Dropbox/Work/Web/Clients (Current)/Client1/Logo/Logo.psd"]}

2) Reveal works as expected
3) Delete does not work for me

Open with return this in the console:
Code: Select all
command: side_bar_files_open_with {"application": "/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app", "extensions": "psd|png|jpg|jpeg|gif", "paths": ["/Users/MyUser/Dropbox/Work/Web/Clients (Current)/Client1/Logo/Logo.psd"]}


Mr thanks for your answers!

I think I have something.. please update the package
With this as the line of the application in the config file:
Code: Select all
"application": "/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app",


Try "open with.."

If still not working...

go to menu "view" -> "show console"
and try some of the following.. until you get the file opened.
1
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', '/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'])

2
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', '/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app', 'mypsd.psd'], cwd='/path/to/')

3
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'])

4
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'], cwd='/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/')

5
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Adobe\\ Photoshop\\ CS5.app', 'mypsd.psd'], cwd='/path/to/')

6
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Photoshop', 'mypsd.psd'], cwd='/path/to/')

7
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Photoshop', '/path/to/mypsd.psd'])


Hope you can open that file and tell me which command works.

___

I've some questions:
1 ) Can you open a photoshop file via "Open/Run" menuitem now? I think is fixed.
2 ) CAREFUL with this one: Is now a folder or file successfully sent to trash? If not, is there some message into the console?
Thanks in advance.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby tito on Mon Oct 24, 2011 6:22 am

An improvement to celebrate changes introduced on version 2134:

- After a file or folder is moved or renamed, the views(tabs) affected by the rename will reflect the new location(reload) keeping content, selections and scroll.

Any problem let me know

There is a little bug with scroll which differs a few lines, looks like I can't tell the editor to put line xxx on top, then I tell to put line xxx on bottom and because of the size of the "Rename box" the first line differs.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby tito on Wed Oct 26, 2011 6:55 am

Just to mention that I added bookmarks and marks to the bits copied when a view/file is moved from its location.

Also, users that can't select multiples files or folders is because "open files" option is turned off. Then, I reviewed the code to take care when multiples files/folders are selected.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby mfm on Thu Oct 27, 2011 5:56 am

Has there been any luck/attempt getting this plugin to work with the Side Bar "Open Files". I poked around a little bit and it looks like the open file items are handled differently than the project files, is this true? I only get "Close" as a menu item.

Nice plugin, it definitely adds some much needed functionality.
mfm
 
Posts: 1
Joined: Thu Oct 27, 2011 5:52 am

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby tito on Thu Oct 27, 2011 12:55 pm

Nope, at some point I think "Open Files" will act in a similar way to project folders on which "Remove Folder from Project" appears but the normal menu appears too.
Regards
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: SideBar Enhancements (Files, Folder, Cut, Copy, Duplicate)

Postby MrMartineau on Sun Oct 30, 2011 10:41 pm

tito wrote:Mr thanks for your answers!

I think I have something.. please update the package
With this as the line of the application in the config file:
Code: Select all
"application": "/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app",


Try "open with.."

If still not working...

go to menu "view" -> "show console"
and try some of the following.. until you get the file opened.
1
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', '/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'])

2
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', '/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app', 'mypsd.psd'], cwd='/path/to/')

3
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'])

4
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'], cwd='/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/')

5
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Adobe\\ Photoshop\\ CS5.app', 'mypsd.psd'], cwd='/path/to/')

6
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Photoshop', 'mypsd.psd'], cwd='/path/to/')

7
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', 'Photoshop', '/path/to/mypsd.psd'])


Hope you can open that file and tell me which command works.

___

I've some questions:
1 ) Can you open a photoshop file via "Open/Run" menuitem now? I think is fixed.
2 ) CAREFUL with this one: Is now a folder or file successfully sent to trash? If not, is there some message into the console?
Thanks in advance.


So after a lot of trial & more error with these 7 commands, I managed to get them all working! I did have to change your commands however; none of them worked in their provided state, so I experimented - removing backslashes, spaces etc - until I finally tried the commands without any backslashes & just entered the file/app locations as they & low & behold,they worked.

I had to change 6 & 7's app name to Adobe Photoshop CS5 as that's how my app is named.

Just so we're clear, here's one of them:
Code: Select all
import subprocess; subprocess.Popen(['open', '-a', '/Applications/Adobe CS5/Adobe Photoshop CS5/Adobe Photoshop CS5.app', 'Logo.psd'], cwd='/Users/mrmartineau/Dropbox/Work/Web/Clients (Current)/Company/Logo/')


After that I thought I would toy around with the sublime-menu file, which I got working. Instead of providing the app's location, I just provided the name (without backslashes if there are spaces etc) and it now works perfectly!! Here's my full sublime-menu file for reference:

Code: Select all
[
   {"id": "side-bar-files-open-with",
      "children":
      [

         //application 1
         {
            "caption": "Photoshop",
            "id": "side-bar-files-open-with-photoshop",

            "command": "side_bar_files_open_with",
            "args": {
                           "paths": [],
                           "application": "Adobe Photoshop CS5.app",
                           "extensions":"psd|png|jpg|jpeg|gif"  //any file with these extensions
                        }
         },

         //separator
         {"caption":"-"},

         //application 2
         {
            "caption": "Espresso",
            "id": "side-bar-files-open-with-espresso",

            "command": "side_bar_files_open_with",
            "args": {
                           "paths": [],
                           "application": "Espresso.app",
                           "extensions":"css" //open all even folders
                        }
         },
         //application n
         {
            "caption": "CSS Edit",
            "id": "side-bar-files-open-with-cssedit",

            "command": "side_bar_files_open_with",
            "args": {
                           "paths": [],
                           "application": "CSSEdit.app",
                           "extensions":"css" //any file with extension
                        }
         },

         {"caption":"-"}
      ]
   }
]


If you need more info, let me know..
@MrMartineau || Setup Sublime Text quickly: Find out all you need at https://github.com/mrmartineau/SublimeTextSetup
MrMartineau
 
Posts: 78
Joined: Thu Jul 28, 2011 8:35 am

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby tito on Mon Oct 31, 2011 12:53 pm

Thanks,
please update and let me know if still works for you.
Also, it would be good if you can test the button "Open / Run" and let me know
Regards
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby oaziz on Fri Dec 09, 2011 5:42 pm

I have buid 2144 and I installed it through the package control. It worked fine on Mac (Open With menu) after replacing the Windows config with the one posted by MrMartineau on his latest reply without any change.
oaziz
 
Posts: 15
Joined: Fri Dec 09, 2011 2:38 pm

Re: SideBar Enhancements (Clipboard, Move to Trash, Open With..)

Postby tito on Thu Jan 05, 2012 5:38 pm

This plugin has been updated:

Update v0.9:
------------------

* Minor tweaks and fixes.
* Fix: Re-enable move to trash for OSX
* New: Allow to display "file modified time" and "file size" on statusbar via preferences.
* Fix: Disable of built-in function is now automatic.
* On the way: exclude from project, promote as project folder. ( requires restart to apply changes, looks like there is no way to reload project files.)
* Fix: Many appends of same directory to "sys.path"
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 859
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 12 guests