quickswitcher

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowDialog

func ShowDialog(ctx context.Context)

ShowDialog shows a new Quick Switcher dialog.

Types

type Dialog

type Dialog struct {
	*adw.ApplicationWindow
	QuickSwitcher *QuickSwitcher
}

Dialog is a Quick Switcher dialog.

func NewDialog

func NewDialog(ctx context.Context) *Dialog

NewDialog creates a new Quick Switcher dialog.

type QuickSwitcher

type QuickSwitcher struct {
	*gtk.Box
	// contains filtered or unexported fields
}

QuickSwitcher is a search box capable of looking up guilds and channels for quickly jumping to them. It replicates the Ctrl+K dialog of the desktop client.

func NewQuickSwitcher

func NewQuickSwitcher(ctx context.Context) *QuickSwitcher

NewQuickSwitcher creates a new Quick Switcher instance.

func (*QuickSwitcher) Clear added in v0.0.25

func (qs *QuickSwitcher) Clear()

func (*QuickSwitcher) ConnectChosen

func (qs *QuickSwitcher) ConnectChosen(f func())

ConnectChosen connects a function to be called when an entry is chosen.

Jump to

Keyboard shortcuts

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