Using set-url (C-l) usually hangs, I’ve setup a custom macro for stumpwm to search in a new buffer utilizing something like this shell command nyxt 'https://duckduckgo.com/?q='
Is there a way to use something like nyxt -r -e '(set-url "discourse.atlas.engineer") to set a new url for the current buffer?
thanks! This works nicely, do you have any tips on improving the performance of nyxt? Is there a way to disable parts of the minibuffer functionality to reduce hangs/loading processes?
Actually I’m just looking for ways to reduce the chances of getting “in progress” when I’m using M-l or C-l. I’ve already found a way to do this by avoiding the ‘interactivity’ that leads to hangs/loading process
This way I’m not getting any of the “hangs” that I normally do, by using stumpwm for the ‘interactivity’.
But I was wondering if there is a way to improve nyxt directly by for e.g disabling the history search or smt like that. Killing buffers C-x k never hangs, I was thinking it’s because it displays less & was looking for ways to have C-l etc. work the same way.
That would be ideal… But I have no idea how to do that, I know just enough to write bugs & break my system when it comes to common lisp
I’m not sure how to load nyxt, I’ve tried cloning the repo at ~/quicklisp/local-projects, opening nyxt.asd → C-c C-k but whenever I’m running (ql:quickload :nyxt) I’m getting System "history-tree" not found.
Tried to hack my way around and just ended up crashing my session a couple of times , I’m just using stumpwm:run-shell-command "nyxt -r -e to interact with nyxt since then.
I’ll help you to start Nyxt from a CL REPL. I don’t know if you use Slime or SLY, but the instructions I’ll give you can even be done in a shell once you invoke sbcl.
@thanosapollo you don’t need to manage CL dependencies yourself when using the method I’ve described because ASDF looks for them at ~/common-lisp/. All Nyxt CL dependencies are available at ~/common-lisp/nyxt/_build as git submodules.
Did you clone Nyxt at ~/common-lisp/nyxt/?
@aartaka I think the OP is already using --remote and --eval (see their top post).
Sorry, I've been confusing. What I mean is piping Lisp expressions from StumpWM to Nyxt socket directly. This way, there's no slowdown because of Nyxt CLI/GUI startup time, and the goal of quickly sending stuff to Nyxt is achieved.
Killing buffers is quite light-weight, because there's only buffers to list. set-url is too involved to be instrumented. But! set-url also has a URL argument which you can pass and make it load the page right away. So you can send something like (set-url :url "https://example.com") to Nyxt and it should work instantaneously.