2.10. Nemo files browser

Since Nautilus has less and less features with each release, install Nemo:

1sudo apt install -y nemo

2.10.1. Configuration

Replace Nautilus with Nemo:

1# open files and directories with Neom
2xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
3
4# changement de l'icône
5cp /usr/share/applications/nemo.desktop $HOME/.local/share/applications/
6sed -i 's/Icon=folder/Icon=org.gnome.Nautilus/' $HOME/.local/share/applications/nemo.desktop

Customize the settings using the preferences dialog or the command line:

  • Views ‣ Default View ‣ View new folders using = List View

    gsettings set org.nemo.preferences default-folder-viewer 'list-view'
    
  • Views ‣ Tree View Defaults ‣ Show only folders = False

    gsettings set org.nemo.sidebar-panels.tree show-only-directories false
    
  • Behavior ‣ Executable Text Files = View executable text files when they are opened

    gsettings set org.nemo.preferences executable-text-activation 'display'
    
  • Display ‣ Window and Tab Titles ‣ Show the full path = True

    gsettings set org.nemo.preferences show-full-path-titles true
    
  • Preview ‣ Previewable Files ‣ Show thumbnails = Yes

    gsettings set org.nemo.preferences show-image-thumbnails 'always'
    
  • Preview ‣ Previewable Files ‣ Only for files wmaller than = 10 MB

    gsettings set org.nemo.preferences thumbnail-limit 10485760
    

2.10.2. Extensions

Install nemo-compare extension:

 1sudo apt install -y git meld nemo-python
 2
 3git -C /var/tmp/ clone https://github.com/linuxmint/nemo-extensions.git
 4
 5sudo mkdir /usr/share/nemo-compare/
 6
 7sudo cp /var/tmp/nemo-extensions/nemo-compare/src/nemo-compare.py             /usr/share/nemo-compare/
 8sudo cp /var/tmp/nemo-extensions/nemo-compare/src/nemo-compare-preferences.py /usr/share/nemo-compare/
 9sudo cp /var/tmp/nemo-extensions/nemo-compare/src/utils.py                    /usr/share/nemo-compare/
10
11sudo cp /var/tmp/nemo-extensions/nemo-compare/src/nemo-compare.py             /usr/share/nemo-python/extensions/
12sudo cp /var/tmp/nemo-extensions/nemo-compare/src/nemo-compare-preferences    /usr/bin/
13
14killall nemo

To open a new tab in an already running instance, instead of a new instance:

/usr/share/nemo-compare/nemo-compare.py
 1@@ -49,17 +49,13 @@
 2             self.for_later = paths[0]
 3             return
 4
 5+        args = "-n "
 6+        for path in paths:
 7+            args += "\"%s\" " % path
 8+
 9         cmd = None
10         if len(paths) == 2:
11+            cmd = (self.config.diff_engine + " " + args + "&")
12-            cmd = [self.config.diff_engine] + paths
13         elif len(paths) == 3 and len(self.config.diff_engine_3way.strip()) > 0:
14+            cmd = (self.config.diff_engine_3way + " " + args + "&")
15-            cmd = [self.config.diff_engine_3way] + paths
16         elif len(self.config.diff_engine_multi.strip()) > 0:
17+            cmd = (self.config.diff_engine_multi + " " + args + "&")
18-            cmd = [self.config.diff_engine_multi] + paths
19
20         if cmd is not None:
21             GLib.spawn_async(argv=cmd, flags=GLib.SpawnFlags.DEFAULT | GLib.SpawnFlags.SEARCH_PATH)