editor

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const (
	GONEOVIMVERSION = "v0.4.3"
	WorkspaceLen    = 20
)
View Source
const (
	GonvimMarkdownBufName                 = "__GonvimMarkdownPreview__"
	GonvimMarkdownToggleEvent             = "gonvim_markdown_toggle"
	GonvimMarkdownNewBufferEvent          = "gonvim_markdown_new_buffer"
	GonvimMarkdownUpdateEvent             = "gonvim_markdown_update"
	GonvimMarkdownScrollDownEvent         = "gonvim_markdown_scroll_down"
	GonvimMarkdownScrollUpEvent           = "gonvim_markdown_scroll_up"
	GonvimMarkdownScrollTopEvent          = "gonvim_markdown_scroll_top"
	GonvimMarkdownScrollBottomEvent       = "gonvim_markdown_scroll_bottom"
	GonvimMarkdownScrollPageDownEvent     = "gonvim_markdown_scroll_pagedown"
	GonvimMarkdownScrollPageUpEvent       = "gonvim_markdown_scroll_pageup"
	GonvimMarkdownScrollHalfPageDownEvent = "gonvim_markdown_scroll_halfpagedown"
	GonvimMarkdownScrollHalfPageUpEvent   = "gonvim_markdown_scroll_halfpageup"
)
View Source
const (
	GithubLangMercury              = "#ff2b2b"
	GithubLangTypeScript           = "#2b7489"
	GithubLangPureBasic            = "#5a6986"
	GithubLangObjectiveCpp         = "#6866fb"
	GithubLangSelf                 = "#0579aa"
	GithubLangedn                  = "#db5855"
	GithubLangNewLisp              = "#87AED7"
	GithubLangJupyterNotebook      = "#DA5B0B"
	GithubLangRebol                = "#358a5b"
	GithubLangFrege                = "#00cafe"
	GithubLangDart                 = "#00B4AB"
	GithubLangAspectJ              = "#a957b0"
	GithubLangShell                = "#89e051"
	GithubLangWebOntologyLanguage  = "#9cc9dd"
	GithubLangxBase                = "#403a40"
	GithubLangEiffel               = "#946d57"
	GithubLangNix                  = "#7e7eff"
	GithubLangRAML                 = "#77d9fb"
	GithubLangMTML                 = "#b7e1f4"
	GithubLangRacket               = "#22228f"
	GithubLangElixir               = "#6e4a7e"
	GithubLangSAS                  = "#B34936"
	GithubLangAgda                 = "#315665"
	GithubLangwisp                 = "#7582D1"
	GithubLangD                    = "#ba595e"
	GithubLangKotlin               = "#F18E33"
	GithubLangOpal                 = "#f7ede0"
	GithubLangCrystal              = "#776791"
	GithubLangObjectiveC           = "#438eff"
	GithubLangColdFusionCFC        = "#ed2cd6"
	GithubLangOz                   = "#fab738"
	GithubLangMirah                = "#c7a938"
	GithubLangObjectiveJ           = "#ff0c5a"
	GithubLangGosu                 = "#82937f"
	GithubLangFreeMarker           = "#0050b2"
	GithubLangRuby                 = "#701516"
	GithubLangComponentPascal      = "#b0ce4e"
	GithubLangArc                  = "#aa2afe"
	GithubLangBrainfuck            = "#2F2530"
	GithubLangNit                  = "#009917"
	GithubLangAPL                  = "#5A8164"
	GithubLangGo                   = "#00ADD8"
	GithubLangVisualBasic          = "#945db7"
	GithubLangPHP                  = "#4F5D95"
	GithubLangCirru                = "#ccccff"
	GithubLangSQF                  = "#3F3F3F"
	GithubLangGlyph                = "#e4cc98"
	GithubLangJava                 = "#b07219"
	GithubLangMAXScript            = "#00a6a6"
	GithubLangScala                = "#DC322F"
	GithubLangMakefile             = "#427819"
	GithubLangColdFusion           = "#ed2cd6"
	GithubLangPerl                 = "#0298c3"
	GithubLangLua                  = "#000080"
	GithubLangVue                  = "#2c3e50"
	GithubLangVerilog              = "#b2b7f8"
	GithubLangFactor               = "#636746"
	GithubLangHaxe                 = "#df7900"
	GithubLangPureData             = "#91de79"
	GithubLangForth                = "#341708"
	GithubLangRed                  = "#ee0000"
	GithubLangHy                   = "#7790B2"
	GithubLangVolt                 = "#1F1F1F"
	GithubLangLSL                  = "#3d9970"
	GithubLangeC                   = "#913960"
	GithubLangCoffeeScript         = "#244776"
	GithubLangHTML                 = "#e44b23"
	GithubLangLex                  = "#DBCA00"
	GithubLangAPIBlueprint         = "#2ACCA8"
	GithubLangSwift                = "#ffac45"
	GithubLangC                    = "#555555"
	GithubLangAutoHotkey           = "#6594b9"
	GithubLangIsabelle             = "#FEFE00"
	GithubLangMetal                = "#8f14e9"
	GithubLangClarion              = "#db901e"
	GithubLangJSONiq               = "#40d47e"
	GithubLangBoo                  = "#d4bec1"
	GithubLangAutoIt               = "#1C3552"
	GithubLangClojure              = "#db5855"
	GithubLangRust                 = "#dea584"
	GithubLangProlog               = "#74283c"
	GithubLangSourcePawn           = "#5c7611"
	GithubLangAMPL                 = "#E6EFBB"
	GithubLangFORTRAN              = "#4d41b1"
	GithubLangANTLR                = "#9DC3FF"
	GithubLangHarbour              = "#0e60e3"
	GithubLangTcl                  = "#e4cc98"
	GithubLangBlitzMax             = "#cd6400"
	GithubLangPigLatin             = "#fcd7de"
	GithubLangLasso                = "#999999"
	GithubLangECL                  = "#8a1267"
	GithubLangVHDL                 = "#adb2cb"
	GithubLangElm                  = "#60B5CC"
	GithubLangPropellerSpin        = "#7fa2a7"
	GithubLangX10                  = "#4B6BEF"
	GithubLangIDL                  = "#a3522f"
	GithubLangATS                  = "#1ac620"
	GithubLangAda                  = "#02f88c"
	GithubLangUnity3DAsset         = "#ab69a1"
	GithubLangNu                   = "#c9df40"
	GithubLangLFE                  = "#004200"
	GithubLangSuperCollider        = "#46390b"
	GithubLangOxygene              = "#cdd0e3"
	GithubLangASP                  = "#6a40fd"
	GithubLangAssembly             = "#6E4C13"
	GithubLangGnuplot              = "#f0a9f0"
	GithubLangJFlex                = "#DBCA00"
	GithubLangNetLinx              = "#0aa0ff"
	GithubLangTuring               = "#45f715"
	GithubLangVala                 = "#fbe5cd"
	GithubLangProcessing           = "#0096D8"
	GithubLangArduino              = "#bd79d1"
	GithubLangFLUX                 = "#88ccff"
	GithubLangCSharp               = "#178600"
	GithubLangCSS                  = "#563d7c"
	GithubLangEmacsLisp            = "#c065db"
	GithubLangStan                 = "#b2011d"
	GithubLangSaltStack            = "#646464"
	GithubLangQML                  = "#44a51c"
	GithubLangPike                 = "#005390"
	GithubLangLOLCODE              = "#cc9900"
	GithubLangooc                  = "#b0b77e"
	GithubLangHandlebars           = "#01a9d6"
	GithubLangJ                    = "#9EEDFF"
	GithubLangMask                 = "#f97732"
	GithubLangEmberScript          = "#FFF4F3"
	GithubLangTeX                  = "#3D6117"
	GithubLangNemerle              = "#3d3c6e"
	GithubLangKRL                  = "#28431f"
	GithubLangRenPy                = "#ff7f7f"
	GithubLangUnifiedParallelC     = "#4e3617"
	GithubLangGolo                 = "#88562A"
	GithubLangFancy                = "#7b9db4"
	GithubLangOCaml                = "#3be133"
	GithubLangShen                 = "#120F14"
	GithubLangPascal               = "#b0ce4e"
	GithubLangFSharp               = "#b845fc"
	GithubLangPuppet               = "#302B6D"
	GithubLangActionScript         = "#882B0F"
	GithubLangDiff                 = "#88dddd"
	GithubLangRagelInRubyHost      = "#9d5200"
	GithubLangFantom               = "#dbded5"
	GithubLangZephir               = "#118f9e"
	GithubLangClick                = "#E4E6F3"
	GithubLangSmalltalk            = "#596706"
	GithubLangDM                   = "#447265"
	GithubLangIoke                 = "#078193"
	GithubLangPogoScript           = "#d80074"
	GithubLangLiveScript           = "#499886"
	GithubLangJavaScript           = "#f1e05a"
	GithubLangVimL                 = "#199f4b"
	GithubLangPureScript           = "#1D222D"
	GithubLangABAP                 = "#E8274B"
	GithubLangMatlab               = "#bb92ac"
	GithubLangSlash                = "#007eff"
	GithubLangR                    = "#198ce7"
	GithubLangErlang               = "#B83998"
	GithubLangPan                  = "#cc0000"
	GithubLangLookML               = "#652B81"
	GithubLangEagle                = "#814C05"
	GithubLangScheme               = "#1e4aec"
	GithubLangPLSQL                = "#dad8d8"
	GithubLangPython               = "#3572A5"
	GithubLangMax                  = "#c4a79c"
	GithubLangCommonLisp           = "#3fb68b"
	GithubLangLatte                = "#A8FF97"
	GithubLangXQuery               = "#5232e7"
	GithubLangOmgrofl              = "#cabbff"
	GithubLangXC                   = "#99DA07"
	GithubLangNimrod               = "#37775b"
	GithubLangSystemVerilog        = "#DAE1C2"
	GithubLangChapel               = "#8dc63f"
	GithubLangGroovy               = "#e69f56"
	GithubLangDylan                = "#6c616e"
	GithubLangE                    = "#ccce35"
	GithubLangParrot               = "#f3ca0a"
	GithubLangGrammaticalFramework = "#79aa7a"
	GithubLangGameMakerLanguage    = "#8fb200"
	GithubLangPapyrus              = "#6600cc"
	GithubLangNetLinxERB           = "#747faa"
	GithubLangClean                = "#3F85AF"
	GithubLangAlloy                = "#64C800"
	GithubLangSquirrel             = "#800000"
	GithubLangPAWN                 = "#dbb284"
	GithubLangUnrealScript         = "#a54c4d"
	GithubLangStandardML           = "#dc566d"
	GithubLangSlim                 = "#ff8f77"
	GithubLangPerl6                = "#0000fb"
	GithubLangJulia                = "#a270ba"
	GithubLangHaskell              = "#29b544"
	GithubLangNCL                  = "#28431f"
	GithubLangIo                   = "#a9188d"
	GithubLangRouge                = "#cc0088"
	GithubLangCpp                  = "#f34b7d"
	GithubLangAGSScript            = "#B9D9FF"
	GithubLangDogescript           = "#cca760"
	GithubLangNesC                 = "#94B0C7"
)
View Source
const DummyText = "dummy text"

