Closed muralikodali closed 3 years ago
That's my fault, sorry about that. I missed adding the lib
folder to the path for yank-text-url
. Now it should be fixed, please try the new file.
You don't need to install anything other than what's mentioned in the README
, Clipboard
and the other modules are in the lib
folder.
thanks for your reply. i am getting copied text and url now. but there is no space or blank line between copied text and url.
for select-links-with-title, i am getting following error :
Type check failed in binding to parameter '$html'; expected Str but got Any (Any)
in sub find at /home/xxxx/.local/share/qutebrowser/userscripts/lib/QBUtils.rakumod (QBUtils) line 9
in block <unit> at /home/xxxx/.local/share/qutebrowser/userscripts/select-links-with-title line 6
Are you using X display server and xclip
?
Can you show me the keybindings you are using?
My OS is Arch Linux with i3 window manager. I am using X display and xclip.
My key bindings are (in autoconfig.py) :
';j': spawn --userscript yank-text-url
';k': spawn --userscript select-links-with-title
i have copied only the above two scripts to userscripts folder. yank-text-url is working fine ( without a blank line between copied text and url )
My OS is Arch Linux with i3 window manager. I am using X display and xclip.
I'm on Wayland so I can't test it on X right now, But I don't remember having a problem with xclip. Can you run this in your terminal and see if the text is copied and separated with newline?
echo -e "title\nurl" | xclip -selection clipboard
My key bindings are (in autoconfig.py) :
';k': spawn --userscript select-links-with-title
select-links-with-title
should be used with hint
. Look at the hint containers
example in the README.
If you want to select links of the current page, use select Links --with-title
. You need the select
script for this.
echo -e "title\nurl" | xclip -selection clipboard
changing the above command to with extra \n, echo -e "title\n\nurl" | xclip -selection clipboard
got the blank line in between.
my terminal is alacritty and shell is fish.
select-links-with-title
should be used withhint
. Look at thehint containers
example in the README.If you want to select links of the current page, use
select Links --with-title
. You need theselect
script for this.
copying select script and changing key configuration to hint links userscript select-links-with-title
gave the expected result.
rofi is launching full size. can we change the geometry of rofi ?
echo -e "title\nurl" | xclip -selection clipboard
changing the above command to with extra \n,
echo -e "title\n\nurl" | xclip -selection clipboard
got the blank line in between.
There shouldn't be any blank lines, it just joins them with a newline. so if the selected text is 'test' and url is 'http://example.com', what gets copied is:
test
http://example.com
If you want an extra newline, add another \n
to the script, where the other \n
is.
rofi is launching full size. can we change the geometry of rofi ?
You'd have to manually change the -location
and -width
or other options in the lib/Rofi.rakumod file.
though this issue is not related to your scripts, i request your help in solving installation of zef modules
yank-title-url exited successfully.
yank-text-url is giving following error.
i have tried to install Clipborad using zef and got the following result.
after googling, i found a suggestion to install inline::Perl5 to use modules in perl5 installation.
I have got the following error.
request your guidance on this matter.