nudge

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GitHubRepoURL = "https://github.com/Bharath-code/git-scope"

GitHubRepoURL is the URL to open when user presses S

View Source
const Version = "1.3.0"

Version is the current app version - used to track per-version nudge

Variables

This section is empty.

Functions

func MarkCompleted

func MarkCompleted()

MarkCompleted marks the nudge as completed (S pressed, GitHub opened)

func MarkDismissed

func MarkDismissed()

MarkDismissed marks the nudge as dismissed (any key pressed)

func MarkShown

func MarkShown()

MarkShown marks the nudge as shown for the current version

func ShouldShowNudge

func ShouldShowNudge() bool

ShouldShowNudge checks if the star nudge should be shown Returns true only if: - Not already seen for this version - Not dismissed - Not completed (user already starred)

Types

type NudgeState

type NudgeState struct {
	SeenVersion string `json:"seenVersion"`
	Dismissed   bool   `json:"dismissed"`
	Completed   bool   `json:"completed"`
}

NudgeState represents the persistent state of the star nudge

Jump to

Keyboard shortcuts

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