Giter Site home page Giter Site logo

Comments (10)

fogine avatar fogine commented on May 27, 2024

I updated rofi-blocks aur package.
I see that googler github project is archived and its latest version is broken... so I'll need to remove the support for it. For google search you will need to setup google API keys..

How do you execute rofi-search exatly?

First simplest method is to

  • Execute it just by command rofi-serach it will search for googler executable and if not found it will try to find ddgr executable in your path.. if both executables are not found it will write message to stderr like

To make rofi-search work with default configuration, please install either ddgr - https://github.com/jarun/ddgr or googler - https://github.com/jarun/googler

  • The second method is explained in the readme in Usage Examples section and involves setting env variables and executing rofi search by providing rofi-search executable directly to the rofi..

from rofi-search.

jonas-w avatar jonas-w commented on May 27, 2024

Okay thank you, installing rofi-blocks works now fine.
I started rofi-search in the command line without the environment variable:

Can not find "googler" executable.
BlocksMode-Message: 11:50:15.438: Child 160750 exited abnormally

Googler is not installed and ddgr is installed. It seems like it doesn't search for ddgr

from rofi-search.

fogine avatar fogine commented on May 27, 2024

Hm, thats weird, something is off here, it definitely searchers for ddgr HERE
I just checked, installed ddgr from aur and it works..
Do you have latest rofi versin? Mine is v 1.7.3

from rofi-search.

fogine avatar fogine commented on May 27, 2024

It seams like you have ROFI_SEARCH env variable set to googler in which case it would fail as you described...

from rofi-search.

jonas-w avatar jonas-w commented on May 27, 2024

Yes I have the latest rofi version mine is also 1.7.3.
I installed rofi-search via aur and ddgr via aur.

Here a gif to show you what happens:
render1648293428743

from rofi-search.

jonas-w avatar jonas-w commented on May 27, 2024

Okay if no environment variable is set it automatically sets it to googlr with the default config:

return runRofiSearchWithDeafultConfig();

from rofi-search.

fogine avatar fogine commented on May 27, 2024

If you set ROFI_SEARCH variable, you need to execute it like this:

export DDG_ARGS='["-n", 3]'
export ROFI_SEARCH='ddgr'

rofi -modi blocks -blocks-wrap /absolute/path/to/rofi-search -show blocks \ 
-lines 4 -eh 4 -kb-custom-1 'Control+y' -theme /path/to/your/theme.rasi

rofi-search command works only with default configuration (which in your case does not work for some unknown reason..).

EDIT: you can get default theme for rofi-search here: https://gist.github.com/fogine/b79bfdbf48ec70c698c977c13043b816

from rofi-search.

jonas-w avatar jonas-w commented on May 27, 2024

Theme is a bit weird. When starting with googler and rofi-search it looks normal.
But if i search something with your command the highlighted text i searched nearly has the same color as the background color and the text seems to be invisible
image

from rofi-search.

fogine avatar fogine commented on May 27, 2024

yeah, I'll need to update the default theme, with recent rofi version its broken a little bit..

from rofi-search.

fogine avatar fogine commented on May 27, 2024

colortheme fixed in [email protected] (also removes googler support)

from rofi-search.

Related Issues (10)

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.