LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-15-2011, 06:56 PM   #1
jiunyeelin
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Rep: Reputation: Disabled
How to make selection includes the punctuation when double click the mouse?


Hi

How to make the selected area by double clicking mouse include the punctuation? For example, I want to select the whole path like

/home/johnfei/doc/map/aaa.pdf

When I double click the mouse, it only selects a single word where my cursor is. How can I make it select the whole path when I double click the mouse?

Thank you.

John
 
Old 09-15-2011, 07:30 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

What exactly do you mean? What program are you using to "click" stuff? You need to explain in better detail please....

Cheers,

Josh
 
Old 09-15-2011, 08:26 PM   #3
jiunyeelin
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi

Thank you for the reply. I want to copy the path shown either in terminal(csh) or vi editor to another terminal or vi. Thank you.

Regards,
John
 
Old 09-15-2011, 08:37 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
What path, and to what?
 
Old 09-15-2011, 08:56 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What distro and desktop environment are you using and what precisely happens now?

You seem to imply that the selection stops at the period between the file name and extension; is that an accurate guess?

When I try it in your original post, using Debian Squeeze with Fluxbox and the Opera browser, double-clicking selects a word and stops at the forward slashes on either side of the word.

This sort of thing may be affected by many variables, including the capabilities of the specific program you are using and the GUI you are running.
 
Old 09-15-2011, 09:02 PM   #6
jiunyeelin
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi josh,

For example, I want to copy the file aaa.pdf from the directory /home/johnfei/doc/map to /proj/sdram/workarea/johnfei/doc. I will do the following procedures:

1. In one console terminal window, say term_A, under the directory /home/johnfei/doc/map, I will execute command "ls" to list all the file and the file "aaa.pdf" will be shown in this window. And, the prompt is showing the current directory which is /home/johnfei/doc/map

2. I am going to do selection of the path /home/johnfei/doc/map and paste to another terminal window, say term_B. In my current environment, I have to click the left button and drag the cursor from the beginning of "/home/johnfei/doc/map" to the end to it. Then click the middle button of mouse to term_B to paste the source path to it.

But, I know, it should be able to double click on anywhere of the source string "/home/johnfei/doc/map", and the whole string will be selected. I don't need to drag the cursor from the beginning of the path string all the way to the end.

That's my question. I hope this time I have made it clear.
Thank you.

Regards,
John

Last edited by jiunyeelin; 09-15-2011 at 09:05 PM.
 
Old 09-15-2011, 09:13 PM   #7
jiunyeelin
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi frankbell,

Now it only select a word, such as "doc" or "map", when I double clicked on any where of the whole string. It should be able to make it select the whole path string when I double click on it.

Thanks.
John
 
Old 09-15-2011, 09:18 PM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ahh, I see. Have you ever worked with the pushd and popd commands?
http://ss64.com/bash/pushd.html
http://ss64.com/bash/popd.html
For example, run the following in your first terminal:
Code:
pushd .
Then, in your other terminal, run the following:
Code:
popd
Let me know if that interests you, it may work out better.

Cheers,

Josh
 
Old 09-15-2011, 11:20 PM   #9
jiunyeelin
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Josh,

Thank you for your comment. The way you provided is good between terminals. But, it doesn't work between terminal and vi editor.

Regards,
John
 
Old 09-15-2011, 11:35 PM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Check this out, it looks really promising: http://www.vim.org/scripts/script.php?script_id=129
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mouse single-click equals double-click schachwizard Linux - General 3 04-13-2011 01:08 PM
Single mouse click acts as a double click Aquarius_Girl Linux - Hardware 9 08-31-2010 01:50 AM
tcsh double click text selection - extra characters Kyoseki Linux - Desktop 4 10-17-2006 12:03 AM
mouse: single-click becomes double-click kinzlaw Linux - Hardware 2 08-24-2005 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration