                              "` to create another tab.")))
            ((eq (length tabs) 1)
             (tab-bar-switch-to-tab (car tabs)))
-           (t (ivy-read "Select tab: " tabs :action 'tab-bar-switch-to-tab))))))
+           (t (tab-bar-switch-to-tab (completing-read "Select tab: " tabs)))))))
     (evil-leader/set-key "t" 'meain/switch-tab-dwim)
     (evil-leader/set-key "C"
       (lambda ()

(defun meain/open-note ()
  "Quick open a note from `.notes` directory."
  (interactive)
  (ivy-read "Choose note: "
            (meain/nested-list-dir "~/.notes")
            :action (lambda (x)
                      (find-file (concatenate 'string "~/.notes/" x)))))
(evil-leader/set-key "a N" 'meain/open-note)

;; dasht docs

  "Interactively pick ssh host."
  (with-temp-buffer
    (insert-file-contents "~/.ssh/config")
    (format "%s"
            (completing-read "Choose host: "
                             (mapcar (lambda (x)
                                       (replace-regexp-in-string (regexp-quote "Host ")
                                                                 ""
                                                                 x))
                                     (remove-if-not #'(lambda (x)
                                                        (s-starts-with-p "Host" x))
                                                    (split-string (buffer-string)
                                                                  "\n")))))))

;; split between hirizontal and vertical (simpler emacs-rotate)
(defun meain/window-split-toggle ()
