editor

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindIntelliJ

func FindIntelliJ() (string, error)

func OpenIntelliJ

func OpenIntelliJ(path string) error

Types

type IntelliJProject

type IntelliJProject struct {
	ID         string
	Alias      string
	Name       string
	Path       string
	Active     bool
	Open       bool
	WindowName string
}

func MatchIntelliJProjects

func MatchIntelliJProjects(reg registry.Registry, windows []IntelliJWindow) []IntelliJProject

func OpenIntelliJProjects

func OpenIntelliJProjects(projects []IntelliJProject) []IntelliJProject

type IntelliJWindow

type IntelliJWindow struct {
	Name string
}

func ListIntelliJWindows

func ListIntelliJWindows(ctx context.Context) ([]IntelliJWindow, error)

type ResolveOptions

type ResolveOptions struct {
	Override               string
	AllowConfiguredCommand bool
}

type Resolved

type Resolved struct {
	Name        string
	DisplayName string
	Launcher    string
	Command     string
	Args        []string
}

func Open

func Open(path string, cfg config.EditorConfig, override string) (Resolved, error)

func OpenWithOptions

func OpenWithOptions(path string, cfg config.EditorConfig, opts ResolveOptions) (Resolved, error)

func Resolve

func Resolve(cfg config.EditorConfig, override string) (Resolved, error)

func ResolveWithOptions

func ResolveWithOptions(cfg config.EditorConfig, opts ResolveOptions) (Resolved, error)

Jump to

Keyboard shortcuts

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