Variables

This section is empty.

Functions

func InitEditor

func InitEditor()

InitEditor is

Types

type ByCol

type ByCol []map[string]interface{}

ByCol sorts locations by column

func (ByCol) Len

func (s ByCol) Len() int

Len of locations

func (ByCol) Less

func (s ByCol) Less(i, j int) bool

Less than

func (ByCol) Swap

func (s ByCol) Swap(i, j int)

Swap locations

type Cell added in v0.4.0

type Cell struct {
	// contains filtered or unexported fields
}

Cell is

type CmdContent

type CmdContent struct {
	// contains filtered or unexported fields
}

CmdContent is the content of the cmdline

type Cmdline

type Cmdline struct {
	// contains filtered or unexported fields
}

Cmdline is the cmdline

type ColorPalette added in v0.3.2

type ColorPalette struct {
	// contains filtered or unexported fields
}

ColorPalette is

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

Cursor is

type Editor

type Editor struct {
	// contains filtered or unexported fields
}

Editor is the editor

type Finder

type Finder struct {
	// contains filtered or unexported fields
}

Finder is a fuzzy finder window

type Font

type Font struct {
	// contains filtered or unexported fields
}

Font is

type HSV added in v0.4.0

type HSV struct {
	H, S, V float64
}

func (*HSV) Colorfulness added in v0.4.0

