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

fix(wrkspcs): interactive rename, save + load dir #200

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

russmatney
Copy link
Contributor

Started getting into doom's workspace usage today, and these seemed to fix a few issues – not sure if they're unique to my machine or not.

This fixes renaming workspaces to work interactively by prompting for a new name from the minibuffer.

This also fixes the saving and loading of workspaces, however, an error still shows up after saving saying that it failed, despite writing to the persp file (and successful re-loads following).

I'm curious if the 'main' workspace can be renamed dynamically - i tried some code to do so but hit a few issues so thought I'd ask if it was a true necessity to protect it.

@hlissner hlissner merged commit 05a7433 into doomemacs:master Sep 11, 2017
@hlissner
Copy link
Member

hlissner commented Sep 11, 2017

Good catch. I'll look into workspace I/O soon and see if I can resolve that problem.

As for the main workspace, renaming it is problematic because it is a special case. persp-mode offers no unique (and immutable) id of any sort to identify a perspective. Just a name, which is mutable and not necessarily unique. I'll have to implement my own, or extend its struct. Then allowing users to rename them ought to become trivial. In any case, I'll look into it.

@hlissner hlissner added the is:bug Something isn't working as intended label Sep 11, 2017
hlissner added a commit that referenced this pull request Sep 28, 2017
+ The "main" workspace is no longer treated especially, and can be
  renamed or deleted. Fixes issue mentioned in #200.
+ In the disastrous event that there are no workspaces left, a main one
  is generated and switched to. Under no circumstances should the use be
  left in the nil perspective!
+ Fix the :tabr[ename] ex command throwing argument errors.
+ Refactored most workspace functions.
+ New command: +workspace/close-workspace-or-frame, which is bound to
  C-S-w in my private module.
@hlissner
Copy link
Member

I've pushed a fix for the main workspace to the develop branch. It is no longer protected and can be dynamically renamed with +workspace/rename (or :tabr[ename] if you're an evil user and are using my private module).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
is:bug Something isn't working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants