[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: idea for capture anywhere in x
From: |
Michal Politowski |
Subject: |
Re: idea for capture anywhere in x |
Date: |
Mon, 13 Jun 2022 11:10:34 +0200 |
Dnia Thu, 9 Jun 2022 19:35:52 -0700, Samuel Wales napisał(a):
[...]
> otoh, if there is such a thing as "a cli command that will ask firefox
> for its current url" then it is possible.
Not exactly this (and what is current with many windows and tabs?), but it
seems that when Firefox
owns a selection, you can ask it not only for the text but also for the URL:
$ xclip -selection clipboard -o -t text/plain
A GNU Emacs major mode for keeping notes, authoring documents,
computational notebooks, literate programming, maintaining to-do lists,
planning projects, and more \u2014 in a fast and effective plain text
system.
$ xclip -selection clipboard -o -t text/x-moz-url-priv
https://orgmode.org/
$ xclip -selection clipboard -o -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
text/html
text/_moz_htmlcontext
text/_moz_htmlinfo
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain
text/x-moz-url-priv
--
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.