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 Nemo
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 smaller 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/*  /usr/share/nemo-compare/
 8
 9sudo ln -s /usr/share/nemo-compare/nemo-compare.py          /usr/share/nemo-python/extensions/nemo-compare.py
10sudo ln -s /usr/share/nemo-compare/nemo-compare-preferences /usr/bin/nemo-compare-preferences
11
12killall nemo

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

/usr/share/nemo-compare/nemo-compare.py
 1diff -u /usr/share/nemo-compare/nemo-compare.py.bak /usr/share/nemo-compare/nemo-compare.py.dd
 2--- /usr/share/nemo-compare/nemo-compare.py.bak
 3+++ /usr/share/nemo-compare/nemo-compare.py.dd
 4@@ -53,11 +53,11 @@
 5
 6         cmd = None
 7         if len(paths) == 2:
 8-            cmd = [self.config.diff_engine] + paths
 9+            cmd = [self.config.diff_engine] + ["-n"] + paths
10         elif len(paths) == 3 and len(self.config.diff_engine_3way.strip()) > 0:
11-            cmd = [self.config.diff_engine_3way] + paths
12+            cmd = [self.config.diff_engine_3way] + ["-n"] + paths
13         elif len(self.config.diff_engine_multi.strip()) > 0:
14-            cmd = [self.config.diff_engine_multi] + paths
15+            cmd = [self.config.diff_engine_multi] + ["-n"] + paths
16
17         if cmd is not None:
18             GLib.spawn_async(argv=cmd, flags=GLib.SpawnFlags.DEFAULT | GLib.SpawnFlags.SEARCH_PATH)