Xfce Wiki

Sub domains
 

Mousepad

Introduction

Mousepad aims to be an easy-to-use and fast editor. Our target is an editor for quickly editing text files, not a development environment or an editor with a huge bunch of plugins. On the other hand we try to use the latest GTK features available, which means that if GTK adds something new in a major release that is useful for the editor, we will likely bump the GTK dependency and integrate this new feature in Mousepad.


Screenshots

Main window
:apps:mousepad:mousepad_window.png

View Preferences
:apps:mousepad:mousepad_window.png

Editor Preferences
:apps:mousepad:mousepad_editor_preferences.png

Window Preferences
:apps:mousepad:mousepad_window_preferences.png

Back To Top


Settings

The preferences dialog shown above is the easiest way to set Mousepad settings. Some of them are also accessible via the menubar, e.g. “Word Wrap” and “Auto Indent” in the “Document” menu.

All these settings, plus some “hidden” ones, are also accessible using GSettings command line tool. You can get a list of everything about Mousepad in GSettings with this command:

 gsettings list-recursively org.xfce.mousepad

Then, to enable e.g. automatic indentation, just do

 gsettings set org.xfce.mousepad.preferences.view auto-indent true

See man gsettings and gsettings help for more details.

A graphical alternative to gsettings is Dconf Editor, normally available from your distribution repositories: see https://wiki.gnome.org/Apps/DconfEditor.

Printing

The settings for printing are treated separately, in the file ~/.config/Mousepad/mousepadrc. Create this file if it does not exist, then carry out a printing operation to the end (you can print in a file), and Mousepad will fill in the configuration file with the values set in the print dialog. Be sure to leave the value of PageSetupSaved at true so that all settings are reloaded the next time you print.

Back to Top


Keybindings

After its first use, Mousepad will generate the file ~/.config/Mousepad/accels.scm, containing the list of configurable keybindings. To customize a keybinding, uncomment the corresponding line by removing the semicolon at the beginning, then change the shortcut at the end of the line, without touching the rest.

Back to Top


Required packages

Mousepad depends on the following packages:

Back to Top


Latest Release

  • mousepad 0.5.2 released (2021/01/31 14:33)
    mousepad 0.5.2 is now available for download from
    
      https://archive.xfce.org/src/apps/mousepad/0.5/mousepad-0.5.2.tar.bz2
      https://archive.xfce.org/src/apps/mousepad/0.5/mousepad-0.5.2.tar.bz2?sha1
      https://archive.xfce.org/src/apps/mousepad/0.5/mousepad-0.5.2.tar.bz2?sha256
    
    
    What is mousepad?
    =================
    
    A simple text editor for Xfce.
    
    Website:
      https://docs.xfce.org/apps/mousepad/
    
    
    Release notes for 0.5.2
    =======================
    - New Features:
      - Add a "Viewer Mode" toggle (#50, !72)
      - Improve `--quit` option: close all windows interactively (!71)
      - Improve encoding management (#42, !69)
        - Display the current encoding in the status bar
        - Make the default encoding configurable via GSettings
        - Allow to choose encoding in the "Open" and "Save As" dialogs
    (#42)
        - Add a command line option to choose encoding
      - Add a "Delete Line" action (#13, !66)
      - Make automatic addition of the last EOL character configurable (#53,
    !65)
      - Switch to GFile for I/O operations (#4, #27, #75, !64)
        - Add file monitoring (#75)
        - Add a setting to create a tilde-backup file when saving (#27)
        - Make saving atomic (#4)
    
    - Appearance Changes:
      - Filter files on mime type in the "Open" and "Save As" dialogs (#2,
    #35, !67)
    
    - Code Refactoring:
      - Improve encoding management (#42, !69)
        - Make encoding dialog more generic and self-contained
        - Encodings definition review
        - Clarify encoding management when opening files
        - Improve unicode BOM management
      - Switch to GFile for I/O operations (#4, #27, #75, !64)
        - Set the save action sensitivity more precisely
        - Let GFile APIs check for file existence when reading
        - Let GFile APIs check for external modifications when saving
        - Basic switch to GFile for I/O operations
    
    - Bug Fixes:
      - Make "replace" and "replace all" behaviors consistent (#94)
      - Ensure that the page setup is properly applied when printing (#90)
      - Avoid character escape issues in menu item action names (#91)
      - Properly initialize document search properties
      - Avoid illegal memory access when searching with tab changes (!73)
      - Revert to "Wrap Around" always true for the search bar (#83)
      - Prevent too late accesses to the buffer in selection mode
      - Direct call to keybinding signals for "Delete" and "Select All"
    (#83)
      - Improve editing keybindings consistency (#83)
    
    - Translation Updates:
      Albanian, Arabic, Armenian (Armenia), Basque, Belarusian, Bulgarian,
      Catalan, Chinese (China), Chinese (Taiwan), Croatian, Czech, Danish,
      Dutch, Eastern Armenian, English (Australia), English (United
      Kingdom), Estonian, Finnish, French, Galician, German, Greek, Hebrew,
      Hungarian, Icelandic, Indonesian, Interlingue, Italian, Japanese,
      Kazakh, Korean, Lithuanian, Malay, Norwegian Bokmål, Occitan (post
      1500), Polish, Portuguese, Portuguese (Brazil), Romanian, Russian,
      Serbian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish,
      Ukrainian, Uyghur

Back to Top


Source code repository

Reporting Bugs

Back To Top


Back to main Xfce documentation page