Double clicking on a path doesn't highlight "~"

Bug #720758 reported by Bermuda
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LXDE
Fix Committed
Undecided
Yao Wei
lxterminal (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: lxterminal

When double clicking a path in the terminal I need it somewhere else. However, the ~ is not being included in the highlighting. Thus I have to add it manually to the string which is annoying.

LXTerminal 0.1.7
Description: Ubuntu 10.04.1 LTS
Release: 10.04

Tags: patch

Related branches

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Confirmed. Still exists in lxterminal 0.1.9-0ubuntu3 in Lubuntu Natty 11.04 Alpha 3.

Gnome Terminal highlights the leading ~ but lxterminal does not.

Test run:

  ls ~/.config
  # Double click on the 'n' in 'config' in the above command
  # Note what gets highlighted

Changed in lxterminal (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Note: terminator also does not highlight the leading tilde. xterm does highlight it.

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

This looks like just a matter of what the default set of word selection characters is.

CODE:

In src/settings.c line 124 we find:

  setting->word_selection_characters = g_strdup("-A-Za-z0-9,./?%&#:_");

Adding a ~ to the end of this string changes the default to include ~ .

WORKAROUND:

Users can change this preference themselves, by clicking on
Edit -> Preferences and then on the Advanced tab, and then typing ~ as the last character in the "Select-by-word characters" field and then clicking the "OK" button.

This setting is remembered across reboots, so a user would only need to do this once to have the ~ always included in double-clicked selections in future.

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

One line patch to add ~ to default set of word delection chars is attached. Patch generated using git format-patch.

tags: added: patch
Julien Lavergne (gilir)
Changed in lxterminal (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Yao Wei (medicalwei)
Changed in lxde:
assignee: nobody → Ming-Ting Yao Wei (medicalwei)
Revision history for this message
Yao Wei (medicalwei) wrote :

Fixed in upstream lxterminal git commit 04809ea8

Changed in lxde:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxterminal - 0.1.10-0ubuntu1

---------------
lxterminal (0.1.10-0ubuntu1) oneiric; urgency=low

  * New upstream release.
   - Fix double clicking on a path doesn't highlight "~" (LP: #720758)
  * debian/patches:
   - 01-deprecated-vte-API.patch: Remove, merged upstream.
   - 02-default-transparency.patch: Remove, merged upstream.
   - 80_translations.patch: Remove, merged upstream.
 -- Julien Lavergne <email address hidden> Sat, 23 Jul 2011 23:41:07 +0200

Changed in lxterminal (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.