GithubHelp home page GithubHelp logo

Comments (3)

maxauthority avatar maxauthority commented on August 19, 2024

Hi,

first of all, thanks for answering the StackExchange questions!

And yes, it is possible, the complete syntax here:
https://github.com/vimperator/vimperator-labs/blob/master/common/locale/en-US/starting.xml

So try that:

firefox -vimperator "+c 'js alert("from commandline");'"

would show an prompt after starting firefox or

firefox -vimperator "+c 'open "from commandline"'"

should open the url or search the web.

If it is really required to put that content into the command line, you can
try the normal command:

firefox -vimperator "+c 'normal ":open this is a search"'"

Hope that helps,
Martin

On Sat, Oct 4, 2014 at 3:13 PM, Sam Mingo [email protected] wrote:

Is something like this possible with either Firefox or Chrome + Vimperator?

$ firefox open "this is a search"

The open command would be passed to to the vimperator command line. This Q
was asked on the U&L stackexchange site where I'm one of the mods.

http://unix.stackexchange.com/questions/159166/can-i-pass-commands-to-vimperator-firefox-through-the-command-line

β€”
Reply to this email directly or view it on GitHub
#48.

from vimperator-labs.

maxauthority avatar maxauthority commented on August 19, 2024

I just saw, that if the user really just wants to search for something
(with :open), he'll have to do it delayed as there is a race condition with
the firefox loading code.

Use something like:

firefox -vimperator "+c 'js liberator.sleep(1000) && liberator.open("this
is a search");'"

On Sat, Oct 4, 2014 at 8:10 PM, Martin Stubenschrott <
[email protected]> wrote:

Hi,

first of all, thanks for answering the StackExchange questions!

And yes, it is possible, the complete syntax here:

https://github.com/vimperator/vimperator-labs/blob/master/common/locale/en-US/starting.xml

So try that:

firefox -vimperator "+c 'js alert("from commandline");'"

would show an prompt after starting firefox or

firefox -vimperator "+c 'open "from commandline"'"

should open the url or search the web.

If it is really required to put that content into the command line, you
can try the normal command:

firefox -vimperator "+c 'normal ":open this is a search"'"

Hope that helps,
Martin

On Sat, Oct 4, 2014 at 3:13 PM, Sam Mingo [email protected]
wrote:

Is something like this possible with either Firefox or Chrome +
Vimperator?

$ firefox open "this is a search"

The open command would be passed to to the vimperator command line. This
Q was asked on the U&L stackexchange site where I'm one of the mods.

http://unix.stackexchange.com/questions/159166/can-i-pass-commands-to-vimperator-firefox-through-the-command-line

β€”
Reply to this email directly or view it on GitHub
#48.

from vimperator-labs.

slmingol avatar slmingol commented on August 19, 2024

I saw that you responded to the OP, thanks for taking care of this quickly and efficiently. He had also asked for an example of how to roll what you gave him into a function, so I provided him those details on your answer there as well. I'm going to close this issue since it seems as though it's been resolved on the vimperator end. Thanks again for a wonderful addon. I use it too 8-).

from vimperator-labs.

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.