[task #10906] Wrapping long words (ex. urls) should not indent next line.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[task #10906] Wrapping long words (ex. urls) should not indent next line.

Andreas Weber-2

URL:
  <http://savannah.nongnu.org/task/?10906>

                 Summary: Wrapping long words (ex. urls) should not indent
next line.
                 Project: WeeChat
            Submitted by: simeng
            Submitted on: Wed 02 Feb 2011 03:09:23 PM GMT
                Category: display
         Should Start On: Wed 02 Feb 2011 12:00:00 AM GMT
   Should be Finished on: Wed 02 Feb 2011 12:00:00 AM GMT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
                IRC nick: si-m1

    _______________________________________________________

Details:

When text wrap code cannot find a space (" ") to wrap the text, and have to
split a word/url in half it shouldn't indent the next line. This way the
terminal text selection will follow the word to the next line.

Example:

Instead of:

 .-------------------------------------------------.
| xterm                                         [X] |
|---------------------------------------------------|
|15:54 <@si-m1> check out this awesome IRC client   |
|               everyone!                           |
|15:57 <@si-m1> http://weechat.org/files/ubuntu/mave|
|               rick/0.3.4/amd64/weechat-core_0.3.4-|
|               1_amd64.deb                         |
|                                                   |
|[15:59] 3 [irc/irc.freenode.net] [Act: 10,9,7,11,++|
|[si-m1] _                                          |
'---------------------------------------------------'

Wrap as following:
 .-------------------------------------------------.
| xterm                                         [X] |
|---------------------------------------------------|
|15:54 <@si-m1> check out this awesome IRC client   |
|               everyone!                           |
|15:57 <@si-m1> http://weechat.org/files/ubuntu/mave|
|rick/0.3.4/amd64/weechat-core_0.3.4-1_amd64.deb    |
|                                                   |
|[15:59] 3 [irc/irc.freenode.net] [Act: 10,9,7,11,++|
|[si-m1] _                                          |
'---------------------------------------------------'

This will not look as nice, but it will make the url selection and detection
work correctly in the terminal.






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10906>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[task #10906] Wrapping long words (ex. urls) should not indent next line.

Andreas Weber-2

Additional Item Attachment, task #10906 (project weechat):

File name: example.txt                    Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10906>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[task #10906] Wrapping long words (ex. urls) should not indent next line.

Andreas Weber-2
Follow-up Comment #1, task #10906 (project weechat):

This can be achieved with two commands:
 /set weechat.look.align_end_of_lines time
 /set weechat.look.eat_newline_glitch on

The first one makes sure the rest of the url starts at the beginning of the
line, and the second one (available since 0.3.6) makes sure there is no n so
that you can copy/paste easily.

This is also going to affect short words, though.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10906>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[task #10906] Wrapping long words (ex. urls) should not indent next line.

Andreas Weber-2
Update of task #10906 (project weechat):

                  Status:                    None => Cancelled              
             Assigned to:                    None => flashcode              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #2:

In version 0.4.4-dev, you can now enable the bare display (default key:
alt+"!"), which is designed to let you click easily on URLs.

For more info: http://dev.weechat.org/post/2014/02/16/Bare-display

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10906>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev