Documentation
¶
Index ¶
- Variables
- func AddFindShortcut(erow *ERow)
- func AddNewFileShortcut(erow *ERow)
- func AddReloadShortcut(erow *ERow)
- func AddReplaceShortcut(erow *ERow)
- func CompareFileInfos(a, b os.FileInfo) int
- func ContentCmdFromTextArea(erow *ERow, index int)
- func DeleteSession(ed *Editor, part *toolbarparser.Part)
- func ExternalCmd(erow *ERow, part *toolbarparser.Part, cargs []string, fend func(error), ...)
- func ExternalCmd2(erow *ERow, part *toolbarparser.Part, cargs []string, fend func(error), ...)
- func FindFileInfo(name, dir string) (string, os.FileInfo, bool)
- func InternalOrExternalCmdFromRootTb(ed *Editor, tb *ui.Toolbar)
- func InternalOrExternalCmdFromRowTb(erow *ERow)
- func ListDirContext(ctx context.Context, w io.Writer, filepath string, subs, hiddens bool) error
- func ListDirERow(erow *ERow, filepath string, subs, hiddens bool)
- func ListSessions(ed *Editor)
- func OpenFileERow(ed *Editor, conf *OpenFileERowConfig)
- func OpenSession(ed *Editor, part *toolbarparser.Part)
- func OpenSessionFromFile(ed *Editor, filename string) error
- func OpenSessionFromString(ed *Editor, sessionName string)
- func RunEditor(opt *Options) error
- func SaveSession(ed *Editor, part *toolbarparser.Part)
- func SaveSessionToFile(ed *Editor, filename string) error
- func StartTerminalEmu(ed *Editor, dir string, rowPos *ui.RowPos, shellCmd string, shellArgs []string) error
- func Version() string
- type Annotation
- type Annotator
- type ColumnState
- type Completor
- type ContentCmd
- type ContentCmdFn
- type D4COp
- type DndHandler
- type EEventId
- type EEvents
- type ERow
- func ExistingERowOrNewBasic(ed *Editor, name string) (_ *ERow, isNew bool)
- func ExistingERowOrNewLoaded(ed *Editor, name string) (_ *ERow, isNew bool, _ error)
- func NewBasicERow(info *ERowInfo, rowPos *ui.RowPos) *ERow
- func NewERow(info *ERowInfo, rowPos *ui.RowPos) (*ERow, error)
- func NewLoadedERow(info *ERowInfo, rowPos *ui.RowPos) (*ERow, error)
- func NewLoadedERowOrNewBasic(info *ERowInfo, rowPos *ui.RowPos) *ERow
- func (erow *ERow) AppendBytesClearHistory(p []byte)
- func (erow *ERow) AppendBytesClearHistory2(p []byte) error
- func (erow *ERow) CancelContentCmd()
- func (erow *ERow) CancelInternalCmd()
- func (erow *ERow) Flash()
- func (erow *ERow) Load() error
- func (erow *ERow) MakeIndexVisibleAndFlash(index int)
- func (erow *ERow) MakeRangeVisibleAndFlash(index int, len int)
- func (erow *ERow) OverwriteBytesClearHistory(i, del int, p []byte) error
- func (erow *ERow) Reload() error
- func (erow *ERow) Reload2(firstLoad bool) error
- func (erow *ERow) SaveFileBusyCursor()
- func (erow *ERow) SyntaxComments() []*drawutil.SyntaxComment
- func (erow *ERow) ToolbarSetStrAfterNameClearHistory(s string)
- func (erow *ERow) UpdateToolbarNameEncoding()
- type ERowColorizeOpts
- type ERowExec
- type ERowFontOpts
- type ERowInfo
- func (info *ERowInfo) AddERow(erow *ERow)
- func (info *ERowInfo) CancelCmd()
- func (info *ERowInfo) Dir() string
- func (info *ERowInfo) ERowsInUIOrder() []*ERow
- func (info *ERowInfo) EqualToBytesHash(size int, hash []byte) bool
- func (info *ERowInfo) FileInfoErr() error
- func (info *ERowInfo) FirstERow() (*ERow, bool)
- func (info *ERowInfo) HandleRWEvWrite2(erow *ERow, ev *iorw.RWEvWrite2)
- func (info *ERowInfo) HasFileinfo() bool
- func (info *ERowInfo) HasRowState(st ui.RowState) bool
- func (info *ERowInfo) IsDir() bool
- func (info *ERowInfo) IsFileButNotDir() bool
- func (info *ERowInfo) IsNotExist() bool
- func (info *ERowInfo) IsSpecial() bool
- func (info *ERowInfo) Name() string
- func (info *ERowInfo) ReloadFile() error
- func (info *ERowInfo) RemoveERow(erow *ERow)
- func (info *ERowInfo) SaveFile() error
- func (info *ERowInfo) SetRowsBytes(b []byte)
- func (info *ERowInfo) UpdateActiveRowState(erow *ERow)
- func (info *ERowInfo) UpdateAnnotationsEditedRowState(v bool)
- func (info *ERowInfo) UpdateAnnotationsRowState(v bool)
- func (info *ERowInfo) UpdateDiskEvent()
- func (info *ERowInfo) UpdateDuplicateHighlightRowState()
- func (info *ERowInfo) UpdateDuplicateRowState()
- func (info *ERowInfo) UpdateEditedRowState()
- func (info *ERowInfo) UpdateExistsRowState()
- func (info *ERowInfo) UpdateFsDifferRowState()
- type ERowTaReadCloser
- type ERowTaReadWriteCloser
- type ERowTaWriteCloser
- type ERowTermEmu
- type ERowTermEmuUI
- type ERowTermOpts
- type Editor
- func (ed *Editor) ActiveERow() (*ERow, bool)
- func (ed *Editor) AnnotationsHandled(erow *ERow, ev *ui.TextAreaInlineCompleteEvent) bool
- func (ed *Editor) AnnotationsOnContentSaved()
- func (ed *Editor) AnnotationsOnMouseKeyDown()
- func (ed *Editor) Close()
- func (ed *Editor) DeleteERowInfo(name string)
- func (ed *Editor) ERowInfo(name string) (*ERowInfo, bool)
- func (ed *Editor) ERowInfoKey(name string) string
- func (ed *Editor) ERowInfos() []*ERowInfo
- func (ed *Editor) ERows() []*ERow
- func (ed *Editor) EnqueueNoOpEvent()
- func (ed *Editor) EnsureOneColumn()
- func (ed *Editor) Error(err error)
- func (ed *Editor) Errorf(f string, a ...any)
- func (ed *Editor) GoodRowPos() *ui.RowPos
- func (ed *Editor) Message(s string)
- func (ed *Editor) Messagef(f string, a ...any)
- func (ed *Editor) NewColumn() *ui.Column
- func (ed *Editor) NodeERow(node widget.Node) (*ERow, bool)
- func (ed *Editor) ReadERowInfo(name string) *ERowInfo
- func (ed *Editor) RunAsyncBusyCursor(node widget.Node, fn func())
- func (ed *Editor) RunAsyncBusyCursor2(node widget.Node, fn func(done func()))
- func (ed *Editor) SetAnnotations(annotator Annotator, ta *ui.TextArea, selIndex int, ...)
- func (ed *Editor) SetERowInfo(name string, info *ERowInfo)
- func (ed *Editor) UpdateWindowTitle()
- type ExternalCmdMode
- type FontsOpt
- type GDDataIndex
- type GDFileMsgs
- type GDMsg
- type GDOffsetMsg
- type GoDebugInstance
- type GoDebugManager
- func (gdm *GoDebugManager) AnnotationFind(s string) error
- func (gdm *GoDebugManager) CancelAndClear()
- func (gdm *GoDebugManager) Printf(format string, args ...any)
- func (gdm *GoDebugManager) RunAsync(startCtx context.Context, erow *ERow, args []string) error
- func (gdm *GoDebugManager) SelectAnnotation(rowPos *ui.RowPos, ev *ui.RootSelectAnnotationEvent)
- func (gdm *GoDebugManager) SelectERowAnnotation(erow *ERow, ev *ui.TextAreaSelectAnnotationEvent)
- func (gdm *GoDebugManager) Trace() error
- func (gdm *GoDebugManager) UpdateInfoAnnotations(info *ERowInfo)
- type HomeVars
- type InfoFloatBoxWrap
- type InlineComplete
- type InternalCmd
- type InternalCmdArgs
- type InternalCmdFn
- type LsprotoCompletor
- type OpenFileERowConfig
- type Options
- type P
- type Plug
- type Plugins
- type PostFileSaveEEvent
- type PostNewERowEEvent
- type PreRowCloseEEvent
- type PreSaveHook
- type PreSaveHooksOpt
- type RegistrationsOpt
- type RowReopener
- type RowState
- type RowStateChangeEEvent
- type Session
- type Sessions
Constants ¶
This section is empty.
Variables ¶
var ContentCmds contentCmds
global cmds added via init() from "contentcmds" pkg
var InternalCmds = internalCmds{} //
cmds added via init() from "internalcmds" pkg
Functions ¶
func AddFindShortcut ¶ added in v1.3.7
func AddFindShortcut(erow *ERow)
func AddNewFileShortcut ¶ added in v1.3.7
func AddNewFileShortcut(erow *ERow)
func AddReloadShortcut ¶ added in v1.3.7
func AddReloadShortcut(erow *ERow)
func AddReplaceShortcut ¶ added in v1.3.7
func AddReplaceShortcut(erow *ERow)
func CompareFileInfos ¶ added in v1.3.8
func ContentCmdFromTextArea ¶ added in v1.1.0
func DeleteSession ¶
func DeleteSession(ed *Editor, part *toolbarparser.Part)
func ExternalCmd ¶
func ExternalCmd(erow *ERow, part *toolbarparser.Part, cargs []string, fend func(error), env []string)
if part is nil, cargs should be set if cargs is nil, part should be set
func ExternalCmd2 ¶ added in v1.3.13
func ExternalCmd2(erow *ERow, part *toolbarparser.Part, cargs []string, fend func(error), env []string, mode ExternalCmdMode)
if part is nil, cargs should be set if cargs is nil, part should be set
func FindFileInfo ¶
Checks in GOROOT/GOPATH, and some C include dirs.
func InternalOrExternalCmdFromRootTb ¶ added in v1.3.11
func InternalOrExternalCmdFromRowTb ¶ added in v1.3.11
func InternalOrExternalCmdFromRowTb(erow *ERow)
func ListDirContext ¶
func ListDirERow ¶
func ListSessions ¶
func ListSessions(ed *Editor)
func OpenFileERow ¶
func OpenFileERow(ed *Editor, conf *OpenFileERowConfig)
TODO: make it UI safe? rename to openfileerowasync?
func OpenSession ¶
func OpenSession(ed *Editor, part *toolbarparser.Part)
func OpenSessionFromFile ¶ added in v1.3.13
func OpenSessionFromString ¶
func SaveSession ¶
func SaveSession(ed *Editor, part *toolbarparser.Part)
func SaveSessionToFile ¶ added in v1.3.13
func StartTerminalEmu ¶ added in v1.3.13
Types ¶
type Annotation ¶ added in v1.3.11
type Annotation struct {
// contains filtered or unexported fields
}
type ColumnState ¶
func NewColumnState ¶
func NewColumnState(ed *Editor, col *ui.Column) *ColumnState
type ContentCmd ¶
type ContentCmd struct {
Name string // for removal and error msgs
Fn ContentCmdFn
}
type ContentCmdFn ¶
type D4COp ¶ added in v1.3.13
type D4COp = drawer4.ColorizeOp
type DndHandler ¶
type DndHandler struct {
// contains filtered or unexported fields
}
func NewDndHandler ¶
func NewDndHandler(ed *Editor) *DndHandler
func (*DndHandler) OnDrop ¶
func (h *DndHandler) OnDrop(ev *event.DndDrop)
func (*DndHandler) OnPosition ¶
func (h *DndHandler) OnPosition(ev *event.DndPosition)
type EEvents ¶
type EEvents struct {
// contains filtered or unexported fields
}
Editor events.
func NewEEvents ¶
func NewEEvents() *EEvents
type ERow ¶
type ERow struct {
Ed *Editor
Row *ui.Row
Info *ERowInfo
Exec *ERowExec
TbData toolbarparser.Data
// contains filtered or unexported fields
}
func ExistingERowOrNewBasic ¶ added in v1.3.0
Used for ex. in: +messages, +sessions.
func ExistingERowOrNewLoaded ¶ added in v1.3.0
func NewLoadedERow ¶ added in v1.3.0
func NewLoadedERowOrNewBasic ¶ added in v1.3.0
Allows creating rows in place even if a file/dir doesn't exist anymore (ex: show non-existent files rows in a saved session).
func (*ERow) AppendBytesClearHistory ¶ added in v1.3.8
Not UI safe.
func (*ERow) AppendBytesClearHistory2 ¶ added in v1.3.8
func (*ERow) CancelContentCmd ¶
func (erow *ERow) CancelContentCmd()
func (*ERow) CancelInternalCmd ¶ added in v1.1.0
func (erow *ERow) CancelInternalCmd()
func (*ERow) MakeIndexVisibleAndFlash ¶
func (*ERow) MakeRangeVisibleAndFlash ¶
func (*ERow) OverwriteBytesClearHistory ¶ added in v1.3.13
func (*ERow) SaveFileBusyCursor ¶ added in v1.3.9
func (erow *ERow) SaveFileBusyCursor()
func (*ERow) SyntaxComments ¶ added in v1.3.11
func (erow *ERow) SyntaxComments() []*drawutil.SyntaxComment
func (*ERow) ToolbarSetStrAfterNameClearHistory ¶
func (*ERow) UpdateToolbarNameEncoding ¶ added in v1.3.0
func (erow *ERow) UpdateToolbarNameEncoding()
type ERowColorizeOpts ¶ added in v1.3.13
type ERowColorizeOpts struct {
// contains filtered or unexported fields
}
type ERowExec ¶
type ERowExec struct {
// contains filtered or unexported fields
}
func NewERowExec ¶
type ERowFontOpts ¶ added in v1.3.13
type ERowFontOpts struct {
// contains filtered or unexported fields
}
type ERowInfo ¶
type ERowInfo struct {
Ed *Editor
ERows []*ERow // added order
// contains filtered or unexported fields
}
Editor Row Info.
func (*ERowInfo) ERowsInUIOrder ¶
func (*ERowInfo) EqualToBytesHash ¶
func (*ERowInfo) FileInfoErr ¶
func (*ERowInfo) HandleRWEvWrite2 ¶ added in v1.3.0
func (info *ERowInfo) HandleRWEvWrite2(erow *ERow, ev *iorw.RWEvWrite2)
func (*ERowInfo) HasFileinfo ¶
func (*ERowInfo) HasRowState ¶ added in v1.1.0
func (*ERowInfo) IsFileButNotDir ¶
func (*ERowInfo) IsNotExist ¶
func (*ERowInfo) ReloadFile ¶
func (*ERowInfo) RemoveERow ¶
func (*ERowInfo) SetRowsBytes ¶
func (*ERowInfo) UpdateActiveRowState ¶
func (*ERowInfo) UpdateAnnotationsEditedRowState ¶
func (*ERowInfo) UpdateAnnotationsRowState ¶
func (*ERowInfo) UpdateDiskEvent ¶
func (info *ERowInfo) UpdateDiskEvent()
Should be called under UI goroutine.
func (*ERowInfo) UpdateDuplicateHighlightRowState ¶
func (info *ERowInfo) UpdateDuplicateHighlightRowState()
func (*ERowInfo) UpdateDuplicateRowState ¶
func (info *ERowInfo) UpdateDuplicateRowState()
func (*ERowInfo) UpdateEditedRowState ¶
func (info *ERowInfo) UpdateEditedRowState()
func (*ERowInfo) UpdateExistsRowState ¶
func (info *ERowInfo) UpdateExistsRowState()
func (*ERowInfo) UpdateFsDifferRowState ¶
func (info *ERowInfo) UpdateFsDifferRowState()
type ERowTaReadCloser ¶ added in v1.3.13
type ERowTaReadCloser struct {
// contains filtered or unexported fields
}
textarea read closer; passes to the terminal emulator keyboard/mouse events
func (*ERowTaReadCloser) Close ¶ added in v1.3.13
func (tarc *ERowTaReadCloser) Close() error
type ERowTaReadWriteCloser ¶ added in v1.3.13
type ERowTaReadWriteCloser struct {
io.ReadWriteCloser
}
type ERowTaWriteCloser ¶ added in v1.3.13
type ERowTaWriteCloser struct {
io.WriteCloser
}
type ERowTermEmu ¶ added in v1.3.13
type ERowTermEmu struct {
io.ReadWriteCloser // emu provides this
// contains filtered or unexported fields
}
func (*ERowTermEmu) Close ¶ added in v1.3.13
func (temu *ERowTermEmu) Close() error
type ERowTermEmuUI ¶ added in v1.3.13
type ERowTermEmuUI struct {
// contains filtered or unexported fields
}
implements termemu.Tui interface
func (*ERowTermEmuUI) Close ¶ added in v1.3.13
func (tui *ERowTermEmuUI) Close() error
func (*ERowTermEmuUI) Error ¶ added in v1.3.13
func (tui *ERowTermEmuUI) Error(err error)
func (*ERowTermEmuUI) OnColumnModeChange ¶ added in v1.3.13
func (tui *ERowTermEmuUI) OnColumnModeChange()
func (*ERowTermEmuUI) Paint ¶ added in v1.3.13
func (tui *ERowTermEmuUI) Paint()
func (*ERowTermEmuUI) Print ¶ added in v1.3.13
func (tui *ERowTermEmuUI) Print(v any)
type ERowTermOpts ¶ added in v1.3.13
type ERowTermOpts struct {
// contains filtered or unexported fields
}
type Editor ¶
type Editor struct {
UI *ui.UI
HomeVars *HomeVars
Watcher fswatcher.Watcher
RowReopener *RowReopener
GoDebug *GoDebugManager
LSProtoMan *lsproto.Manager
InlineComplete *InlineComplete
Plugins *Plugins
EEvents *EEvents // editor events (used by plugins)
FsCaseInsensitive bool // filesystem
// contains filtered or unexported fields
}
func (*Editor) ActiveERow ¶
func (*Editor) AnnotationsHandled ¶ added in v1.3.11
func (ed *Editor) AnnotationsHandled(erow *ERow, ev *ui.TextAreaInlineCompleteEvent) bool
func (*Editor) AnnotationsOnContentSaved ¶ added in v1.3.11
func (ed *Editor) AnnotationsOnContentSaved()
func (*Editor) AnnotationsOnMouseKeyDown ¶ added in v1.3.11
func (ed *Editor) AnnotationsOnMouseKeyDown()
func (*Editor) DeleteERowInfo ¶ added in v1.1.0
func (*Editor) ERowInfoKey ¶ added in v1.1.0
func (*Editor) EnqueueNoOpEvent ¶ added in v1.3.13
func (ed *Editor) EnqueueNoOpEvent()
func (*Editor) EnsureOneColumn ¶
func (ed *Editor) EnsureOneColumn()
func (*Editor) GoodRowPos ¶
func (*Editor) ReadERowInfo ¶
func (*Editor) RunAsyncBusyCursor ¶
func (*Editor) RunAsyncBusyCursor2 ¶ added in v1.3.8
Caller should call done function in the end.
func (*Editor) SetAnnotations ¶
func (ed *Editor) SetAnnotations(annotator Annotator, ta *ui.TextArea, selIndex int, entries *drawer4.AnnotationGroup)
setting entries to nil/empty clears the annotations
func (*Editor) SetERowInfo ¶ added in v1.1.0
func (*Editor) UpdateWindowTitle ¶ added in v1.3.13
func (ed *Editor) UpdateWindowTitle()
type ExternalCmdMode ¶ added in v1.3.13
type ExternalCmdMode int
const ( ExternalCmdModeShellScript ExternalCmdMode = iota ExternalCmdModeShellArgs )
type FontsOpt ¶ added in v1.3.13
type FontsOpt struct {
Fonts []string
}
implements flag.Value interface
type GDDataIndex ¶
GoDebug data Index
func NewGDDataIndex ¶
func NewGDDataIndex(gdi *GoDebugInstance) *GDDataIndex
func (*GDDataIndex) FilesIndex ¶
func (di *GDDataIndex) FilesIndex(name string) (int, bool)
func (*GDDataIndex) FilesIndexKey ¶ added in v1.1.0
func (di *GDDataIndex) FilesIndexKey(name string) string
type GDFileMsgs ¶
type GDFileMsgs struct {
// contains filtered or unexported fields
}
func NewGDFileMsgs ¶
func NewGDFileMsgs(n int) *GDFileMsgs
type GDOffsetMsg ¶ added in v1.3.7
type GDOffsetMsg struct {
// contains filtered or unexported fields
}
type GoDebugInstance ¶
type GoDebugInstance struct {
// contains filtered or unexported fields
}
type GoDebugManager ¶ added in v1.3.0
type GoDebugManager struct {
// contains filtered or unexported fields
}
func NewGoDebugManager ¶ added in v1.3.0
func NewGoDebugManager(ed *Editor) *GoDebugManager
func (*GoDebugManager) AnnotationFind ¶ added in v1.3.0
func (gdm *GoDebugManager) AnnotationFind(s string) error
func (*GoDebugManager) CancelAndClear ¶ added in v1.3.0
func (gdm *GoDebugManager) CancelAndClear()
func (*GoDebugManager) Printf ¶ added in v1.3.0
func (gdm *GoDebugManager) Printf(format string, args ...any)
func (*GoDebugManager) SelectAnnotation ¶ added in v1.3.0
func (gdm *GoDebugManager) SelectAnnotation(rowPos *ui.RowPos, ev *ui.RootSelectAnnotationEvent)
func (*GoDebugManager) SelectERowAnnotation ¶ added in v1.3.0
func (gdm *GoDebugManager) SelectERowAnnotation(erow *ERow, ev *ui.TextAreaSelectAnnotationEvent)
func (*GoDebugManager) Trace ¶ added in v1.3.8
func (gdm *GoDebugManager) Trace() error
func (*GoDebugManager) UpdateInfoAnnotations ¶ added in v1.3.7
func (gdm *GoDebugManager) UpdateInfoAnnotations(info *ERowInfo)
type HomeVars ¶
type HomeVars struct {
// contains filtered or unexported fields
}
func NewHomeVars ¶
func NewHomeVars() *HomeVars
func (*HomeVars) ParseToolbarVars ¶
type InfoFloatBoxWrap ¶
type InfoFloatBoxWrap struct {
// contains filtered or unexported fields
}
func NewInfoFloatBox ¶
func NewInfoFloatBox(ed *Editor) *InfoFloatBoxWrap
func (*InfoFloatBoxWrap) Cancel ¶
func (ifbw *InfoFloatBoxWrap) Cancel()
type InlineComplete ¶
type InlineComplete struct {
// contains filtered or unexported fields
}
func NewInlineComplete ¶
func NewInlineComplete(ed *Editor) *InlineComplete
func (*InlineComplete) CancelAndClear ¶
func (ic *InlineComplete) CancelAndClear()
func (*InlineComplete) Complete ¶
func (ic *InlineComplete) Complete(erow *ERow, ev *ui.TextAreaInlineCompleteEvent) bool
type InternalCmd ¶
type InternalCmd struct {
Name string
Fn InternalCmdFn
}
type InternalCmdArgs ¶
type InternalCmdArgs struct {
Cmd *InternalCmd
Ctx context.Context
Ed *Editor
Part *toolbarparser.Part
// contains filtered or unexported fields
}
func (*InternalCmdArgs) ERow ¶
func (args *InternalCmdArgs) ERow() (*ERow, bool)
func (*InternalCmdArgs) ERowOrErr ¶ added in v1.3.8
func (args *InternalCmdArgs) ERowOrErr() (*ERow, error)
type InternalCmdFn ¶ added in v1.3.0
type InternalCmdFn func(args *InternalCmdArgs) error
type LsprotoCompletor ¶ added in v1.3.11
type LsprotoCompletor struct {
// contains filtered or unexported fields
}
func (*LsprotoCompletor) Completions ¶ added in v1.3.11
func (*LsprotoCompletor) PrimaryCheck ¶ added in v1.3.11
func (lc *LsprotoCompletor) PrimaryCheck(erow *ERow) bool
type OpenFileERowConfig ¶
type Options ¶
type Options struct {
Fonts FontsOpt
FallbackFonts FontsOpt
FontSize float64
FontHinting string
DPI float64
StartMaximized bool
TabWidth int
WrapLineRune int
WrapLineIndentTabs float64
WrapWordLimit int
CarriageReturnRune int
ColorTheme string
CommentsColor int
StringsColor int
ScrollBarWidth int
ScrollBarLeft bool
Shadows bool
SessionName string
SessionFilename string
Filenames []string
StartTerminalEmu bool
EmuExec string
EmuExecArgs []string
UseMultiKey bool
Plugins string
LSProtos RegistrationsOpt
PreSaveHooks PreSaveHooksOpt
ZipSessionsFile bool
}
type Plugins ¶
type Plugins struct {
// contains filtered or unexported fields
}
func NewPlugins ¶
func (*Plugins) RunAutoComplete ¶
func (p *Plugins) RunAutoComplete(ctx context.Context, cfb *ui.ContextFloatBox) (_ error, handled bool)
Runs all plugins until it finds one that returns handled=true and has no errors.
func (*Plugins) RunToolbarCmd ¶
func (p *Plugins) RunToolbarCmd(erow *ERow, part *toolbarparser.Part) bool
type PostFileSaveEEvent ¶
type PostFileSaveEEvent struct {
Info *ERowInfo
}
type PostNewERowEEvent ¶
type PostNewERowEEvent struct {
ERow *ERow
}
type PreRowCloseEEvent ¶
type PreRowCloseEEvent struct {
ERow *ERow
}
type PreSaveHook ¶ added in v1.3.1
func (*PreSaveHook) String ¶ added in v1.3.1
func (h *PreSaveHook) String() string
type PreSaveHooksOpt ¶ added in v1.3.1
type PreSaveHooksOpt struct {
// contains filtered or unexported fields
}
implements flag.Value interface
func (*PreSaveHooksOpt) MustSet ¶ added in v1.3.1
func (o *PreSaveHooksOpt) MustSet(s string)
func (*PreSaveHooksOpt) Set ¶ added in v1.3.1
func (o *PreSaveHooksOpt) Set(s string) error
func (*PreSaveHooksOpt) String ¶ added in v1.3.1
func (o *PreSaveHooksOpt) String() string
type RegistrationsOpt ¶
type RegistrationsOpt struct {
// contains filtered or unexported fields
}
implements flag.Value interface
func (*RegistrationsOpt) MustSet ¶
func (ro *RegistrationsOpt) MustSet(s string)
func (*RegistrationsOpt) Set ¶
func (ro *RegistrationsOpt) Set(s string) error
func (*RegistrationsOpt) String ¶
func (ro *RegistrationsOpt) String() string
type RowReopener ¶
type RowReopener struct {
// contains filtered or unexported fields
}
func NewRowReopener ¶
func NewRowReopener(ed *Editor) *RowReopener
func (*RowReopener) Add ¶
func (rr *RowReopener) Add(row *ui.Row)
func (*RowReopener) Reopen ¶
func (rr *RowReopener) Reopen()
type RowState ¶
type RowState struct {
TbStr string
TbCursorIndex int
TaCursorIndex int
TaOffsetIndex int
StartPercent float64
}
Used in sessions and reopenrow.
func (*RowState) RestorePos ¶
type RowStateChangeEEvent ¶
type Session ¶
type Session struct {
Name string
RootTbStr string
Columns []*ColumnState
}
func NewSessionFromEditor ¶
Source Files
¶
- addshortcuts.go
- contentcmd.go
- dragndrop.go
- editor.go
- eevents.go
- erow.go
- erowexec.go
- erowinfo.go
- erowtareader.go
- erowtarwc.go
- erowtawriter.go
- erowtermemu.go
- erowtermemuui.go
- externalcmd.go
- findfileinfo.go
- godebuginstance.go
- homevars.go
- inlinecomplete.go
- internalcmd.go
- listdir.go
- openerow.go
- options.go
- plugins.go
- rowreopener.go
- sessions.go
- startterminalemu.go
- syntaxhighlight.go
- version.go