Live data from Hacker News

Nyxt: The Hacker's Browser

nyxt.atlas.engineer

221–230 of 262 posts

Re: Nyxt: The Hacker's Browser

#223

> we select and close all buffers Why would you call tabs "buffers"? It's not a text editor. (And that barely makes sense for a text editor anyway.)

Oops, I made a yank-pasta error.

With my https://upload.wikimedia.org/wikipedia/commons/7/77/Adm3aima... keyboard

Re: Nyxt: The Hacker's Browser

#225

Earlier quoted context omitted.

How much work would it be to convert either Firefox / Chromium / Nyxt into this instead of starting from scratch?

There are always going to be limitations to extension-based approaches but Firefox with tridactyl is most of the way there capability-wise IMO ( https://github.com/tridactyl/tridactyl ). I use that plus tree-style tabs and find it excellent. There's always some extensibility limitations that break the integration though, like extensions getting disabled on mozilla domains. I love projects like nyxt and respect their…

You can let extensions run on Mozilla domains by tweaking some settings in about:config [1].

Mozilla believes that it creates a security risk and that you shouldn't do it.

[1]: https://www.ghacks.net/2017/10/27/how-to-enable-firefox-webe...

Re: Nyxt: The Hacker's Browser

#226

Earlier quoted context omitted.

This! I've been programmer for about 20 years now and I could never understand why Vi(m) or Emacs exists with those weird bindings which are completely different from pretty much everything else. I'm not that old, maybe they had their cake in 80s, but perhaps time to move on to something modern which would have modern defaults (if many need to customize there's something wrong with the defaults) that appeal to all ke…

> I've been programmer for about 20 years now and I could never understand I doubt there's any hope for you... but from other thing you said: > are completely different from pretty much everything else. I can conclude that you were programming something that's not a typical modern computer. I.e. you never used things like terminal (with readline), never red a manpage, never used pagers like more / less, which would m…

Started with Flash/ActionScript. Then C#. Now JS/TS.

Yup, I'm pretty much working with terminal everyday, though nowadays most popular thing seems to be Vscode.

Maybe you should modernize yourself instead of attacking people with a childish level of humiliation.

Re: Nyxt: The Hacker's Browser

#227

Earlier quoted context omitted.

Yes and calculators have the same issue. I mean, what about Indian numerals, Ethiopian and how does one perform a proper Coptic calculation using these awful devices with showstopping UX flaws? It’s time we pander to each and every culture’s random conception of symbol manipulation and end this era of universal, gate-keeping, commonality. The time of personalized input devices is upon us. Vim and thus this browser is…

Remember that most European keyboards don't have [ and ] accessible on the first/second level. That's already half of the western civilization, not some random's custom layout.

I'm from South America, and have lived in Europe for over 20 years, and I use a US layout, with compose key. It gives trivial access to accents and more, without the annoyance of different layouts (I used AZERTY for years while living in France, and it's just atrocious). I know many people here in Finland who code with a nordic layout, and for the life of me, I don't understand how they remain sane.

Re: Nyxt: The Hacker's Browser

#228

Earlier quoted context omitted.

This! I've been programmer for about 20 years now and I could never understand why Vi(m) or Emacs exists with those weird bindings which are completely different from pretty much everything else. I'm not that old, maybe they had their cake in 80s, but perhaps time to move on to something modern which would have modern defaults (if many need to customize there's something wrong with the defaults) that appeal to all ke…

Vi has a steep learning curve, but once mastered, it is on-par or exceeds the best of other editors. It is also present everywhere (on Linux at least) and works via ssh as well as locally. I'm not using it anymore myself, but I know and respect people who do. For me the tradeoff was not worth it, however it still annoys me to hell and back that I have to reach for the mouse so often in vscode.

I see.

I develop mostly mobile apps and I need to be using mouse/trackpad anyway frequently so that's not an issue.

Though about the keyboard part: I'm used to Vscode's keyboard shortcuts too (and I can in no way say I know all of it) and I can easily navigate and code in Vscode too.

Perhaps many people who got used to those tools developed muscle memory so much that they can't give Vscode (or anything modern) the chance it deserves.

Re: Nyxt: The Hacker's Browser

#229
post #5

You know what would be cool, if you could use unix cli tools in the browser. Press control+ , a small console box shows up and run: |grep ...|awk ... And the text of the document gets processed. But if you want to mess with the dom you could: Html.Body | sed ... | jq ...

The page content piping could be done e.g. like this:

  (defun get-buffer-text (&optional buf)
    (nyxt/mode/document:select-all buf)
    (nyxt/mode/document:copy buf)
    (trivial-clipboard:text))

  (define-internal-page cmd-result (&key text) (:title "*Result*")
    (spinneret:with-html-string
      (dolist (line (str:split #\newline text))
        (:p line))))

  (define-command-global buf-text-to-pipe-cmd (&optional buf cmd)
    (let* ((buf (or buf (nyxt:current-buffer)))
           (safe-text (uiop:escape-sh-token (get-buffer-text buf)))
           (cmd (or cmd (prompt1 :prompt "cmd: " :sources 'prompter:raw-source)))
           (cmd-output (uiop:run-program
                        `("bash" "-c" ,(str:concat "echo '" safe-text "' | " cmd))
                        :output :string)))
      (nyxt:buffer-load-internal-page-focus 'cmd-result :text cmd-output)))
And then call the function like C-space buf-text-to-pipe-cmd and specify the commands to pipe to. Output will appear in a new buffer that can be further used as the source for piping.

DOM handling would be a tad more laborous, but you can pick DOM elements from output of nyxt:document-model with CSS selectors using clss:select.

Re: Nyxt: The Hacker's Browser

#230
post #23

I've always thought of developing a Hacker's browser. One where there are no restrictions of what it can do. For example, you can't write a chrome extension to spoof the Referrer header on requests. The Chrome browser is more locked down than you think.

Doesn't this one do that? https://chrome.google.com/webstore/detail/referer-control/hn...

Hmm, if you look at the reviews, it doesn't seem to work for everybody. Also seems to make a "referrer" header instead of "Referrer".
Post reply on HN