editor

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 32 Imported by: 1

Documentation

Index

Constants

View Source
const (
	GithubLang1CEnterprise           = "#814CCC"
	GithubLangABAP                   = "#E8274B"
	GithubLangActionScript           = "#882B0F"
	GithubLangAda                    = "#02f88c"
	GithubLangAgda                   = "#315665"
	GithubLangAGSScript              = "#B9D9FF"
	GithubLangAlloy                  = "#64C800"
	GithubLangAMPL                   = "#E6EFBB"
	GithubLangAngelScript            = "#C7D7DC"
	GithubLangANTLR                  = "#9DC3FF"
	GithubLangAPIBlueprint           = "#2ACCA8"
	GithubLangAPL                    = "#5A8164"
	GithubLangAppleScript            = "#101F1F"
	GithubLangArc                    = "#aa2afe"
	GithubLangASP                    = "#6a40fd"
	GithubLangAspectJ                = "#a957b0"
	GithubLangAssembly               = "#6E4C13"
	GithubLangAsymptote              = "#4a0c0c"
	GithubLangATS                    = "#1ac620"
	GithubLangAutoHotkey             = "#6594b9"
	GithubLangAutoIt                 = "#1C3552"
	GithubLangBallerina              = "#FF5000"
	GithubLangBatchfile              = "#C1F12E"
	GithubLangBlitzMax               = "#cd6400"
	GithubLangBoo                    = "#d4bec1"
	GithubLangBrainfuck              = "#2F2530"
	GithubLangC                      = "#555555"
	GithubLangCSharp                 = "#178600"
	GithubLangCpp                    = "#f34b7d"
	GithubLangCeylon                 = "#dfa535"
	GithubLangChapel                 = "#8dc63f"
	GithubLangCirru                  = "#ccccff"
	GithubLangClarion                = "#db901e"
	GithubLangClean                  = "#3F85AF"
	GithubLangClick                  = "#E4E6F3"
	GithubLangClojure                = "#db5855"
	GithubLangCoffeeScript           = "#244776"
	GithubLangColdFusion             = "#ed2cd6"
	GithubLangCommonLisp             = "#3fb68b"
	GithubLangCommonWorkflowLanguage = "#B5314C"
	GithubLangComponentPascal        = "#B0CE4E"
	GithubLangCrystal                = "#000100"
	GithubLangCSS                    = "#563d7c"
	GithubLangCuda                   = "#3A4E3A"
	GithubLangD                      = "#ba595e"
	GithubLangDafny                  = "#FFEC25"
	GithubLangDart                   = "#00B4AB"
	GithubLangDataWeave              = "#003a52"
	GithubLangDhall                  = "#dfafff"
	GithubLangDM                     = "#447265"
	GithubLangDockerfile             = "#384d54"
	GithubLangDogescript             = "#cca760"
	GithubLangDylan                  = "#6c616e"
	GithubLangE                      = "#ccce35"
	GithubLangeC                     = "#913960"
	GithubLangECL                    = "#8a1267"
	GithubLangEiffel                 = "#946d57"
	GithubLangElixir                 = "#6e4a7e"
	GithubLangElm                    = "#60B5CC"
	GithubLangEmacsLisp              = "#c065db"
	GithubLangEmberScript            = "#FFF4F3"
	GithubLangEQ                     = "#a78649"
	GithubLangErlang                 = "#B83998"
	GithubLangFSharp                 = "#b845fc"
	GithubLangFStar                  = "#572e30"
	GithubLangFactor                 = "#636746"
	GithubLangFancy                  = "#7b9db4"
	GithubLangFantom                 = "#14253c"
	GithubLangFaust                  = "#c37240"
	GithubLangFLUX                   = "#88ccff"
	GithubLangForth                  = "#341708"
	GithubLangFortran                = "#4d41b1"
	GithubLangFreeMarker             = "#0050b2"
	GithubLangFrege                  = "#00cafe"
	GithubLangFuthark                = "#5f021f"
	GithubLangGcode                  = "#D08CF2"
	GithubLangGameMakerLanguage      = "#71b417"
	GithubLangGAML                   = "#FFC766"
	GithubLangGDScript               = "#355570"
	GithubLangGenie                  = "#fb855d"
	GithubLangGherkin                = "#5B2063"
	GithubLangGlyph                  = "#c1ac7f"
	GithubLangGnuplot                = "#f0a9f0"
	GithubLangGo                     = "#00ADD8"
	GithubLangGolo                   = "#88562A"
	GithubLangGosu                   = "#82937f"
	GithubLangGrammaticalFramework   = "#79aa7a"
	GithubLangGroovy                 = "#e69f56"
	GithubLangHack                   = "#878787"
	GithubLangHarbour                = "#0e60e3"
	GithubLangHaskell                = "#5e5086"
	GithubLangHaxe                   = "#df7900"
	GithubLangHiveQL                 = "#dce200"
	GithubLangHolyC                  = "#ffefaf"
	GithubLangHTML                   = "#e34c26"
	GithubLangHy                     = "#7790B2"
	GithubLangIDL                    = "#a3522f"
	GithubLangIdris                  = "#b30000"
	GithubLangIGORPro                = "#0000cc"
	GithubLangIo                     = "#a9188d"
	GithubLangIoke                   = "#078193"
	GithubLangIsabelle               = "#FEFE00"
	GithubLangJ                      = "#9EEDFF"
	GithubLangJava                   = "#b07219"
	GithubLangJavaScript             = "#f1e05a"
	GithubLangJolie                  = "#843179"
	GithubLangJSONiq                 = "#40d47e"
	GithubLangJsonnet                = "#0064bd"
	GithubLangJulia                  = "#a270ba"
	GithubLangJupyterNotebook        = "#DA5B0B"
	GithubLangKaitaiStruct           = "#773b37"
	GithubLangKotlin                 = "#F18E33"
	GithubLangKRL                    = "#28430A"
	GithubLangLasso                  = "#999999"
	GithubLangLex                    = "#DBCA00"
	GithubLangLFE                    = "#4C3023"
	GithubLangLiveScript             = "#499886"
	GithubLangLLVM                   = "#185619"
	GithubLangLOLCODE                = "#cc9900"
	GithubLangLookML                 = "#652B81"
	GithubLangLSL                    = "#3d9970"
	GithubLangLua                    = "#000080"
	GithubLangMacaulay2              = "#d8ffff"
	GithubLangMakefile               = "#427819"
	GithubLangMask                   = "#f97732"
	GithubLangMATLAB                 = "#e16737"
	GithubLangMax                    = "#c4a79c"
	GithubLangMAXScript              = "#00a6a6"
	GithubLangmcfunction             = "#E22837"
	GithubLangMercury                = "#ff2b2b"
	GithubLangMeson                  = "#007800"
	GithubLangMetal                  = "#8f14e9"
	GithubLangMirah                  = "#c7a938"
	GithubLangmIRCScript             = "#926059"
	GithubLangMLIR                   = "#5EC8DB"
	GithubLangModula3                = "#223388"
	GithubLangMQL4                   = "#62A8D6"
	GithubLangMQL5                   = "#4A76B8"
	GithubLangMTML                   = "#b7e1f4"
	GithubLangNCL                    = "#28431f"
	GithubLangNearley                = "#990000"
	GithubLangNemerle                = "#3d3c6e"
	GithubLangnesC                   = "#94B0C7"
	GithubLangNetLinx                = "#0aa0ff"
	GithubLangNetLinxERB             = "#747faa"
	GithubLangNewLisp                = "#87AED7"
	GithubLangNextflow               = "#3ac486"
	GithubLangNim                    = "#ffc200"
	GithubLangNit                    = "#009917"
	GithubLangNix                    = "#7e7eff"
	GithubLangNu                     = "#c9df40"
	GithubLangObjectiveC             = "#438eff"
	GithubLangObjectiveCpp           = "#6866fb"
	GithubLangObjectiveJ             = "#ff0c5a"
	GithubLangObjectScript           = "#424893"
	GithubLangOCaml                  = "#3be133"
	GithubLangOdin                   = "#60AFFE"
	GithubLangOmgrofl                = "#cabbff"
	GithubLangooc                    = "#b0b77e"
	GithubLangOpal                   = "#f7ede0"
	GithubLangOpenQASM               = "#AA70FF"
	GithubLangOxygene                = "#cdd0e3"
	GithubLangOz                     = "#fab738"
	GithubLangP4                     = "#7055b5"
	GithubLangPan                    = "#cc0000"
	GithubLangPapyrus                = "#6600cc"
	GithubLangParrot                 = "#f3ca0a"
	GithubLangPascal                 = "#E3F171"
	GithubLangPawn                   = "#dbb284"
	GithubLangPep8                   = "#C76F5B"
	GithubLangPerl                   = "#0298c3"
	GithubLangPHP                    = "#4F5D95"
	GithubLangPigLatin               = "#fcd7de"
	GithubLangPike                   = "#005390"
	GithubLangPLSQL                  = "#dad8d8"
	GithubLangPogoScript             = "#d80074"
	GithubLangPostScript             = "#da291c"
	GithubLangPowerBuilder           = "#8f0f8d"
	GithubLangPowerShell             = "#012456"
	GithubLangProcessing             = "#0096D8"
	GithubLangProlog                 = "#74283c"
	GithubLangPropellerSpin          = "#7fa2a7"
	GithubLangPuppet                 = "#302B6D"
	GithubLangPureBasic              = "#5a6986"
	GithubLangPureScript             = "#1D222D"
	GithubLangPython                 = "#3572A5"
	GithubLangq                      = "#0040cd"
	GithubLangQSharp                 = "#fed659"
	GithubLangQML                    = "#44a51c"
	GithubLangQtScript               = "#00b841"
	GithubLangQuake                  = "#882233"
	GithubLangR                      = "#198CE7"
	GithubLangRacket                 = "#3c5caa"
	GithubLangRagel                  = "#9d5200"
	GithubLangRaku                   = "#0000fb"
	GithubLangRAML                   = "#77d9fb"
	GithubLangRascal                 = "#fffaa0"
	GithubLangReason                 = "#ff5847"
	GithubLangRebol                  = "#358a5b"
	GithubLangRed                    = "#f50000"
	GithubLangRenPy                  = "#ff7f7f"
	GithubLangRing                   = "#2D54CB"
	GithubLangRiot                   = "#A71E49"
	GithubLangRoff                   = "#ecdebe"
	GithubLangRouge                  = "#cc0088"
	GithubLangRuby                   = "#701516"
	GithubLangRUNOFF                 = "#665a4e"
	GithubLangRust                   = "#dea584"
	GithubLangSaltStack              = "#646464"
	GithubLangSAS                    = "#B34936"
	GithubLangScala                  = "#c22d40"
	GithubLangScheme                 = "#1e4aec"
	GithubLangsed                    = "#64b970"
	GithubLangSelf                   = "#0579aa"
	GithubLangShell                  = "#89e051"
	GithubLangShen                   = "#120F14"
	GithubLangSlash                  = "#007eff"
	GithubLangSlice                  = "#003fa2"
	GithubLangSmalltalk              = "#596706"
	GithubLangSmPL                   = "#c94949"
	GithubLangSolidity               = "#AA6746"
	GithubLangSourcePawn             = "#5c7611"
	GithubLangSQF                    = "#3F3F3F"
	GithubLangSquirrel               = "#800000"
	GithubLangSRecodeTemplate        = "#348a34"
	GithubLangStan                   = "#b2011d"
	GithubLangStandardML             = "#dc566d"
	GithubLangStarlark               = "#76d275"
	GithubLangSuperCollider          = "#46390b"
	GithubLangSwift                  = "#ffac45"
	GithubLangSystemVerilog          = "#DAE1C2"
	GithubLangTcl                    = "#e4cc98"
	GithubLangTerra                  = "#00004c"
	GithubLangTeX                    = "#3D6117"
	GithubLangTIProgram              = "#A0AA87"
	GithubLangTuring                 = "#cf142b"
	GithubLangTypeScript             = "#2b7489"
	GithubLangUnrealScript           = "#a54c4d"
	GithubLangV                      = "#5d87bd"
	GithubLangVala                   = "#fbe5cd"
	GithubLangVBA                    = "#867db1"
	GithubLangVBScript               = "#15dcdc"
	GithubLangVCL                    = "#148AA8"
	GithubLangVerilog                = "#b2b7f8"
	GithubLangVHDL                   = "#adb2cb"
	GithubLangVimscript              = "#199f4b"
	GithubLangVisualBasicNET         = "#945db7"
	GithubLangVolt                   = "#1F1F1F"
	GithubLangVue                    = "#2c3e50"
	GithubLangwdl                    = "#42f1f4"
	GithubLangWebAssembly            = "#04133b"
	GithubLangwisp                   = "#7582D1"
	GithubLangWollok                 = "#a23738"
	GithubLangX10                    = "#4B6BEF"
	GithubLangxBase                  = "#403a40"
	GithubLangXC                     = "#99DA07"
	GithubLangXQuery                 = "#5232e7"
	GithubLangXSLT                   = "#EB8CEB"
	GithubLangYacc                   = "#4B6C4B"
	GithubLangYARA                   = "#220000"
	GithubLangYASnippet              = "#32AB90"
	GithubLangZAP                    = "#0d665e"
	GithubLangZenScript              = "#00BCD1"
	GithubLangZephir                 = "#118f9e"
	GithubLangZig                    = "#ec915c"
	GithubLangZIL                    = "#dc75e5"
)

