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

Screen flickering when using tuir #164

Open
levkush opened this issue Mar 26, 2024 · 0 comments
Open

Screen flickering when using tuir #164

levkush opened this issue Mar 26, 2024 · 0 comments

Comments

@levkush
Copy link

levkush commented Mar 26, 2024

Hi, I noticed a problem that occurs when i try to implement opening reddit.com urls in tuir.
When I open up a reddit link my screens starts to flicker but this doesn't happen if I use googler instead.

I am using WSL.
ddgr version is 2.2

Here is my implementation:

# check_url_script    
                                              
#!/bin/bash

check_url() {
    if [[ "$1" == *"reddit.com/r/"*"/" ]]; then
        subreddit=$(echo "$1" | sed 's/.*reddit.com\/r\/\([^/]*\)\/.*/\1/')
        tuir -s "$subreddit"
    elif [[ "$1" == *"reddit.com/" || "$1" == *"reddit.com" ]]; then
        tuir
    elif [[ "$1" == *"reddit.com"* ]]; then
        tuir "$1"
    else
        elinks "$1"
    fi
}

check_url "$1"

And what command I use to start it:
ddgr --url-handler /home/levkush/check_url_script (search_term)

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

No branches or pull requests

1 participant