Skip to content

feat: jless default opts env#181

Open
tronikelis wants to merge 1 commit into
PaulJuliusMartinez:mainfrom
tronikelis:feat/jless_default_opts_env
Open

feat: jless default opts env#181
tronikelis wants to merge 1 commit into
PaulJuliusMartinez:mainfrom
tronikelis:feat/jless_default_opts_env

Conversation

@tronikelis
Copy link
Copy Markdown

@tronikelis tronikelis commented Dec 12, 2025

Problem

There is no way to set preferred default config flags.

Solution

I propose to add a new env variable JLESS_DEFAULT_OPTS inspired by FZF_DEFAULT_OPTS which doesn't require to choose a new config file format (json/yaml/toml) and allows configuration just as you would type the config in your shell.

For example:

export JLESS_DEFAULT_OPTS="-r"
# now jless will launch with relative numbers by default
jless

Notes

Current implementation does not handle config properties with spaces in them
JLESS_DEFAULT_OPTS="--file \"foo bar\"" wouldn't work

closes #174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Allow Users to Set Default Flags (Settings) via Configuration File

1 participant