KSnip / com.github.nwillc.ksnip.view / SnippetsView

SnippetsView

class SnippetsView : View

The view managing the snippets UI.

Constructors

<init>

SnippetsView()

The view managing the snippets UI.

Properties

root

val root: VBox

the root UI view.

workingSet

var workingSet: List<Snippet>

the set of snippets being displayed.

Functions

categorySelect

fun categorySelect(): Unit

Note selected category.

deleteSnippet

fun deleteSnippet(): Unit

Delete the current snippet.

exit

fun exit(): Unit

Exit the application.

find

fun find(): Unit

Focus on the find field.

minimize

fun minimize(): Unit

Minimize the UI.

openNew

fun openNew(): Unit

Open a new style file.

openOld

fun openOld(): Unit

Open a legacy file.

openPreferences

fun openPreferences(): Unit

Open the preferences panel.

refreshCategories

fun refreshCategories(): Unit

Refresh the categories displayed based on the workingSet.

refreshText

fun refreshText(): Unit

Refresh the snippet text.

refreshTitles

fun refreshTitles(): Unit

Refresh the titles list.

save

fun save(): Unit

Save the snippets to the default file.

saveAs

fun saveAs(): Unit

Save the snippets to another file.

saveSnippet

fun saveSnippet(): Unit

Save the current snippet.

search

fun search(): Unit

Search snippets titles and text.

tabChanged

fun tabChanged(): Unit

Note when a tab is changed.

updateSnippet

fun updateSnippet(): Unit

Update the snippet with the current values.

Companion Object Properties

JSON_FILTER

val JSON_FILTER: Array<ExtensionFilter>

File type filter for open panels.