func (hsv *HSV) Colorfulness() *HSV

func (*HSV) RGB added in v0.4.0

func (hsv *HSV) RGB() *RGBA

type Highlight

type Highlight struct {
	// contains filtered or unexported fields
}

Highlight is

type HlChars added in v0.4.0

type HlChars struct {
	// contains filtered or unexported fields
}

type LeftStatusItem added in v0.3.3

type LeftStatusItem struct {
	// contains filtered or unexported fields
}

LeftStatusItem is left side statusline component

type Locpopup

type Locpopup struct {
	// contains filtered or unexported fields
}

Locpopup is the location popup

type Markdown

type Markdown struct {
	// contains filtered or unexported fields
}

Markdown is the markdown preview window

type Message

type Message struct {
	// contains filtered or unexported fields
}

Message is

type MessageItem

type MessageItem struct {
	// contains filtered or unexported fields
}

MessageItem is

type MiniMap added in v0.3.0

type MiniMap struct {
	Screen
	// contains filtered or unexported fields
}

MiniMap is

type Notification added in v0.3.0

type Notification struct {
	// contains filtered or unexported fields
}

Notification is

type Notify added in v0.3.0

type Notify struct {
	// contains filtered or unexported fields
}

Notify is

type NotifyButton added in v0.3.0

type NotifyButton struct {
	// contains filtered or unexported fields
}

NotifyButton is

type NotifyLevel added in v0.3.0

type NotifyLevel int

NotifyLevel is notification type like "warn", "error"

const (
	// NotifyInfo is a type of "information"
	NotifyInfo NotifyLevel = 0
	// NotifyWarn is a type of "warning"
	NotifyWarn NotifyLevel = 1
)

