panelpref

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package panelpref answers "does the user want this embedded panel", for the two panels whose feature flag is now a read-only alias of their config key.

The answer has several readers and not all of them can import the plugin package that owns the descriptor: internal/plugins/notes imports internal/app, which imports internal/overview, so the global create picker cannot import the Notes descriptor back. Its project twin could, and having the two projections of one surface answer the same question by different routes is how they drift — which is how the Flags page and the Panels page came to disagree about Notes and Tasks. Every reader binds here instead, the descriptors included: one rule, in one place, reachable from a leaf.

The feature flags are read-only aliases: they answer only while the config key is absent, and nothing here ever writes one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notes

func Notes(cfg *config.Config) bool

Notes is whether the Notes surface actually exists. td owns Notes persistence, so the effective answer also requires the td panel. That dependency is deliberately not part of the preference.

func NotesPreference

func NotesPreference(cfg *config.Config) bool

NotesPreference is what the user chose for the Notes panel: plugins.notes.enabled when it is set, the notes_plugin flag while it is absent.

It is the preference and not the effective answer, because the settings page renders this: a Notes row reading OFF because td is off would be Sidecar claiming a choice the user never made.

func Tasks

func Tasks(cfg *config.Config) bool

Tasks is whether the embedded Tasks tab is wanted: plugins.tasks.enabled when it is set, the tasks_plugin flag while it is absent. Tasks depends on no other panel, so this is both the preference and the effective answer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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