VasKho / ws-selector.el

Emacs package to manage workspaces per buffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ws-selector

This plugin is developed to separate working directories for each frame.

Installation

This package isn’t available on MELPA, so to install it you may use straight or just copy ws-selector.el to your emacs configuration directory.

(use-package ws-selector
  :straight (ws-selector :type git :host github :repo "VasKho/ws-selector.el")
  :custom
  (ws-selector-selection-alist
   '(("Home" . "~/")
     ("Configs" . "~/.config")
     ("Emacs" . "~/.emacs.d")
     ("Projects" . "~/Documents")))
  :config (ws-selector--preprocess-selection-alist)
  :bind ("C-c C-w s" . ws-selector-select-workspace))

This package might be combined with dired-sidebar.

Configuration

Pakcage provides the following customs to configure the look and behavior:

ws-selector-selection-alist This variable must contain cons which are (<name> . <workspace-directory>).

ws-selector-workdir-indent This variable is used to configure indent in completion view.

To interact with package functionality you may use the following functions: ws-selector-set-frame-working-directory (frame path) This function is used to set PATH as working directory for FRAME.

ws-selector-get-working-directory (&optional frame) Get working directory for FRAME. FRAME defaults to selected-frame.

ws-selector-select-workspace This function is used to select workspace for selected-frame.

About

Emacs package to manage workspaces per buffer

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%