Reply to topic

Can i grab and paste text form URL using katepart script?

mrkwjc
Registered Member
Posts
1
Karma
0
Hi!
During editing in the katepart based app i would like to have a keyboard shortcut which executes the following sequence:
  • connect to given url,
  • grab the output of this connection,
  • past the result into document at current cursor.
Is this possible to achieve with scripting interface?

In kate there is a plugin "External Tools" where such functionality can be implemented. But this is not working (afaik) in in other katepart apps (like kile), that's why i'm searching for other solution.

Regards,
Marek
hdavid
Registered Member
Posts
1
Karma
0
The link you provided for the word count feature has

The files have been tested with KDE 3.2.2 and 3.2.3.

So that doesn't concern us who are on Kubuntu 18.04.

Code: Select all
[email protected]:~$ inxi -Sxxx
System:    Host: kububb Kernel: 4.15.0-34-generic x86_64 bits: 64 compiler: gcc v: 7.3.0
           Desktop: KDE Plasma 5.12.6 tk: Qt 5.9.5 wm: kwin_x11 dm: SDDM
           Distro: Ubuntu 18.04.1 LTS (Bionic Beaver)
[email protected]:~$


In the version of Kate that comes with Kubuntu 18.04, word count is built-in. You don't need a script.

n the bottom of the image you'll see 606/0. If you select some text, the 0 will change to reflect the words in your selection.

Now, regarding the scripts already available: I ran

Code: Select all
locate kate | grep script | grep -v locale


and saw: subway gift card balance

Code: Select all
[email protected]:~$ locate kate | grep script | grep -v locale
/usr/share/doc/HTML/ca/kate/format-text-superscript-22.png
/usr/share/doc/HTML/ca/katepart/format-text-superscript-22.png
/usr/share/doc/HTML/en/kate/format-text-superscript-22.png
/usr/share/doc/HTML/en/katepart/format-text-superscript-22.png
/usr/share/katepart5/script
/usr/share/katepart5/script/README.md
/usr/share/katepart5/script/libraries
/usr/share/katepart5/script/libraries/underscore.js
[email protected]:~$


However, I could not locate individual scripts anywhere. It's possible they're part of Kate's code.

 
Reply to topic

Bookmarks



Who is online

Registered users: annyone, Baidu [Spider], Bing [Bot], bogkuz, claydoh, denispyr, Don B. Cilly, dualkem, farid, gfielding, Google [Bot], Majestic-12 [Bot], marktaff, ostroffjh, Section_8, shurato, Sogou [Bot], Steve R.