Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate persistent_workspaces in favor of persistent-workspaces #2468

Merged
merged 4 commits into from
Sep 11, 2023

Conversation

khaneliman
Copy link
Contributor

@khaneliman khaneliman commented Sep 5, 2023

Closes: #2443

Persistent workspaces currently is the only option using this naming style, changing to match all other options.

Prompt updating config from persistent_workspaces to persistent-workspaces but keep current implementation support until after next release to remove.

Follow up: Update wiki entries to match new name.

@khaneliman khaneliman changed the title refactor!: hyprland persistent workspaces config option name standard… refactor!: persistent workspaces config option name standardized Sep 5, 2023
Copy link
Contributor

@zjeffer zjeffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said in the issue, I think we should:

  • Make both options parseable
  • Log a warning if the user uses the old style
  • After a couple of Waybar releases, we should remove the old style.

This way, no existing config would break. If we merge this in the current state, we'd have tons of people opening issues because their configs would break.

@khaneliman
Copy link
Contributor Author

khaneliman commented Sep 5, 2023

As I said in the issue, I think we should:

  • Make both options parseable
  • Log a warning if the user uses the old style
  • After a couple of Waybar releases, we should remove the old style.

This way, no existing config would break. If we merge this in the current state, we'd have tons of people opening issues because their configs would break.

@zjeffer This new commit look better? Adds a deprecation warning and allows both configs. We can remove old config style after next release, then.

image

@khaneliman khaneliman force-pushed the persistent-rename branch 2 times, most recently from 3f10b96 to bec707d Compare September 5, 2023 19:09
@khaneliman khaneliman changed the title refactor!: persistent workspaces config option name standardized refactor: persistent workspaces config option name standardized Sep 5, 2023
Copy link
Contributor

@zjeffer zjeffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better! I can't test right now but I'm sure it works fine.

src/modules/hyprland/workspaces.cpp Outdated Show resolved Hide resolved
@khaneliman
Copy link
Contributor Author

Rebased to resolve merge conflicts. Still works fine, like before.

@khaneliman
Copy link
Contributor Author

khaneliman commented Sep 5, 2023

@Alexays Should be good to merge, too. Whenever you get a chance.

@khaneliman khaneliman changed the title refactor: persistent workspaces config option name standardized deprecate persistent_workspaces in favor of persistent-workspaces Sep 10, 2023
@Alexays Alexays merged commit 196b400 into Alexays:master Sep 11, 2023
8 checks passed
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.

persistent_workspaces should be persistent-workspaces
4 participants