struct Fingers::Config
- Fingers::Config
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
fingers/config.crConstant Summary
-
ALPHABET_MAP =
{qwerty: "asdfqwerzxcvjklmiuopghtybn", "qwerty-homerow": "asdfjklgh", "qwerty-left-hand": "asdfqwerzcxv", "qwerty-right-hand": "jkluiopmyhn", azerty: "qsdfazerwxcvjklmuiopghtybn", "azerty-homerow": "qsdfjkmgh", "azerty-left-hand": "qsdfazerwxcv", "azerty-right-hand": "jklmuiophyn", qwertz: "asdfqweryxcvjkluiopmghtzbn", "qwertz-homerow": "asdfghjkl", "qwertz-left-hand": "asdfqweryxcv", "qwertz-right-hand": "jkluiopmhzn", dvorak: "aoeuqjkxpyhtnsgcrlmwvzfidb", "dvorak-homerow": "aoeuhtnsid", "dvorak-left-hand": "aoeupqjkyix", "dvorak-right-hand": "htnsgcrlmwvz", colemak: "arstqwfpzxcvneioluymdhgjbk", "colemak-homerow": "arstneiodh", "colemak-left-hand": "arstqwfpzxcv", "colemak-right-hand": "neioluymjhk"}
-
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:]_#$%&+=/@-]+", "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
- .new(pull : JSON::PullParser)
- .new(key : String = "F", jump_key : String = "J", keyboard_layout : String = "qwerty", alphabet : Array(String) = [] of String, patterns : Hash(String, String) = {} of String => String, main_action : String = ":copy:", ctrl_action : String = ":open:", alt_action : String = "", shift_action : String = ":paste:", hint_position : String = "left", hint_style : String = FORMAT_PRINTER.print("fg=green,bold"), highlight_style : String = FORMAT_PRINTER.print("fg=yellow"), selected_hint_style : String = FORMAT_PRINTER.print("fg=blue,bold"), selected_highlight_style : String = FORMAT_PRINTER.print("fg=blue"), backdrop_style : String = "", tmux_version : String = "3.1", show_copied_notification : String = "0", enabled_builtin_patterns : String = "all", benchmark_mode : String = "0")
Class Method Summary
Instance Method Summary
- #alphabet : Array(String)
- #alphabet=(alphabet : Array(String))
- #alt_action : String
- #alt_action=(alt_action : String)
- #backdrop_style : String
- #backdrop_style=(backdrop_style : String)
- #benchmark_mode : String
- #benchmark_mode=(benchmark_mode : String)
- #ctrl_action : String
- #ctrl_action=(ctrl_action : String)
- #enabled_builtin_patterns : String
- #enabled_builtin_patterns=(enabled_builtin_patterns : String)
- #highlight_style : String
- #highlight_style=(highlight_style : String)
- #hint_position : String
- #hint_position=(hint_position : String)
- #hint_style : String
- #hint_style=(hint_style : String)
- #jump_key : String
- #jump_key=(jump_key : String)
- #key : String
- #key=(key : String)
- #keyboard_layout : String
- #keyboard_layout=(keyboard_layout : String)
- #main_action : String
- #main_action=(main_action : String)
- #members : Array(String)
- #patterns : Hash(String, String)
- #patterns=(patterns : Hash(String, String))
- #save
- #selected_highlight_style : String
- #selected_highlight_style=(selected_highlight_style : String)
- #selected_hint_style : String
- #selected_hint_style=(selected_hint_style : String)
- #shift_action : String
- #shift_action=(shift_action : String)
- #show_copied_notification : String
- #show_copied_notification=(show_copied_notification : String)
- #tmux_version : String
- #tmux_version=(tmux_version : String)
Constructor Detail
def self.new(key : String = "F", jump_key : String = "J", keyboard_layout : String = "qwerty", alphabet : Array(String) = [] of String, patterns : Hash(String, String) = {} of String => String, main_action : String = ":copy:", ctrl_action : String = ":open:", alt_action : String = "", shift_action : String = ":paste:", hint_position : String = "left", hint_style : String = FORMAT_PRINTER.print("fg=green,bold"), highlight_style : String = FORMAT_PRINTER.print("fg=yellow"), selected_hint_style : String = FORMAT_PRINTER.print("fg=blue,bold"), selected_highlight_style : String = FORMAT_PRINTER.print("fg=blue"), backdrop_style : String = "", tmux_version : String = "3.1", show_copied_notification : String = "0", enabled_builtin_patterns : String = "all", benchmark_mode : String = "0")
#