Giitub Programming Language color ref: https://github.com/ozh/github-colors/blob/master/colors.json

View Source
const (
	EXTWINBORDERSIZE = 5
	EXTWINMARGINSIZE = 10
)
View Source
const DummyText = "dummy text"
View Source
const (
	TABLINEMARGIN = 5
)
View Source
const (
	WORKSPACELEN = 10
)

Variables

View Source
var Version string

Functions

func InitEditor

func InitEditor(options Options, args []string)

InitEditor is

Types

type Cache added in v0.4.10

type Cache struct {
	gcache.Cache
}

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 {
	widgets.QWidget
	// contains filtered or unexported fields
}

Cursor is

type Editor

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

Editor is the editor

type ExternalWin added in v0.4.7

type ExternalWin struct {
	widgets.QDialog
}

ExternalWin is

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) Colorless added in v0.4.10

func (hsv *HSV) Colorless() *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
}

HlChars is used in screen cache

type HlDecoration added in v0.4.10

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

HlDecoration is used in screen cache

type IMETooltip added in v0.4.13

type IMETooltip struct {
	Tooltip
}

IMETooltip is the tooltip for Input Method Editor

type IntInt added in v0.4.7

type IntInt [2]int

type LeftStatusItem added in v0.3.3

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

LeftStatusItem is left side statusline component

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 Options added in v0.4.10

