Giter Club home page Giter Club logo

Comments (4)

zevlg avatar zevlg commented on July 29, 2024

Searching is done by Telegram server, not by telega.el and Telegram server does not support regexps as I know. Use https://bugs.telegram.org/ to report this searching issue

JFYI: You can search messages inplace, using C-c C-r binding in the chatbuf

from telega.el.

welandx avatar welandx commented on July 29, 2024

Searching is done by Telegram server, not by telega.el and Telegram server does not support regexps as I know. Use https://bugs.telegram.org/ to report this searching issue

Thank you for your suggestion. I found this: https://bugs.telegram.org/c/724.
So I'm looking for a temporary alternative method.

JFYI: You can search messages inplace, using C-c C-r binding in the chatbuf

Is there any difference with this search? I found that it behaves the same as telega-chatbuf-filter-search.

My current idea is to use telega-button-backward and apply the logic similar to my/match-at-point-msg to each message. Store each matched message, then telega-msg-goto.
Is this approach feasible? If you could provide some advice, I would greatly appreciate it.

from telega.el.

zevlg avatar zevlg commented on July 29, 2024

Searching is done by Telegram server, not by telega.el and Telegram server does not support regexps as I know. Use https://bugs.telegram.org/ to report this searching issue

Thank you for your suggestion. I found this: https://bugs.telegram.org/c/724. So I'm looking for a temporary alternative method.

JFYI: You can search messages inplace, using C-c C-r binding in the chatbuf

Is there any difference with this search? I found that it behaves the same as telega-chatbuf-filter-search.

telega-chatbuf-filter-search filters messages, i.e. shows only messages matching search query. Inplace searching searches for the query without filtering messages, so you can see context surrounding the message matching your query.

My current idea is to use telega-button-backward and apply the logic similar to my/match-at-point-msg to each message. Store each matched message, then telega-msg-goto. Is this approach feasible? If you could provide some advice, I would greatly appreciate it.

This could be done, however, in a general way this will be very slow and will give inconsistent results.

What you can do is to match newly incoming messages for some keyword of your interest and then display messages list. Something similar to custom value for telega-notifications-msg-temex and M-x telega-notifications-history RET command to display messages matching telega-notifications-msg-temex

from telega.el.

welandx avatar welandx commented on July 29, 2024

telega-chatbuf-filter-search filters messages, i.e. shows only messages matching search query. Inplace searching searches for the query without filtering messages, so you can see context surrounding the message matching your query.

I see.

This could be done, however, in a general way this will be very slow and will give inconsistent results.

Thanks, but this feature is quite important to me personally, so I will implement it temporarily to solve the problem.

What you can do is to match newly incoming messages for some keyword of your interest and then display messages list. Something similar to custom value for telega-notifications-msg-temex and M-x telega-notifications-history RET command to display messages matching telega-notifications-msg-temex

This is also helpful.

from telega.el.

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.