Major refactor of workspaces api

+ 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.
This commit is contained in:
Henrik Lissner 2017-09-29 01:50:37 +02:00
parent 5319f655b4
commit de35ac873a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 138 additions and 106 deletions

View file

@ -37,7 +37,7 @@
"M-t" #'+workspace/new
"M-T" #'+workspace/display
"M-w" #'delete-window
"M-W" #'delete-frame
"M-W" #'+workspace/close-workspace-or-frame
"M-n" #'evil-buffer-new
"M-N" #'make-frame
"M-1" (λ! (+workspace/switch-to 0))