Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counsel-m-x cd doesn't work #760

Closed
parbo opened this issue Nov 8, 2016 · 2 comments
Closed

counsel-m-x cd doesn't work #760

parbo opened this issue Nov 8, 2016 · 2 comments

Comments

@parbo
Copy link

@parbo parbo commented Nov 8, 2016

When I do M-x cd, I get completion support and so on, but when I press RET there's no change. The global value for default-directory is still nil. Have I misconfigured something?

@parbo
Copy link
Author

@parbo parbo commented Nov 8, 2016

(use-package counsel
  :ensure t
  :config
  (setq counsel-find-file-ignore-regexp
        (concat
         ;; File names beginning with # or .
         "\\(?:\\`[#.]\\)"
         ;; File names ending with # or ~
         "\\|\\(?:\\`.+?[#~]\\'\\)"))
  :bind
  (("M-x" . counsel-M-x)
   ("C-x C-f" . counsel-find-file)
   ("<f1> f" . counsel-describe-function)
   ("<f1> v" . counsel-describe-variable)
   ("<f1> l" . counsel-load-library)
   ("<f2> i" . counsel-info-lookup-symbol)
   ("<f2> u" . counsel-unicode-char)
   ("C-c o" . counsel-git)
   ("C-c g" . counsel-git-grep)
   ("M-y" . counsel-yank-pop)
   :map ivy-minibuffer-map
   ("M-y" . ivy-next-line)))

(use-package ivy
  :ensure t
  :diminish ivy-mode
  :init
  (ivy-mode 1)
  :config
  (setq ivy-use-virtual-buffers t)
  (setq ivy-display-style 'fancy)
  (setq ivy-wrap t)
  (setq ivy-re-builders-alist
        '((swiper . ivy--regex-plus)
          (t . ivy--regex-fuzzy)))
  (setq ivy-initial-inputs-alist nil)
  (setq ivy-extra-directories nil)
  :bind
  (("C-c b" . ivy-resume))
  )

(use-package swiper
  :ensure t
  :bind
  (("C-s" . swiper))
  )
@abo-abo abo-abo closed this in 2237916 Nov 8, 2016
@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Nov 8, 2016

Thanks, please test. While cd should work fine now, some other file-based command may potentially break because of this change.

abo-abo added a commit that referenced this issue Nov 29, 2016
Fixes #810
Fixes #760
Fixes #779
Reopen #717
abo-abo added a commit that referenced this issue Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants