Franco Pasut Web Site

  • it
  • About
  • Contact
  • Posts
  • Privacy

Posts

July 8, 2024

Vim, Sublime Text, Visual Studio Code and the multiple cursors.

Article on comparative handling of multiple cursors in Sublime Text, Visual Studio Code and Vim.

  • 1. Multiple cursors? Multi-cursors? What are we talking about?
  • 2. Who “invented” multiple cursors?
  • 3. Multiple cursors in Sublime Text 3 and 4.
  • 4. Multiple cursors in Visual Studio Code.
  • 5. Comparison of Sublime Text and Visual Studio Code.
  • 6. Vim and the built-in multiple editing functions.
  • 7. Effective multi cursors also on Vim.

1. Multiple cursors? Multi-cursors? What are we talking about?

What are multiple cursors?

read more
June 20, 2024

Vim and snippet lists for UltiSnips and other plugins.

Article about the different collections of snippets designed for different plugins of Vim and the possibility of converting from type of format to another.

  • 1. Preamble
  • 2. Steps for using snippets
  • 3. Local custom snippets.
  • 4. Honza: Why two different collections of snippets?
  • 5. Overview of both collections.
  • 6. Is it possible to “mix” the snippets of the two collections?

1. Preamble

In the article “Vim, UltiSnips and Honza vim-snippets: difference and management of the snippets and UltiSnips folders” I have already covered the topic of snippets and UltiSnips for Vim:

read more
May 26, 2024

Extract a list of files from a folder and paste it into a document, in MS Windows, GNU/Linux and macOS.

Article on how to copy a list of files in a folder and paste the list into an open document. The operation is performed only with resources internal to the tested operating systems, which are MS Windows, GNU/Linux (Arch, Fedora and Ubuntu) and macOS, although in the last one, only in command-line mode.

  • 1. Topic of this article.
  • 2. Command line solution in MS Windows.
  • 3. Command-line solution in GNU/Linux and macOS.
  • 4. Graphical solution in Windows with File Explorer.
  • 5. Graphical solution in Linux with File Manager.

1. Topic of this article.

Have you ever had a folder on your computer full of files and need to insert the list of those files in a page you are editing?

read more
April 26, 2024

A Python program to copy text from various PDFs and collect it into a single document in Markdown language.

  • 1. Subject of this article.
  • 2. Python source analysis.
  • 3. The full source code in Python.

1. Subject of this article.

The goal is to generate a simple program to collect the text contained in various PDFs generated directly from word processing programs and insert the various fragments into a single document in Markdown language by separating the fragments with second-level headings corresponding to the name of the source documents.

read more
April 12, 2024

Markdown with Vim, Emacs, Sublime Text 4 and Visual Studio Code

How are four generalist editors, i.e., designed to be used with a wide range of programming languages and text files, performing when writing documents in Markdown language? This is the subject of this article based on my personal experiences in using Vim, Emacs, Sublime Text 4 and Visual Studio Code both directly and with extensions dedicated to the above mentioned markup language.

  • 1. Introduction.
  • 2. Vim and Markdown.
    • 2.1. Vim without plugins.
    • 2.2. Vim with the plugin vim-markdown.
    • 2.3. Vim with the plugin UltiSnips.
    • 2.4. Vim and Markdown preview.
  • 3. Emacs and Markdown.
    • 3.1. Emacs without plugins.
    • 3.2. Emacs with markdown-mode.
    • 3.3. Emacs and preview in Markdown.
  • 4. Sublime Text 4 and Markdown.
    • 4.1. Sublime Text 4 without plugins.
    • 4.2. Sublime Text 4 with the plugin “MarkdownEditing”.
    • 4.3. Sublime Text 4 and preview in Markdown.
  • 5. Visual Studio Code and Markdown.
    • 5.1. VSCode without plugins
    • 5.2. VSCode with the plugin “Markdown All in One”.
  • 6. In summary.

1. Introduction.

Markdown is a simple markup language that is within anyone’s reach, compatible with HTML, and allows very elegant, well-formatted text to be written for both web and print publication.

read more
March 9, 2024

Reducing the size of single or multiple PDF documents in GNU/Linux Bash and Python

Abstract: Compression of PDF documents is a useful technique to reduce the space occupied by these files and facilitate their transmission and storage. In this article, starting from a page devoted to compressing single PDFs, I present two methods for compressing multiple PDF documents. The reference page is as follows: “Linux shell script to reduce PDF file size (simple verification required to enter) and allows you to operate on single PDFs in command-line bash code in the GNU/Linux terminal. Based on the previous one, I tried to extend the procedure to operate on multiple PDFs. In the end I present a simple application in Python with graphical interface. I admit that I asked for some help from ChatGPT and Copilot.

read more
  • ««
  • «
  • 2
  • 3
  • 4
  • 5
  • 6
  • »
  • »»
© Franco Pasut Web Site 2026