Git Product home page Git Product logo

Comments (9)

mathstuf avatar mathstuf commented on May 14, 2024

Toggle takes extra arguments to cycle between.

from uzbl.

mathstuf avatar mathstuf commented on May 14, 2024

Let me know if the docs need clarification (needed to double check that bit was in there).

from uzbl.

GSI avatar GSI commented on May 14, 2024

I guess so. I had tested it like this before reporting, but it fails:

@cbind !xx = chain 'toggle proxy_url http://127.0.0.1:8123#polipo http://127.0.0.1:8118#privoxy ""' 'reload'

Am I misunderstanding the concept?

from uzbl.

mathstuf avatar mathstuf commented on May 14, 2024

Does the toggle command work outside of chain?

from uzbl.

GSI avatar GSI commented on May 14, 2024

Not for proxy_url. It works for other things like in toggle zoom_text_only, though.

from uzbl.

keis avatar keis commented on May 14, 2024

toggle works by looking at the current value and from that figuring out the next value. The problem with proxy_url is that it normalises the urls when set so we don't get a match

set proxy_url http://localhost:8080 => proxy_url = http://localhost:8080/

however seems to be a separate issue clearing the proxy_url

from uzbl.

GSI avatar GSI commented on May 14, 2024

Confirmed.

Despite this, how can the third state be "proxy off" ?

I tried several variants of escaped "emptiness".

from uzbl.

keis avatar keis commented on May 14, 2024

I think that's a bug in implementation of the proxy_url variable. I can't get it to work with a simple set either

from uzbl.

GSI avatar GSI commented on May 14, 2024

Works just fine with normalized strings now. Thanks.

Maybe we should have a way to "name" proxies in order to display that name in the UI (and ditch my approach of putting a hash tag into the URL for that purpose).

from uzbl.

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.