63 lines
2.0 KiB
EmacsLisp
63 lines
2.0 KiB
EmacsLisp
;;; evil-collection-tablist.el --- Evil bindings for Tablist -*- lexical-binding: t -*-
|
|
|
|
;; URL: https://github.com/emacs-evil/evil-collection
|
|
;; Version: 0.0.1
|
|
;; Package-Requires: ((emacs "25.1"))
|
|
;; Keywords: evil, tablist, tools
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
;; (at your option) any later version.
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;; GNU General Public License for more details.
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
;;; Commentary:
|
|
;; Evil bindings for Tablist.
|
|
|
|
;;; Code:
|
|
(require 'tablist nil t)
|
|
(require 'evil-collection)
|
|
|
|
(defconst evil-collection-tablist-maps '(tablist-mode-map tablist-minor-mode-map))
|
|
|
|
;;;###autoload
|
|
(defun evil-collection-tablist-setup ()
|
|
"Set up `evil' bindings for `tablist'."
|
|
|
|
(evil-collection-define-key 'normal 'tablist-mode-map
|
|
(kbd "RET") 'tablist-find-entry
|
|
"d" 'tablist-flag-forward
|
|
"f" 'tablist-find-entry
|
|
"D" 'tablist-do-delete
|
|
"C" 'tablist-do-copy
|
|
"R" 'tablist-do-rename
|
|
"x" 'tablist-do-flagged-delete)
|
|
|
|
(evil-collection-define-key 'normal 'tablist-minor-mode-map
|
|
"<" 'tablist-shrink-column
|
|
">" 'tablist-enlarge-column
|
|
"U" 'tablist-unmark-all-marks
|
|
"\t" 'tablist-forward-column
|
|
"g%" tablist-mode-regexp-map
|
|
"g*" tablist-mode-mark-map
|
|
"g/" tablist-mode-filter-map
|
|
"gr" 'tablist-revert
|
|
"k" 'tablist-do-kill-lines
|
|
"m" 'tablist-mark-forward
|
|
"q" 'tablist-quit
|
|
"s" 'tablist-sort
|
|
"t" 'tablist-toggle-marks
|
|
"u" 'tablist-unmark-forward
|
|
(kbd "TAB") 'tablist-forward-column
|
|
[backtab] 'tablist-backward-column))
|
|
|
|
(provide 'evil-collection-tablist)
|
|
;;; evil-collection-tablist.el ends here
|