Commit graph

16 commits

Author SHA1 Message Date
c7cee4fbfb Change internal name to dreg
Function names starting with `desktop-registry--' were getting a little
long.
2014-01-19 17:00:21 +01:00
a8ead42994 Update docstrings 2014-01-19 16:53:41 +01:00
6cc4ba1387 Use nondirectory instead of base
This way a project directories with a `.' (dot) in them won't have the
last part stripped.
2014-01-19 14:58:07 +01:00
d5feb53a4e Add some management functions to desktop list
This commit changes some of the interactive functions to first look if
the desktop list is being shown and, if so, if there is a desktop
specified under the cursor. If either of these conditions is not true,
they fall back to asking the user for a name, as before.
2014-01-19 14:50:10 +01:00
510ef63c59 Add desktop-registry-list-desktops
This new command shows a list of all the registered desktops in a nice
tabulated format.
2014-01-19 14:40:14 +01:00
97c3b46aa6 Bump version to 1.1.0 2013-08-07 22:27:50 +02:00
ed26598940 Remove title from README
It isn't used by anything and doesn't render well in the github output.
2013-08-07 22:27:07 +02:00
9e30a9cd87 Signal error and specify name
- desktop-registry.el (desktop-registry-add-directory): Add an optional
  NAME parameter which will be asked for (in an interactive context)
  when the universal argument is used. Print a message if the specified
  directory has already been registered, signal an error when the (given
  or generated) name has already been used and only add the directory if
  neither of these conditions occur.

  (desktop-registry-add-current-desktop): Add optional NAME parameter
  which will be asked for (in an interactive context) when the universal
  argument is used and pass it on to `desktop-registry-add-directory'.
2013-08-07 22:08:01 +02:00
577cc09c74 Move lexical binding specification
This is to keep (one of) the Emacs Lisp syntax checkers happy.
2013-08-07 22:08:01 +02:00
c796df3b76 Update docstrings 2013-08-07 22:08:01 +02:00
89d2b34ede Enable use of current desktop as default
When asking the user for a desktop it is now easy to specify that the
default should be the current desktop.

- desktop-registry.el (desktop-registry-current-desktop): Add optional
  DEFAULT parameter which specifies the return value when
  `desktop-dirname' is `nil', instead of previously an empty string.

  (desktop-registry--completing-read): Add optional DEFAULT-CURRENT
  parameter which specifies that the current desktop should be the
  default when asking for a desktop.

  (desktop-registry-remove-desktop): (desktop-registry-rename-desktop):
  Use the current desktop as default when asking the user to select a
  desktop.
2013-08-07 22:07:38 +02:00
e5122febe8 Change prompts when selecting a desktop 2013-08-07 15:19:17 +02:00
2fffd8cc37 Add desktop-registry-rename-desktop
* desktop-registry.el (desktop-registry-rename-desktop): New function.
2013-08-07 15:10:08 +02:00
395277047e Add desktop-registry-current-desktop
* desktop-registry.el (desktop-registry--canonicalize-dir):
  (desktop-registry-current-desktop): New functions.
  (desktop-registry-add-directory): Use
  `desktop-registry--canonicalize-dir' to get the "clean" directory
  name.
2013-08-06 17:04:18 +02:00
131cd421c0 Add desktop-registry-remove-desktop
- desktop-registry.el (desktop-registry--completing-read):
  (desktop-registry-remove-desktop): New functions.
  (desktop-registry-change-desktop): Use
  `desktop-registry--completing-read' to interactively ask the user
  which desktop to switch to.
2013-08-06 15:53:20 +02:00
e2807445bb Initial commit 2013-06-04 01:57:06 +02:00