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

Getting stuck in the helm microstate #2020

Closed
icambron opened this issue Jun 15, 2015 · 9 comments
Closed

Getting stuck in the helm microstate #2020

icambron opened this issue Jun 15, 2015 · 9 comments

Comments

@icambron
Copy link

Edited description: Once in the helm microstate, I can't get back out! It persists across uses of helm and makes it hard to do stuff with numbers.


I have a file in my project called "oauth2" which I'd like to open. I hit spc p f and start typing "oauth2". When I enter the "2" the helm buffer takes up the whole screen. Other numbers have different behaviors: "1" or "3" closes it, "4" brings up some kind of completion-algorithm chooser, "5" some kind of regex thingy, and so on. I guess it's some way to switch between helm...things. But it should really be finding the file with the character 2 in it, right?

@jasoncyu
Copy link

@syl20bnr
Copy link
Owner

I cannot reproduce it, are you using the Vim or Emacs style ?
Does it happen all the time ?

@icambron
Copy link
Author

I guess I don't know what Vim vs Emacs "style" is...but I do use the default Evil keybindings everywhere and my .spacemacs is here: https://github.com/icambron/dotfiles/blob/master/.spacemacs

I restarted Emacs and it went away. From looking at the micro-state docs, it does appear to be that. I may accidentally be hitting shift-command-space while in Helm (I have command space bound to Spotlight and afaik command on Mac = Meta). Anyway, I can reproduce it by doing that.

However, I'm not able to leave the micro-state, except by restarting Emacs. Hitting s-m-spc again doesn't seem to do anything, and, though perhaps I don't understand Helm Micro-state, I don't expect it to keep me in that state next time I bring up helm, which it's doing.

@jasoncyu
Copy link

yeah, that state does seem to be a little buggy, I've only entered it on accident, which should be impossible because its two keybindings are already bound to other osx things, like alfred. I've never had a problem getting out of it though. Basically, if I'm in an inconsistent state, I just mash <Esc> and <C-g> until I get back to a normal state. Does that work for you @icambron ?

@icambron
Copy link
Author

@jasoncyu No, it doesn't, at least every way I've tried so far.

@tshemeng
Copy link
Contributor

@syl20bnr it's key-map bug, micro-state redefined minibuffer's keymap, so read-from-minibuffer cannot work well. same happend when rename a tag from web-mode micro-state.

@icambron icambron changed the title helm-projectile-find-file can't complete filenames with numbers Getting stuck in the helm microstate Oct 21, 2015
@codedmart
Copy link

@icambron I seem to have hit this issue as well. More related to you original title. I can't find files SPC p f or search for functions/methods with numbers in them SPC s a p. As soon as I hit the number the corresponding Helm micro-state keybinding happens (Helm micro-state), but I can type letters that correspond to the Helm micro-state keybinding fine. @syl20bnr I am new to emacs/spacemacs. Where could I look to try and help solve it possibly?

@a13ph
Copy link

a13ph commented Oct 29, 2015

possibly related (was trying to reproduce that bug):
SPC s a p, some query RET enters C-u for me (while not displaying any results, maybe cause I don't particularly use projects)
if I try to enter any number afterwards, it reveals that I'm indeed in universal-argument entry

System Info

  • OS: gnu/linux
  • Emacs: 25.0.50.2
  • Spacemacs: 0.104.2
  • Spacemacs branch: nil (rev. 074f425)
  • Distribution: spacemacs
  • Layers:
(auto-completion better-defaults emacs-lisp markdown git version-control org search-engine
                 (ranger :variables ranger-show-preview t)
                 (shell :variables shell-default-height 30 shell-default-position 'bottom)
                 shell-scripts spell-checking syntax-checking
                 (evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
                 autohotkey unimpaired haskell markdown python gnus)

@StreakyCobra
Copy link
Contributor

It can already be helpful to have a visual indicator of being in the helm-micro-state. Right now, nothing allows to differentiate the micro-state and normal-state. Maybe @TheBB can include this information in the spaceline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants