D15362: Add option to reverse URL hint numbering

Achilleas Koutsou noreply at phabricator.kde.org
Sun Sep 9 13:39:24 BST 2018


achkts added a comment.


  The URL hints feature is enabled by setting a modifier key combination. In the second screenshot (Advanced tab of the Profile settings: konsole-hints-rev-option <https://phabricator.kde.org/file/data/zr75dhmanmq3gtq6huzz/PHID-FILE-yrgfprkoaw75z5ggjabb/konsole-hints-rev-option.png>), it's set to `Control+Alt`. When the configured key combination is held, any URLs in the current view of the Konsole window are highlighted and numbered, starting with 1 for the topmost URL down to 9. If there are more than 9 URLs, the bottom-most ones are not numbered (as seen in the first screenshot: konsole-hints-before <https://phabricator.kde.org/file/data/2ezvurg6rxgjgfubcjy2/PHID-FILE-ddpavor2ihksnrxvg664/konsole-hints-before.png>). Pressing a number while the hints are highlighted opens the corresponding URL in the default web browser.
  
  The purpose of the URL hints feature is the opening of URLs that appear in a terminal window without the use of the mouse.
  
  A very common use case for URLs appearing in the terminal is in chat applications, or watching log files, or when working in the terminal and URLs appear as the output of commands (e.g., starting a server, or uploading a document to a pastebin service and getting its URL as output). In such cases, the most important URL at any given time is often the most recent one. If 10 or more URLs are on screen however, the most recent URL will not get a number. Furthermore, having the most recent URL take the number 1 is arguably more convenient and straightforward when thinking about lines on the screen in this temporal way.
  
  The patch I submitted adds an option labelled //Reverse URL hint numbering// that changes the numbering of the URLs to bottom-to-top, to make it more convenient to work with the use cases outlined above, as seen in the third screenshot (konsole-hints-after <https://phabricator.kde.org/file/data/7qdm5kmmsec2lm2adckl/PHID-FILE-emuatsrh6pr2kkh3vhfo/konsole-hints-after.png>).
  
  Examples
  --------
  
  The following two examples show some use cases and how they appear with the **default** numbering.
  
  In the following screenshot, multiple files are uploaded to gist.github.com from the terminal. Holding the `Control+Alt` displays the URL hints, numbering them top-to-bottom. If the workflow involves uploading a file and immediately opening it, having the most recent one be labelled with the number 1 is arguably more convenient.
  
  F6245237: konsole-hints-gist.png <https://phabricator.kde.org/F6245237>
  
  The next screenshot shows an example of URL hints in IRC (WeeChat). There, the most recent URL is labelled with the number 8, whereas the URLs numbered 1-7 are from earlier messages or the channel topic. Again, having the most recent URL be labelled with 1 is more convenient. If I were to return to the channel to find newer URLs from channel users, I would be more likely to want to open those newer ones, rather than the ones at the top of the buffer.
  
  F6245225: konsole-hints-weechat.png <https://phabricator.kde.org/F6245225>

REPOSITORY
  R319 Konsole

REVISION DETAIL
  https://phabricator.kde.org/D15362

To: achkts, #konsole, #vdg
Cc: ngraham, konsole-devel, herrold, maximilianocuria, hindenburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20180909/f5130064/attachment.html>


More information about the konsole-devel mailing list