class Fingers::Config

Included Modules

Defined in:

fingers/config.cr

Constant Summary

BUILTIN_PATTERNS = {ip: "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}", uuid: "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", sha: "[0-9a-f]{7,128}", digit: "[0-9]{4,}", url: "((https?://|git@|git://|ssh://|ftp://|file:///)[^\\s()\"']+)", path: "(([.\\w\\-~\\$@]+)?(/[.\\w\\-@]+)+/?)", hex: "(0x[0-9a-fA-F]+)", kubernetes: "(deployment.app|binding|componentstatuse|configmap|endpoint|event|limitrange|namespace|node|persistentvolumeclaim|persistentvolume|pod|podtemplate|replicationcontroller|resourcequota|secret|serviceaccount|service|mutatingwebhookconfiguration.admissionregistration.k8s.io|validatingwebhookconfiguration.admissionregistration.k8s.io|customresourcedefinition.apiextension.k8s.io|apiservice.apiregistration.k8s.io|controllerrevision.apps|daemonset.apps|deployment.apps|replicaset.apps|statefulset.apps|tokenreview.authentication.k8s.io|localsubjectaccessreview.authorization.k8s.io|selfsubjectaccessreviews.authorization.k8s.io|selfsubjectrulesreview.authorization.k8s.io|subjectaccessreview.authorization.k8s.io|horizontalpodautoscaler.autoscaling|cronjob.batch|job.batch|certificatesigningrequest.certificates.k8s.io|events.events.k8s.io|daemonset.extensions|deployment.extensions|ingress.extensions|networkpolicies.extensions|podsecuritypolicies.extensions|replicaset.extensions|networkpolicie.networking.k8s.io|poddisruptionbudget.policy|clusterrolebinding.rbac.authorization.k8s.io|clusterrole.rbac.authorization.k8s.io|rolebinding.rbac.authorization.k8s.io|role.rbac.authorization.k8s.io|storageclasse.storage.k8s.io)[[:alnum:]_#$%&+=/@-]+", "kubernetes-pod": "[a-z][a-z0-9-]*[a-z0-9]-[bcdfghjklmnpqrstvwxz2456789]{5,10}-[bcdfghjklmnpqrstvwxz2456789]{5}", "git-status": "(modified|deleted|deleted by us|new file): +(?<match>.+)", "git-status-branch": "Your branch is up to date with '(?<match>.*)'.", diff: "(---|\\+\\+\\+) [ab]/(?<match>.*)"}
FORMAT_PRINTER = TmuxStylePrinter.new

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(patterns : Hash(String, String) = ::Fingers::Options::Patterns::DEFAULT, key : String = ::Fingers::Options::Key::DEFAULT, jump_key : String = ::Fingers::Options::JumpKey::DEFAULT, use_system_clipboard : Bool = ::Fingers::Options::UseSystemClipboard::DEFAULT, enable_bindings : Bool = ::Fingers::Options::EnableBindings::DEFAULT, benchmark_mode : Bool = ::Fingers::Options::BenchmarkMode::DEFAULT, show_copied_notification : Bool = ::Fingers::Options::ShowCopiedNotification::DEFAULT, skip_wizard : Bool = ::Fingers::Options::SkipWizard::DEFAULT, hint_position : String = ::Fingers::Options::HintPosition::DEFAULT, keyboard_layout : String = ::Fingers::Options::KeyboardLayout::DEFAULT, enabled_builtin_patterns : String = ::Fingers::Options::EnabledBuiltinPatterns::DEFAULT, main_action : String = ::Fingers::Options::MainAction::DEFAULT, ctrl_action : String = ::Fingers::Options::CtrlAction::DEFAULT, alt_action : String = ::Fingers::Options::AltAction::DEFAULT, shift_action : String = ::Fingers::Options::ShiftAction::DEFAULT, hint_style : String = ::Fingers::Options::HintStyle::DEFAULT, highlight_style : String = ::Fingers::Options::HighlightStyle::DEFAULT, selected_hint_style : String = ::Fingers::Options::SelectedHintStyle::DEFAULT, selected_highlight_style : String = ::Fingers::Options::SelectedHighlightStyle::DEFAULT, backdrop_style : String = ::Fingers::Options::BackdropStyle::DEFAULT, tmux_version : String = ::Fingers::Options::TmuxVersion::DEFAULT) #

[View source]

Class Method Detail

def self.load_from_cache #

[View source]

Instance Method Detail

def alphabet #

[View source]

def alt_action=(alt_action : Fingers::Options::AltAction::Type) #


def backdrop_style=(backdrop_style : Fingers::Options::BackdropStyle::Type) #


def benchmark_mode=(benchmark_mode : Fingers::Options::BenchmarkMode::Type) #


def ctrl_action=(ctrl_action : Fingers::Options::CtrlAction::Type) #


def enable_bindings=(enable_bindings : Fingers::Options::EnableBindings::Type) #

def enabled_builtin_patterns : Fingers::Options::EnabledBuiltinPatterns::Type #

def enabled_builtin_patterns=(enabled_builtin_patterns : Fingers::Options::EnabledBuiltinPatterns::Type) #


def highlight_style=(highlight_style : Fingers::Options::HighlightStyle::Type) #


def hint_position=(hint_position : Fingers::Options::HintPosition::Type) #


def hint_style=(hint_style : Fingers::Options::HintStyle::Type) #


def jump_key=(jump_key : Fingers::Options::JumpKey::Type) #


def key=(key : Fingers::Options::Key::Type) #


def keyboard_layout=(keyboard_layout : Fingers::Options::KeyboardLayout::Type) #


def main_action=(main_action : Fingers::Options::MainAction::Type) #

def members : Array(String) #

[View source]

def patterns=(patterns : Fingers::Options::Patterns::Type) #

def save #

[View source]
def selected_highlight_style : Fingers::Options::SelectedHighlightStyle::Type #

def selected_highlight_style=(selected_highlight_style : Fingers::Options::SelectedHighlightStyle::Type) #

def selected_hint_style : Fingers::Options::SelectedHintStyle::Type #

def selected_hint_style=(selected_hint_style : Fingers::Options::SelectedHintStyle::Type) #


def shift_action=(shift_action : Fingers::Options::ShiftAction::Type) #

def show_copied_notification : Fingers::Options::ShowCopiedNotification::Type #

def show_copied_notification=(show_copied_notification : Fingers::Options::ShowCopiedNotification::Type) #


def skip_wizard=(skip_wizard : Fingers::Options::SkipWizard::Type) #


def tmux_version=(tmux_version : Fingers::Options::TmuxVersion::Type) #

def use_system_clipboard : Fingers::Options::UseSystemClipboard::Type #

def use_system_clipboard=(use_system_clipboard : Fingers::Options::UseSystemClipboard::Type) #