Commit graph

37 commits

Author SHA1 Message Date
322d83f441 Change hash(method) to algo(rithm)
To keep terminology in line with the internal workings of DisPass,
hash(method) should be replaced by algo or algorithm, depending on the
situation.
2013-01-08 00:40:32 +01:00
0a8d1b6163 Simplify label management functions
By calling `dispass-label' with it's brand spankin' new `--add' and
`--remove' switches the `dispass-add-label' and `dispass-remove-label'
functions can be greatly simplified.  This also removes the need for
the `dispass-file', which assumed the file was in `~/', though that is
not the default case with DisPass anymore.
2013-01-08 00:35:57 +01:00
09e65e6a35 Change description to show dispass.el is a wrapper
When looking at dispass.el through ELPA it was not clear that
dispass.el is only a wrapper around DisPass and does not actually do
any of the work itself.
2013-01-08 00:03:00 +01:00
5a231647d8 Update README.org
There were some things left unexplained in it.
2012-12-16 22:20:34 +01:00
58216d78b5 Separate change log into NEWS; remove comments
Remove everything from dispass.el that is also in README.org and place
the change log list in the NEWS file.
2012-12-16 17:32:36 +01:00
7e8d8992e0 Oops, typo 2012-12-04 01:03:55 +01:00
6152ab4943 Bump version to v1.1.1 2012-12-03 22:51:38 +01:00
5ea93a6762 Don't open a window when calling dispass
The way `shell-command' was being used would open a new window every
time `dispass-get-labels' would get called, so now use
`shell-command-to-string' in combination with `insert' in order to
prevent that from happening.
2012-12-03 22:51:15 +01:00
466c63d99f Trust dispass to create the label
Any recent version of dispass will add the label to the labelfile when
the `-c' flag is passed to it.
2012-11-18 21:06:12 +01:00
c93e291edb Don't try to kill the buffer
Let the sentinel handle that, not the filter.
2012-11-18 21:04:14 +01:00
32040e08a0 Clean-up prompts from dispass a little
Remove any leading and trailing whitespace and add a single space.
2012-11-18 21:03:32 +01:00
312e06ecab Add completion for dispass and use dispass-labels
Using `dispass-labels' and parsing its results is probably better than
reading and parsing the file itself.
2012-09-15 16:09:41 +02:00
071ef02715 Add URL header 2012-07-09 22:38:07 +02:00
aa75ed13ee Merge branch 'labels' 2012-07-09 22:18:03 +02:00
688bee7ca1 Clean up dispass-labels--refresh
* dispass.el (dispass-labels--refresh): Store information once and
  reuse.
2012-07-08 22:46:55 +02:00
41e2eb2b80 Change keywords
`encryption' and `security' don't seem to be acceptable keywords.
2012-07-08 22:45:53 +02:00
30bfd28fcb Remove unnecessary key definition
* dispass.el (dispass-labels-mode): Remove the key definition for
  `dispass-create', it is already defined in
  `dispass-labels-mode-map'.
2012-07-08 18:30:52 +02:00
116dc63f49 Add/fix docstrings 2012-07-08 18:29:45 +02:00
8d80a61ff4 Update change log 2012-07-08 18:22:41 +02:00
c7a86ac858 Only remove when a match has been found
* dispass.el (dispass-remove-label): Only remove a label if it has
  been found and don't throw an error when it hasn't.
2012-07-08 17:44:29 +02:00
9bd8cdaaa5 Add function to remove label from labels file
* dispass.el (dispass-remove-label): Removes the given or pointed-at
  label from `dispass-file'.  When no label is found it will throw an
  error.

  (dispass-labels-mode-map): Add binding for `dispass-remove-label'.
2012-07-08 16:05:07 +02:00
d7d34799d4 Improve label repexp
* dispass.el (dispass-labels--refresh): Change the regular expression
  used to allow `-' and `_' in the label names.
2012-07-08 16:02:14 +02:00
4d51d575a2 Change readme to org. 2012-07-06 23:25:55 +02:00
e1a25a2078 Add for side effects 2012-07-06 00:31:02 +02:00
198a920f7b Add ability to add label to file
* dispass.el (dispass-labels-mode-map): Add direct keybinding for
  `dispass-add-label' so it is not required to always call
  `dispass-create'.

  (dispass-create): Call `dispass-add-label' in order to automatically
  insert newly created labels.

  (dispass-add-label): Adds a new label definition at the end of
  `dispass-file' and when `major-mode' is `dispass-labels-mode'
  reverts the buffer to show the changes.
2012-07-06 00:30:15 +02:00
b1e4dfbaab Add dispass-default-length setting
* dispass.el (dispass-default-length): Add default length to pass
  along to DisPass setting.

  (dispass-create): Use `dispass-default-length' when LENGTH is
  empty.
2012-07-06 00:26:27 +02:00
4ba7794568 Return keymap
If the keymap isn't returned, it doesn't work.
2012-07-06 00:22:06 +02:00
507be16558 Select the new buffer
When calling `dispass-list-labels' the new buffer should be selected,
not _just_ shown.
2012-07-05 02:20:39 +02:00
cb33ce7048 Add and show keybinding for dispass-labels-mode 2012-07-05 02:14:58 +02:00
c72616deeb Fix -c flag for dispass
Since the prompt for dispass has changed in v0.1a8 the process filter
didn't recognize the second prompt anymore.
2012-07-05 02:08:45 +02:00
f0a31cb1f6 Add autoload cookie to dispass-list-labels 2012-07-05 01:45:55 +02:00
3694850613 Make labels in list clickable
When a label is clicked on, or <RET> is pressed while the cursor is on
it, the `dispass' function is called with the appropriate label and
length.
2012-07-05 01:41:41 +02:00
2427dc3138 Add a simple list of labels 2012-07-05 01:11:07 +02:00
933febfeaa Add custom group
By using `defgroup' and `defcustom' the variable (and possible later
variables) can be changed through Emacs' extensive customization
interface.

    M-x customize-group <RET> dispass <RET>

Will show you the variables that can be changed for dispass.el.
2012-06-17 22:47:40 +02:00
d547d846c6 Add the -l switch functionality
Using a numeric prefix argument when calling either `dispass' or
`dispass-create' will invoke dispass with the -l switch to cut
passwords down to a certain size.
2012-06-17 14:44:46 +02:00
Benjamin Althues
99e40ccc0f Add README for emacs wrapper 2012-06-16 02:53:16 +02:00
702932c6c1 Add dispass.el
dispass.el is an emacs wrapper script for dispass, it provides the
ability to recall or create the passwords.
2012-06-09 21:47:12 +02:00