DimFocus on the main logic more easily by dimming the details.
FeaturesDim is many things but not dim. FamiliarDim is configured using regular expressions. Adopt it quickly and build up over time.
RestrainedDim doesn't get in the way when user wants to work on details.
RespectfulDuring thorough readings Dim can be disabled per document. See also Toggling with Keyboard.
PolyglotDim accepts language-specific rules as well.
OrganizedSet defaults for RegEx flags and the opacity tier at root. All rules inherit them unless override.
ConsistentRules accept opacity tiers instead of direct values. Tweak defaults and they'll be applied everywhere.
ForgivingDim checks for brace balance ( PerformanceDim is designed for speed. FluidDim doesn't run on scroll, so you can peek fast.
RememberingDim caches the compiled RegExes for faster refreshes after selection and content changes as well as switching tabs.
MindfulWhere some competitors iterate lines one-by-one looking for SteadyDim preserves the unaffected decorations from the previous cycle to reduce flicker.
AttentiveDim hooks into lifecycle events. It runs after each document reveal, content or config change, and selection change, balancing responsiveness and performance.
TunableDim can be adjusted to react faster and more frequently to user events as the hardware allows.
LightweightDim is a zero-dependency, bundled extension that activates in around Example configuration
SuggestionsUse code completionPackage file contains the configuration schema. Use code completion for configuration details. Escaping RegExes inside JSONEscape patterns with backslashes as shown in the examples. Start simpleSome find RegEx cluttered. Some find it familiar and capable. If that's not you, just start simple and improve the rules over time. Nested scopesPatterns that allow nested scopes improve the user experience noticeably. See the test configuration for more examples. For example, this lil' one combines lookarounds and single line mode with a "strange" pattern to dim the conditional branches of if statements without the condition expression itself, and allows one level of nesting with additional parentheses and braces. (Regex101)
Matching blocksUse RegEx's single-line Toggling Dim with keyboardCreate a keyboard binding. Open the command palette and find:
DiscussionsGitHub Discussions is open for users to report bugs, suggest features and ask questions. Prior workDim has inherited some code and logic from lowlight-patterns. LicenseSee LICENSE file |