Module: ko/views

Easily interface with Komodo's views (tabs/editors)

Members


require("ko/views").manager

Access the view manager (see ko.views.manager)

Methods


require("ko/views").current()

Access the current (active) view (see ko.views.manager.currentView)

Returns an object containing:

get() - returns a propery from the currentView object, possible properties:

  • scintilla
  • scimoz
  • koDoc
  • file
  • filePath
  • prefs
  • language
  • type

For example:

require("ko/views").current().get("language")

gets the language for the current view

Returns:
Type
Object

require("ko/views").all()

Retrieve all views

Returns:
Type
Array

require("ko/views").editors()

Retrieve all editor views

Returns:
Type
Array

require("ko/views").getLeftSplit()

Get left splitview panel


require("ko/views").getLeftView()

Get left file view


require("ko/views").getRightSplit()

Get right splitview panel


require("ko/views").getRightView()

Get right file view


require("ko/views").isSplit()

Is Komodo in splitview mode?


require("ko/views").rotate()

Rotate the split view


require("ko/views").split()

Split the view