rpdillon / todotxt.el

A todo.txt client for Emacs
55 stars 18 forks source link

Manual reordering of tasks #22

Closed vibrog closed 3 years ago

vibrog commented 6 years ago

I'd like to have shortcuts to move the currently highlighted tasks up or down. Similar to move-text.

ComedyTomedy commented 5 years ago

The functionality already exists. Bind todotxt-transpose-lines-up / -down. For example, using use-package you could load todotxt-mode like this:

(use-package todotxt
  :bind
  ("C-c t" . todotxt)
  (:map todotxt-mode-map
    ("M-<up>" . todotxt-transpose-lines-up)
    ("M-<down>" . todotxt-transpose-lines-down)))
ComedyTomedy commented 5 years ago

Sorry! I've just realised this was implemented since your comment.

It probably makes sense to include "M-"/"M-" as default keys, but otherwise I guess this issue could be closed.

vibrog commented 3 years ago

Thanks, exactly the functionality I asked for.