Home Download Buy Blog Forum Support

Always on top

Always on top

Postby PinnacleWebDesign on Thu Feb 18, 2010 8:17 am

A feature I need fairly often (when compiling/editing data and SQL files) and miss from Notepad++ is the option to keep the editor on top of other apps. If this could be considered for inclusion in Sublime it'd be really great!

Cheers,
Mick
PinnacleWebDesign
 
Posts: 33
Joined: Sun Aug 09, 2009 6:43 pm
Location: UK

Re: Always on top

Postby PinnacleWebDesign on Thu Feb 18, 2010 12:10 pm

I've just set up a new PC so I know what it's like. :o
I'll check out Actualtools - in the meantime I've discovered that I can do this with AutoHotKey:

;always on top for Sublime only - Win + s
#IfWinActive, ahk_class SKMainWindowClass
#s:: Winset, Alwaysontop, , A
return
#IfWinActive


Cheers,
Mick
PinnacleWebDesign
 
Posts: 33
Joined: Sun Aug 09, 2009 6:43 pm
Location: UK

Re: Always on top

Postby Sariam on Thu Aug 29, 2013 7:02 pm

I searched a lot on google but don't found how to set up sublime text 2 always on top after that i read your post but i have no idea how to apply that you share and put sublime always on top can you please do a how to guide ..
Sariam
 
Posts: 2
Joined: Fri Aug 16, 2013 7:39 am

Re: Always on top

Postby PinnacleWebDesign on Sun Sep 01, 2013 2:21 pm

@Sariam

Here's a couple of links that'll get you started with Autohotkey (assuming you're a Windows user):

http://www.howtogeek.com/56481/the-begi ... ey-script/
http://lifehacker.com/316589/turn-any-a ... d-shortcut

Once that's all set up, just drop the code into your main .ahk file (there's a ST syntax file for it from either Package Control or https://github.com/avi-aryan/AutoHotKey),run it and you're good to go.

I use a slightly different script now, which I use across all my apps - if you want to limit the function of this new script to ST just add it between these lines:

Code: Select all
#IfWinActive, ahk_class SKMainWindowClass

#IfWinActive


Otherwise here's the script (which is triggered by Win + t):

Code: Select all
#t::
ActiveHwnd := WinExist("A")
WinGetTitle, WindowTitle, ahk_id %ActiveHwnd%
WinGet, ExStyle, ExStyle, ahk_id %ActiveHwnd%
if (ExStyle & 0x8)
    OnTop=1
else
    OnTop=0
Winset, AlwaysOnTop, Toggle, ahk_id %ActiveHwnd%

StringReplace, WindowTitle, WindowTitle, %A_Space%- (Pinned)
if not OnTop
  WindowTitle:=WindowTitle . " - (Pinned)"

WinSetTitle, ahk_id %ActiveHwnd%,,%WindowTitle%
return



HTH

Cheers,
Mick
PinnacleWebDesign
 
Posts: 33
Joined: Sun Aug 09, 2009 6:43 pm
Location: UK

Re: Always on top

Postby Sariam on Mon Sep 02, 2013 9:46 pm

thanks :)
Sariam
 
Posts: 2
Joined: Fri Aug 16, 2013 7:39 am

Re: Always on top

Postby valerij on Sat Sep 28, 2013 3:18 pm

you could give DM2 a try, a nice window management enhancement tool
valerij
 
Posts: 3
Joined: Fri Sep 13, 2013 4:14 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 11 guests