Coder Social home page Coder Social logo

Comments (11)

andersjohansson avatar andersjohansson commented on June 26, 2024 1

In my testing the new change seems to solve the problem for helm-minibuffer-history.

from ctrlf.

jsigman avatar jsigman commented on June 26, 2024 1

It stopped being a problem and I can't recreate it

from ctrlf.

hartzell avatar hartzell commented on June 26, 2024

I ran into the same issue, but with counsel-minibuffer-history. The solution above makes things work for me (using straight):

(use-package ctrlf
  :init
  (ctrlf-mode +1)
  :config
  (add-to-list 'ctrlf-minibuffer-bindings '("C-r" . nil)))

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

Should be fixed, please test.

from ctrlf.

hartzell avatar hartzell commented on June 26, 2024

Works for me. Thanks!

from ctrlf.

andersjohansson avatar andersjohansson commented on June 26, 2024

This works for me too. Big thanks! Although I am a bit confused as to why this works, since I thought the changes in bindings for ctrlf--keymap shouldn’t override the minibuffer bindings inherited from minibuffer-local-map (where helm-minibuffer-history is bound to C-rfor me) when I am in a ctrlf-session. There is something that I don’t quite understand about emacs bindings it seems.

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

I thought the changes in bindings for ctrlf--keymap shouldn’t override the minibuffer bindings inherited from minibuffer-local-map

Perhaps it has to do with the fact that ctrlf-mode is a minor mode, and minor mode keymaps typically override everything else. Otherwise, it wouldn't be possible to enable a minor mode in the minibuffer and have it override minibuffer bindings.

from ctrlf.

andersjohansson avatar andersjohansson commented on June 26, 2024

Perhaps it has to do with the fact that ctrlf-mode is a minor mode, and minor mode keymaps typically override everything else. Otherwise, it wouldn't be possible to enable a minor mode in the minibuffer and have it override minibuffer bindings.

I see!

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

I've come up with a more robust keymapping scheme. It's a bit of a hack but should address the conflicting needs of these various bug reports. My new solution should solve #51, #52, #67, and #80 simultaneously while also working with remap bindings. I have tested it a bit and it seems to work, but I don't actually use most of the modes that have been mentioned in these issue reports, so I could use some help to confirm if the bug is resolved for all of them.

from ctrlf.

jsigman avatar jsigman commented on June 26, 2024

I get the same interference with helm-minibuffer-history using the latest code, and (add-to-list 'ctrlf-minibuffer-bindings '("C-r" . nil) disables using C-r to move backwards, as well. Is this known?

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

I don't think so. Can you open a separate issue for that? I just tested by setting

(define-key minibuffer-local-map (kbd "C-r") (lambda () (interactive) (message "Hello world!")))

to emulate what Helm does in binding a key in minibuffer-local-map, and typing C-r C-r still has the expected effect.

Notably, running

(add-to-list 'ctrlf-minibuffer-bindings '("C-r" . nil)

as you say you've done should not disable C-r, as it should result in the [remap isearch-backward] binding taking precedence instead. Something peculiar must be going on.

from ctrlf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.