type NotifyOptionArg added in v0.3.0

type NotifyOptionArg func(*NotifyOptions)

NotifyOptionArg is

type NotifyOptions added in v0.3.0

type NotifyOptions struct {
	// contains filtered or unexported fields
}

NotifyOptions is

type Option added in v0.4.1

type Option struct {
	Fullscreen bool   `long:"fullscreen" description:"Open the window in fullscreen on startup"`
	Maximized  bool   `long:"maximized" description:"Maximize the window on startup"`
	Geometry   string `long:"geometry" description:"Initial window geomtry [e.g. 800x600]"`

	Server string `long:"server" description:"Remote session address"`
	Nvim   string `long:"nvim" description:"Excutable nvim path to attach"`
}

type Palette

type Palette struct {
	// contains filtered or unexported fields
}

Palette is the popup for fuzzy finder, cmdline etc

type PaletteResultItem

type PaletteResultItem struct {
	// contains filtered or unexported fields
}

PaletteResultItem is the result item

type PopupItem

type PopupItem struct {
	// contains filtered or unexported fields
}

PopupItem is

type PopupMenu

type PopupMenu struct {
	// contains filtered or unexported fields
}

PopupMenu is the popupmenu

type RGBA

type RGBA struct {
	R int
	G int
	B int
	A float64
}

RGBA is

func (*RGBA) HSV added in v0.4.0

func (rgba *RGBA) HSV() *HSV

func (*RGBA) Hex

func (rgba *RGBA) Hex() string

Hex is

func (*RGBA) QColor

func (rgba *RGBA) QColor() *gui.QColor

QColor is

func (*RGBA) String

func (rgba *RGBA) String() string

func (*RGBA) StringTransparent added in v0.4.0

func (rgba *RGBA) StringTransparent() string

type Screen

type Screen struct {
	// contains filtered or unexported fields
}

Screen is the main editor area

type ScrollBar added in v0.3.0

type ScrollBar struct {
	// contains filtered or unexported fields
}

ScrollBar is

type Signature

type Signature struct {
	// contains filtered or unexported fields
}

Signature is

type Statusline

type Statusline struct {
	// contains filtered or unexported fields
}

Statusline is

type StatuslineComponent added in v0.3.3

type StatuslineComponent struct {
	// contains filtered or unexported fields
}

StatuslineComponent is common widget component in statusline

type StatuslineEncoding

type StatuslineEncoding struct {
	// contains filtered or unexported fields
}

StatuslineEncoding is

type StatuslineFile

type StatuslineFile struct {
	// contains filtered or unexported fields
}

StatuslineFile is

type StatuslineFileFormat added in v0.3.0

type StatuslineFileFormat struct {
	// contains filtered or unexported fields
}

StatuslineFileFormat is

type StatuslineFilepath added in v0.3.3

type StatuslineFilepath struct {
	// contains filtered or unexported fields
}

StatuslineFilepath is

type StatuslineFiletype

type StatuslineFiletype struct {
	// contains filtered or unexported fields
}

StatuslineFiletype is

type StatuslineGit

type StatuslineGit struct {
	// contains filtered or unexported fields
}

StatuslineGit is

type StatuslineLint

type StatuslineLint struct {
	// contains filtered or unexported fields
}

StatuslineLint is

type StatuslineMode added in v0.3.3

type StatuslineMode struct {
	// contains filtered or unexported fields
}

StatuslineMode is

type StatuslinePos

type StatuslinePos struct {
	// contains filtered or unexported fields
}

StatuslinePos is

type Svg

type Svg struct {
	// contains filtered or unexported fields
}

Svg is

type SvgXML

type SvgXML struct {
	// contains filtered or unexported fields
}

SvgXML is

type Tab

type Tab struct {
	ID int

	Name string
	// contains filtered or unexported fields
}

Tab in the tabline

type Tabline

type Tabline struct {
	CurrentID int

	Tabs []*Tab
	// contains filtered or unexported fields
}

Tabline of the editor

type Window

type Window struct {
	// contains filtered or unexported fields
}

Window is

type Workspace

type Workspace struct {
	// contains filtered or unexported fields
}

Workspace is an editor workspace

func (*Workspace) InputMethodEvent

func (w *Workspace) InputMethodEvent(event *gui.QInputMethodEvent)

InputMethodEvent is

func (*Workspace) InputMethodQuery

func (w *Workspace) InputMethodQuery(query core.Qt__InputMethodQuery) *core.QVariant

InputMethodQuery is

type WorkspaceSide

type WorkspaceSide struct {
	// contains filtered or unexported fields
}

WorkspaceSide is

type WorkspaceSideItem

type WorkspaceSideItem struct {
	// contains filtered or unexported fields
}

WorkspaceSideItem is

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL