editor

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 36 Imported by: 1

Documentation

Index

Constants

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"
)
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                   = "#375eab"
	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 (
	FilewidgetLeftMargin = 35
)

Variables

This section is empty.

Functions

func InitEditor

func InitEditor()

InitEditor is

Types

type Activity added in v0.3.0

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

Activity is the Activity bar

type ActivityItem added in v0.3.0

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

ActivityItem is the item in Activity bar

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 Char

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

Char 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 DeinPlugin added in v0.3.0

type DeinPlugin struct {
	Repo           string
	AuGroup        string `toml:"augroup"`
	Build          string
	Depends        []string
	Frozen         int
	If             interface{}
	Lazy           int
	Marged         int
	Name           string
	NormalizedName string      `toml:"normalized_name"`
	OnCmd          interface{} `toml:"on_cmd"`
	OnEvent        interface{} `toml:"on_event"`
	OnFunc         interface{} `toml:"on_func"`
	OnFt           interface{} `toml:"on_ft"`
	OnI            int         `toml:"on_i"`
	OnIdle         int         `toml:"on_idle"`
	OnIf           string      `toml:"on_if"`
	OnMap          interface{} `toml:"on_map"`
	OnPath         interface{} `toml:"on_path"`
	OnSource       interface{} `toml:"on_source"`
	Path           string
	Rev            string
	Rtp            string
	ScriptType     string `toml:"script_type"`
	Timeout        int
	Trusted        int
	Type           string
	TypeDepth      int         `toml:"type__depth"`
	HookAdd        interface{} `toml:"hook_add"`
	HookDoneUpdate interface{} `toml:"hook_done_update"`
	HookPostSource interface{} `toml:"hook_post_source"`
	HookPostUpdate interface{} `toml:"hook_post_update"`
	HookSource     interface{} `toml:"hook_source"`
}

type DeinPluginItem added in v0.3.0

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

DeinPluginItem is the item structure witch is installed plugin of Shougo/dein.vim

type DeinSide added in v0.3.0

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

DeinSide is the side bar witch is GUI for Shougo/dein.vim

type DeinTomlConfig added in v0.3.0

type DeinTomlConfig struct {
	Plugins []DeinPlugin
}

type Editor

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

Editor is the editor

type Fileitem added in v0.3.0

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

type Filelist added in v0.3.0

type Filelist struct {
	WSitem *WorkspaceSideItem

	Fileitems []*Fileitem
	// contains filtered or unexported fields
}

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 Highlight

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

Highlight is

type InstalledPlugins added in v0.3.0

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

InstalledPlugins is the widget witch displays installed plugins in DeinSide

type LeftStatusItem added in v0.3.3

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

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 isj

type MessageItem

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

MessageItem is

type MiniMap added in v0.3.0

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

MiniMap is

type Notification added in v0.3.0

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

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
const (
	NotifyInfo NotifyLevel = 0
	NotifyWarn NotifyLevel = 1
)

type NotifyOptionArg added in v0.3.0

type NotifyOptionArg func(*NotifyOptions)

type NotifyOptions added in v0.3.0

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

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 Plugin added in v0.3.0

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

Pligin is the item structure witch is the search result in vim-awesome

type PluginSearchResults added in v0.3.0

type PluginSearchResults struct {
	TotalResults   int `json:"total_results"`
	ResultsPerPage int `json:"results_per_page"`
	TotalPages     int `json:"total_pages"`
	Plugins        []struct {
		VimorgRating             int      `json:"vimorg_rating"`
		GithubHomepage           string   `json:"github_homepage"`
		UpdatedAt                int      `json:"updated_at"`
		GithubReadmeFilename     string   `json:"github_readme_filename"`
		VimorgShortDesc          string   `json:"vimorg_short_desc"`
		GithubVimScriptsStars    int      `json:"github_vim_scripts_stars"`
		VimorgType               string   `json:"vimorg_type"`
		NormalizedName           string   `json:"normalized_name"`
		Category                 string   `json:"category"`
		Author                   string   `json:"author"`
		PluginManagerUsers       int      `json:"plugin_manager_users"`
		ShortDesc                string   `json:"short_desc"`
		VimorgAuthor             string   `json:"vimorg_author"`
		VimorgNumRaters          int      `json:"vimorg_num_raters"`
		VimorgURL                string   `json:"vimorg_url"`
		GithubVimScriptsBundles  int      `json:"github_vim_scripts_bundles"`
		GithubRepoName           string   `json:"github_repo_name"`
		Tags                     []string `json:"tags"`
		GithubStars              int      `json:"github_stars"`
		GithubVimScriptsRepoName string   `json:"github_vim_scripts_repo_name"`
		VimorgDownloads          int      `json:"vimorg_downloads"`
		GithubRepoID             string   `json:"github_repo_id"`
		Slug                     string   `json:"slug"`
		VimorgID                 string   `json:"vimorg_id"`
		GithubOwner              string   `json:"github_owner"`
		Name                     string   `json:"name"`
		CreatedAt                int      `json:"created_at"`
		GithubShortDesc          string   `json:"github_short_desc"`
		VimorgName               string   `json:"vimorg_name"`
		GithubURL                string   `json:"github_url"`
		GithubBundles            int      `json:"github_bundles"`
		Keywords                 string   `json:"keywords"`
		GithubAuthor             string   `json:"github_author"`
	} `json:"plugins"`
}

PluginSearchResults is the structure for storing json witch is the search result in vim-awesome

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

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 SearchComboBox added in v0.3.0

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

SearchComboBox is the ComboBox widget for DeinSide

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

Searchbox is the search box widget for DeinSide

type Searchresult added in v0.3.0

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

Searchresult is the structure witch displays the search result of plugins in DeinSide

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
}

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

type StatuslineFilepath added in v0.3.3

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

StatuslineFile 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 StatuslineNotify added in v0.3.0

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

StatuslineNotify

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 {
	Filelist *Filelist

	Filelistwidget *widgets.QWidget
	// 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