Plugin: Preview Tabs

Browse, download and discuss plugins for Blumentals code editors
Post Reply
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Plugin: Preview Tabs

Post by Aivars »

Adds actions for changing preview tabs (Editor / Preview / Horizontal Split / Vertical Split) in menu. You can then assign keyboard shortcuts to these actions and switch between Preview and Editor without using mouse.
Attachments
preview tabs.zip
(537 Bytes) Downloaded 809 times
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin: Preview Tabs

Post by Aivars »

Code to use as an example:

Code: Select all

function TabEditor(Sender) {
  Document.PreviewTabIndex = 0;
}

function TabPreview(Sender) {
  Document.PreviewTabIndex = 1;
}

function TabHoriz(Sender) {
  Document.PreviewTabIndex = 2;
}

function TabVert(Sender) {
  Document.PreviewTabIndex = 3;
}

Script.RegisterDocumentAction("Change Preview Tab", "Editor", "", &TabEditor);
Script.RegisterDocumentAction("Change Preview Tab", "Preview", "", &TabPreview);
Script.RegisterDocumentAction("Change Preview Tab", "Horizontal Split", "", &TabHoriz);
Script.RegisterDocumentAction("Change Preview Tab", "Vertical Split", "", &TabVert);
Blumentals Software Programmer
chechnyan
Posts: 37
Joined: Mon Oct 01, 2012 4:37 pm

Re: Plugin: Preview Tabs

Post by chechnyan »

fully functional now i am fully mouse free.
really appreciate it .
thank you.
Post Reply