Code Monkey home page Code Monkey logo

Comments (8)

saf-dmitry avatar saf-dmitry commented on August 16, 2024 5

@soulawaker You can edit the filter string in the minibuffer by pressing C-c C-l. Then while in minibuffer you can enable input method by pressing C-\, type your filter string and hit RET. While certainly not so convenient like an incremental search, this works quite well.

@jrblevin Could it be possible to implement toggling of input method in incremental search mode, like I-search does it?

from deft.

saf-dmitry avatar saf-dmitry commented on August 16, 2024 1

@soulawaker As far as I can see from the code, Deft does not play well with the Emacs input methods, just mapping the first 256 key codes to the corresponding self-inserting commands and appending the letters to the filter string. I do switch the keyboard layout on the OS level.

from deft.

JonatanSahar avatar JonatanSahar commented on August 16, 2024 1

That would be amazing to have other input-methods available in the incremental filtering mode! +1

from deft.

saf-dmitry avatar saf-dmitry commented on August 16, 2024

From my experience I can say, that generally you can input non-Latin, e.g. Cyrillic characters in the search line.

from deft.

soulawaker avatar soulawaker commented on August 16, 2024

@saf-dmitry I tried cyrillic-translit with Emacs set-input-method. In my case, Deft did not recognize its input method type at all. All keyboard inputs were recognized as English in Deft only. How could you do that?

from deft.

soulawaker avatar soulawaker commented on August 16, 2024

@saf-dmitry Thanks for the information. I confirmed OS level input method switching worked. But it's quite inconvenient than internal input-method.

from deft.

soulawaker avatar soulawaker commented on August 16, 2024

@saf-dmitry Many thanks! I found it just yesterday. And I tried to implant Korean language, "Hangul" keycode imitating original deft source in deft-mode-map, then still it can not be inputted. Maybe need more study.
@jrblevin Thanks for making deft.

from deft.

PRESFIL avatar PRESFIL commented on August 16, 2024

Apparently the deft code is based on isearch. isearch-mode-map is
very similar to deft-mode-map, isn't it? And isearch-printing-char is a
prototype of deft-filter-increment, except for processing multibyte strings.

There is also an isearch-minibuffer-local-map, which most likely catches
bytes, but I don't understand by whom it is evaluated.

Someone can try to take support for multibyte strings from there. Maybe
someone who know elisp more than me will be able to add it there,
I haven't succeeded yet. 😒

The problem is that isearch works in a minibuffer, deft - in regular. I tried
to convert the string using this post, but so far it has been possible to collect all the bytes.

from deft.

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.