type Options struct {
	Geometry     string  `long:"geometry" description:"Initial window geomtry [e.g. --geometry=800x600]"`
	Server       string  `long:"server" description:"Remote session address [e.g. --server=host:3456]"`
	Ssh          string  `long:"ssh" description:"Attaching to a remote nvim via ssh. Default port is 22. [e.g. --ssh=user@host:port]"`
	Nvim         string  `long:"nvim" description:"Excutable nvim path to attach [e.g. --nvim=/path/to/nvim]"`
	Debug        string  `` /* 149-byte string literal not displayed */
	Fullscreen   bool    `long:"fullscreen" description:"Open the window in fullscreen on startup"`
	Maximized    bool    `long:"maximized" description:"Maximize the window on startup"`
	Exttabline   bool    `long:"exttabline" description:"Externalize the tabline"`
	Extcmdline   bool    `long:"extcmdline" description:"Externalize the cmdline"`
	Extmessages  bool    `long:"extmessages" description:"Externalize the messages. Sets --extcmdline implicitly"`
	Extpopupmenu bool    `long:"extpopupmenu" description:"Externalize the popupmenu"`
	Version      bool    `long:"version" description:"Print Goneovim version"`
	Wsl          *string `` /* 146-byte string literal not displayed */
	Nofork       bool    `long:"nofork" description:"Run in foreground"`
}

type Palette

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

Palette is the popup for cmdline

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

func (*RGBA) XYZ added in v0.4.7

func (rgba *RGBA) XYZ() *XYZ

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 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 SvgXML

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

SvgXML is

type Tab

type Tab struct {
	Name string

	ID int
	// contains filtered or unexported fields
}

Tab in the tabline

type Tabline

type Tabline struct {
	Tabs []*Tab

	CurrentID int
	// contains filtered or unexported fields
}

Tabline of the editor

type Tooltip added in v0.5.0

type Tooltip struct {
	widgets.QWidget
	// contains filtered or unexported fields
}

Tooltip is the tooltip

type Window

type Window struct {
	widgets.QWidget
	// 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

type XYZ added in v0.4.7

type XYZ struct {
	X, Y, Z float64
}

Jump to

Keyboard shortcuts

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