[SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
rene
Level 16
Level 16
Posts: 6508
Joined: Sun Mar 27, 2016 6:58 pm

Re: Nemo's sort by name underscoreFoldername not on top?!?

Post by rene »

RemonK wrote:
Mon Sep 02, 2019 3:45 am
[ ... ] than[ks] [ ... ] for pointing me into the right direction
You're welcome.

ColdBootII
Level 5
Level 5
Posts: 696
Joined: Wed Aug 02, 2017 8:19 am

Re: Nemo's sort by name underscoreFoldername not on top?!?

Post by ColdBootII »

gm10 wrote:
Mon Sep 02, 2019 11:50 am
Both Windows Explorer and many/most Linux file managers will sort Tape10 after Tape9. Try again? ;)
Heh, the fact is, I tried that in terminal and not in Caja. ls thinks what I say is correct... :mrgreen: Anyways, I don't care what the git needs anymore. :mrgreen:
Image

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

I want to thank polarvortex, gm10 and kind of rene for pointing me in the right direction! I have my underscore on top of the directory structure!

Source:
http://svmiller.com/blog/2019/07/notes- ... bettersort

The only difference, i did not make separate files, that gave me some errors at starting text editors and file managers. I later edited the original files and the errors went away.
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

You are welcome.
RemonK wrote:
Wed Sep 04, 2019 3:56 am
The only difference, i did not make separate files, that gave me some errors at starting text editors and file managers. I later edited the original files and the errors went away.
That's fine, as I mentioned, I'm doing the same. The locales package never receives updates so the risk of the changes getting overwritten isas good as zero.
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

Ahh shoot... just found out that numbers are still above the underscore. :roll:


edit: and can i make an alias of dir or ls a constant? At every boot my settings of the dir command are gone
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

RemonK wrote:
Wed Sep 04, 2019 5:43 am
Ahh shoot... just found out that numbers are still above the underscore. :roll:
I'm not sure but that's probably a GTK thing. The terminal sorts it correctly, so off the top of my head I'm not sure how that could be addressed without a source code change. But I might be completely wrong on this, too.
RemonK wrote:
Wed Sep 04, 2019 5:43 am
edit: and can i make an alias of dir or ls a constant? At every boot my settings of the dir command are gone
Sure, add the alias to your ~/.bash_aliases or ~/.bashrc (Mint doesn't have the former by default so just stick it in the latter, it's al l the same).
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

gm10 wrote:
Wed Sep 04, 2019 6:40 am
I'm not sure but that's probably a GTK thing. The terminal sorts it correctly, so off the top of my head I'm not sure how that could be addressed without a source code change. But I might be completely wrong on this, too.
You are right, in terminal when i do ll then all underscore is on top, the numbers are second, but they are not ascending. 1014 comes before 30. And filenames and directories are mixed. But that i have covered with the ls command with a few options so directories are on top, then files. Until now i did a set alias everytime after a reboot, cause it would not stick. But i wil look into the bash_aliases thing!
But file listing is not very consistent then if terminal and file managers handle that different.

Code: Select all

drwxr-xr-x 2 admin root          0 sep  4 15:17  1044/
drwxr-xr-x 2 admin root          0 jan 29  2018  11.22.63/
drwxr-xr-x 2 admin root          0 sep  4 15:16  3/
drwxr-xr-x 2 admin root          0 sep  4 15:15  30/
Also, in the tty terminals i got a complete other keyboard layout! I don't even have a backslash. Very anoyying! Is there also a setting that i can change to correct that?
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

RemonK wrote:
Wed Sep 04, 2019 9:32 am
Also, in the tty terminals i got a complete other keyboard layout! I don't even have a backslash. Very anoyying! Is there also a setting that i can change to correct that?
After logging in or before? You may have a different system locale than user locale. setxkbmap LANGUAGE_CODE to change it on the spot.
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

If i'm correct it is before and after.. does not matter, my special keys are always wrong.

What is the format for the language code? Dutch is 528 or 0031, but he does not accept that. Can i set that permanent in a file or so?
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

Found this in /etc/default/keyboard

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="nl"
XKBVARIANT="std"
XKBOPTIONS=""

BACKSPACE="guess"
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

RemonK wrote:
Wed Sep 04, 2019 10:12 am
What is the format for the language code? Dutch is 528 or 0031, but he does not accept that. Can i set that permanent in a file or so?
Much simpler, setxkbmap nl. But that should already get set automatically if your GUI uses that, I don't know why it would be wrong. What desktop environment is that? You can configure your keyboard layout in the keyboard settings that you can access from the menu or control center.
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

Indeed nl haha.. sometimes the obvious things.... :mrgreen:

Mmh.. but i think i found the problem! Setting it to nl made my keyboard have the same wrong layout as in the terminal!
So i have to set it back, and set them all to en i think. Cause now i can't find my special keys anymore! :shock:

edit: test wan toe trie !@#$%^&*(){}[]/>< They are back! :)
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

The setxkbmap does not work..

Code: Select all

setxkbmap en
Error loading new keyboard description
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

RemonK wrote:
Wed Sep 04, 2019 10:41 am
The setxkbmap does not work..

Code: Select all

setxkbmap en
Error loading new keyboard description

Code: Select all

setxkbmap gb
setxkbmap us
setxkbmap en_US
etc. You get the idea.

But I suggest instead you do this:

Code: Select all

sudo dpkg-configure keyboard-configuration
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

gm10 wrote:
Wed Sep 04, 2019 10:59 am

Code: Select all

setxkbmap gb
setxkbmap us
setxkbmap en_US
etc. You get the idea.

But I suggest instead you do this:

Code: Select all

sudo dpkg-configure keyboard-configuration
Yeah i posted a little to quick! :oops: With the first i got it correct in the GUI again and for the terminal i found this sudo loadkeys us and that worked! I have the correct layout. But they say that it is not permanent... so maybe your last option is permanent?
Last edited by RemonK on Wed Sep 04, 2019 11:07 am, edited 1 time in total.
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

RemonK wrote:
Wed Sep 04, 2019 11:03 am
But I suggest instead you do this:

Code: Select all

sudo dpkg-configure keyboard-configuration
Can't find the package..
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

typo:

Code: Select all

sudo dpkg-reconfigure keyboard-configuration
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

Ok, that works. But a question.. in my keyboard file it mentions PC105 model, but in fact i have a 104 model.. (Compaq KB9860 from 199*something, an old clicker). Should i let it on 105 (because it worked fine) or better 104 (because it is an 104) ??
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by gm10 »

If it works like you want it to I wouldn't bother.
Tune up your LM 19+: ppa:gm10/linuxmint-tools

RemonK
Level 4
Level 4
Posts: 295
Joined: Wed Feb 06, 2019 6:32 pm
Location: Land van Umme
Contact:

Re: [SOLVED] Nemo's sort by name underscoreFoldername not on top?!?

Post by RemonK »

I looked it up what that one key difference was.. the left shift is shorter and between shift and Z sits a key with \ and | character.. all this time on my old clicker and never knew that! But i don't have it so i set it to 104. EN_US international and everything works fine!
And now CTRL-SHIFT-U also works again! Nice!!

May i thank you again for your help, Sir! :D
Het leven is net een kartbaan; Sensatie, adrenaline en veel te snel voorbij!
Joeptjoep - Feestboek

Post Reply

Return to “Newbie Questions”