Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way to turn it off so that when you're renaming a file, it doesn't highlight the extension?

share|improve this question
add comment

4 Answers

Use something else than Nautilus' List View mode. It works fine in the Compact View and Icon View modes. Apparently it's a regression: https://bugzilla.gnome.org/show_bug.cgi?id=627110

Update:
This is now fixed in the development version of Ubuntu 11.10 (Nautilus 3.0.1.1).

share|improve this answer
2  
How annoying. Do you suppose there's a chance of Ubuntu pulling the available patch into maverick-updates? –  Oli Nov 9 '10 at 14:31
add comment

When I right click a file and select Rename, or press F2, the extension isn't highlighted.

To answer your question: you don't have to do anything.

share|improve this answer
    
I think he wants to make F2 hightlight file WITH extension. –  Paweł Karpiński Oct 13 '10 at 9:59
    
No, he wants to highlight just the name. –  dv3500ea Oct 13 '10 at 10:14
add comment

You should try pressing F2 twice and extension will highlight.

share|improve this answer
    
This didn't work but changing to icon view worked!!! Thanks for the tip –  David R Oct 13 '10 at 10:56
    
Yep, it only works on icon view. I really do not understand why in list mode it highlights the name plus the extension. It makes no sense. –  Alfredo Hernández Jan 23 '11 at 21:53
add comment

to get only name without extension:

${var%.ext}

where ".ext" is extension

following a test script. to effect changes alter the commented line

for name in `find ./path -iname "*pattern*.ext" `; do
    new_name=${name%.ext}newextension
    if [ "$new_name" != "$name" ]; then
        echo “$name => $new_name”
        # mv “$name” “$new_name”
    fi
done
share|improve this answer
2  
find does not belong in a for-loop. Use a "while read"-loop. See mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29 –  geirha Jan 23 '11 at 21:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.