Home Download Buy Blog Forum Support

2 new plugins: Bound Keys and Find Selected

Re: 2 new plugins: Bound Keys and Find Selected

Postby facelessuser on Mon May 13, 2013 10:54 pm

One option is to use the input panel as a confirmation dialog. Insert "Y" or "N". I have done this myself in my HexViewer plugin (before sublime ever added okay_cancel dialogs; you could also use the quick panel and popup up the snooze option in the list or cancel). Or you could just allow a command to snooze it. The user can bind the snooze command to a shortcut or access it from the menu or command palette. In the latter case of just having a snooze command, there would be no dialog, the user would just need to execute the snooze command (this would be in the documentation).
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: 2 new plugins: Bound Keys and Find Selected

Postby CodeEffect on Mon May 13, 2013 11:16 pm

I assume from what you've said that it's expected behaviour?

That's a shame, the OK / Cancel is perfect as it flashes the task bar if you've not got ST in view and it's impossible to ignore (accidentally or otherwise) if you have it in view. Never mind, it'll have to be an option for ST2 users
CodeEffect
 
Posts: 20
Joined: Mon May 06, 2013 6:18 am

Re: 2 new plugins: Bound Keys and Find Selected

Postby facelessuser on Mon May 13, 2013 11:24 pm

Keep in mind that the core code of ST3 got a big overhaul in relation to synchronous and asynchronous stuff. That is some of the "improvements" to ST3.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: 2 new plugins: Bound Keys and Find Selected

Postby CodeEffect on Wed May 15, 2013 12:33 am

Updated with a tiny local wav file for the alarm now as it was just the easiest way all around + everything works as it should.

It uses afplay on OSX, aplay on Linux (requires ALSA) and a tiny (4KB) exe on windows (source code included) to play the alarm file. If anyone is on OSX and can test I'd be really grateful: https://github.com/CodeEffect/AlarmClock :D

Also, if this setup doesn't work for anyone (no alsa, OSX older than 10.5 etc etc) could they let me know and if at all possible advise an alternative please?
CodeEffect
 
Posts: 20
Joined: Mon May 06, 2013 6:18 am

Re: 2 new plugins: Bound Keys and Find Selected

Postby CodeEffect on Fri May 17, 2013 9:12 pm

Another one added: https://github.com/CodeEffect/FooLime

More of a hobby project this one, something for me to tinker with. Just putting it out there in case anyone else finds it of use.

A plugin for both Sublime Text 2 and 3 that allows you to control foobar2000 from the quick panel.


EDIT: Still looking for someone to test the OSX alarm clock if you've got 5 mins and a mac :D
CodeEffect
 
Posts: 20
Joined: Mon May 06, 2013 6:18 am

Previous

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 9 guests