nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Add "noload" profile

Open Ambrevar opened this issue 2 years ago • 10 comments

In some cases and in particular for testing it's useful to ask Nyxt to not load any file from disk to ensure reproducible behaviour.

We often do nyxt --no-config but it's not enough: there is also the auto-config, the history, the bookmarks, and potentially more.

Wouldn't be nice to have a single knob to disable all file reads? Actually, we can already programmatically do it by adding a profile which does just that.

Since we have nosave already, I suggest we add noload. Then it be enough to call

nyxt --profile noload

to disable all file loads.

Should noload also disable file writes? I would say yes, since it's not very intuitive to be "write only".

Thoughts?

Ambrevar avatar Jun 18 '22 15:06 Ambrevar

Not loading any file from disk, including any cached stuff (i.e. stuff webkit caches)? Then I don't see any reason to write anything. Maybe if someone used it as an "incognito mode", but that would have to be more of a "read-only" minus the exception of bookmarks.

CorruptedVor avatar Jun 18 '22 19:06 CorruptedVor

But then we have nosave as our "incognito mode"...

noload is a good idea! Should be useful!

aartaka avatar Jun 18 '22 19:06 aartaka

I like the idea! Not sure about noload as the name tho. It basically means a stateless start plus no config file. clean-start? fresh-start?

Is it possible to "accumulate profiles" btw? Then we could have nyxt --profile no-config no-state.

aadcg avatar Jun 19 '22 21:06 aadcg

I am in accord with Andre, the name could definitely be tweaked! Not sure what is best, but yeah.

jmercouris avatar Jun 20 '22 02:06 jmercouris

noload made sense with regard to nosave. But we can change both names.

It's not possible to accumulate profiles from the command line, however profiles are CLOS classes and as such, you can create a profile that inherits from multiple profiles.

clean-start and fresh-start are a bit incorrect, because what I'm suggesting would not load any file ever, not just on startup.

Any other suggestion?

Ambrevar avatar Jun 20 '22 06:06 Ambrevar

nofiles? :D

aartaka avatar Jun 20 '22 08:06 aartaka

Correct @Ambrevar. I'd go with no-config-and-stateless-session. It's verbose but clearer.

aadcg avatar Jun 20 '22 22:06 aadcg

With regards to nosave, I could perhaps suggest nohistory.

aadcg avatar Jun 20 '22 22:06 aadcg

With regards to nosave, I could perhaps suggest nohistory.

It's not just about history, but everything else: auto-mode-rules, bookmarks, etc.

Correct @Ambrevar. I'd go with no-config-and-stateless-session. It's verbose but clearer.

Not very convenient to type from the command line though... O.o

Ambrevar avatar Jun 21 '22 07:06 Ambrevar

Oh, so I'm afraid I don't have a better suggestion.

aadcg avatar Jun 28 '22 10:06 aadcg

See #2575.

Ambrevar avatar Sep 15 '22 14:09 Ambrevar