branch: externals/dired-preview commit 2f0a4055f575bdecd93798155f44d935a4f2cb6b Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Update to dired-preview version 0.2.0 --- CHANGELOG.org | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.org | 6 ++-- dired-preview.el | 2 +- 3 files changed, 107 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.org b/CHANGELOG.org index c2cc9e6351..9c3d97b195 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -9,6 +9,109 @@ project's main git repository: <https://github.com/protesilaos/dired-preview>. The newest release is at the top. For further details, please consult the manual: <https://protesilaos.com/emacs/dired-preview>. +* 0.2.0 on 2024-05-07 +:PROPERTIES: +:CUSTOM_ID: h:4225d638-f5bb-4855-85c7-972ff40aad6d +:END: + +This release brings many small improvements and fixes some bugs. + +** The preview shows up right away on new directories +:PROPERTIES: +:CUSTOM_ID: h:e3652b69-aa81-4b71-9887-81052ff7f9f7 +:END: + +In the past, entering a new directory would not trigger a preview: it +would wait for some motion before doing so. This could make it seem +that the mode was not enabled in the current buffer. Now, the preview +shows up immediately. + +Thanks to Nofint for the initial contribution in pull request 8: +<https://github.com/protesilaos/dired-preview/pull/8>. The changes are +small and do not require copyright assignment to the Free Software +Foundation. + +** Directories are previewed as well +:PROPERTIES: +:CUSTOM_ID: h:8dae8cba-3ca7-43be-a4ba-5dd938b37f82 +:END: + +The contents are displayed in a Dired buffer, using the current +settings for it. This means that colours are possible icons are shown +too. + +** Large files are previewed in ~hexl-mode~ +:PROPERTIES: +:CUSTOM_ID: h:b4928def-5392-4e7b-8cb5-ed5c238b1b5e +:END: + +As the documentation of this mode suggests: + +#+begin_quote +A mode for editing binary files in hex dump format. +This is not an ordinary major mode; it alters some aspects +of the current mode’s behavior, but not all; also, you can exit +Hexl mode and return to the previous mode using C-c C-c. +#+end_quote + +The =C-c C-c= key binding toggles the mode, in case you want to see +the raw output. + +Thanks to Karthik Chikmagalur for the contribution. This was done on +the now defunct mailing list: +<https://lists.sr.ht/~protesilaos/general-issues/%3c871qeb56bw....@gmail.com%3E>. + +** Previews are displayed in a full-featured mode +:PROPERTIES: +:CUSTOM_ID: h:ea324fd1-f808-420f-b019-250e161465ff +:END: + +Before, we would delay the execution of the mode hooks to speed things +up. Though this came at the cost of (i) making the buffer less capable +and (ii) forcing us to handle the execution of those hooks at a later +stage when they would be needed, which proved to be error-prone in a +number of scenaria. + +** Files without an extension are still previewed +:PROPERTIES: +:CUSTOM_ID: h:a4d6b125-5ef6-409d-aded-e7b1971ac87d +:END: + +This is a bug fix. Before, they would be considered as part of the +files to be ignored, per ~dired-preview-ignored-extensions-regexp~. + +** Previews are not added to what ~recentf-mode~ tracks +:PROPERTIES: +:CUSTOM_ID: h:67d61ed2-3e16-49a9-bd3a-61950d9ab81b +:END: + +Thanks to Juergen Hoetzel for reporting this issue and for tweaking my +suggested patch for it. This was done in pull request 12: +<https://github.com/protesilaos/dired-preview/pull/12>. The change is +small, so Juergen does not need to assign copyright to the Free +Software Foundation. + +** A nil value for ~split-width-threshold~ still works +:PROPERTIES: +:CUSTOM_ID: h:493488b1-0f7d-4b44-b96d-4cd9a6bde352 +:END: + +We no longer consider this an error and adapt the preview accordingly. +Thanks to Juergen Hoetzel for the contribution. This was done in pull +request 11 and does not require copyright assignment: +<https://github.com/protesilaos/dired-preview/pull/11>. + +** For developers: previews are done with ~cl-defmethod~ +:PROPERTIES: +:CUSTOM_ID: h:d8c42eea-a540-44fd-91b4-138fdba47288 +:END: + +Each file type will thus have its own method on how to display the +contents in a buffer. The idea is to make this easier to extend. The +goal is to have methods that can preview PDFs and images without +blocking Emacs. Other file types can be considered as well, though +those two are the immediate priority. + * 0.1.0 on 2023-07-08 :PROPERTIES: :CUSTOM_ID: h:99cbb3dd-a0f1-4d2b-a945-58531f4ab189 diff --git a/README.org b/README.org index 96a22bdf5c..6a37dfa31b 100644 --- a/README.org +++ b/README.org @@ -4,9 +4,9 @@ #+language: en #+options: ':t toc:nil author:t email:t num:t #+startup: content -#+macro: stable-version 0.1.0 -#+macro: release-date 2023-07-08 -#+macro: development-version 0.2.0-dev +#+macro: stable-version 0.2.0 +#+macro: release-date 2024-05-07 +#+macro: development-version 0.3.0-dev #+macro: file @@texinfo:@file{@@$1@@texinfo:}@@ #+macro: space @@texinfo:@: @@ #+macro: kbd @@texinfo:@kbd{@@$1@@texinfo:}@@ diff --git a/dired-preview.el b/dired-preview.el index 1bde6e1cbb..b356423bff 100644 --- a/dired-preview.el +++ b/dired-preview.el @@ -5,7 +5,7 @@ ;; Author: Protesilaos Stavrou <i...@protesilaos.com> ;; Maintainer: Protesilaos Stavrou <i...@protesilaos.com> ;; URL: https://github.com/protesilaos/dired-preview -;; Version: 0.1.1 +;; Version: 0.2.0 ;; Package-Requires: ((emacs "27.1")) ;; Keywords: files, convenience