nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] startup: add support for <file>:<line> format


From: Benjamin Valentin
Subject: Re: [PATCH v3] startup: add support for <file>:<line> format
Date: Tue, 28 Feb 2023 18:25:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:110.0) Gecko/20100101 Thunderbird/110.0

Many development tools (e.g. GCC, addr2line, grep -n, assert/log messages)
will output files with line numbers in the format <file>:<line>:<column>.

Support this format in addition to the +<line>,<column> format when
opening files.

This makes it much easier to copy the file name from a compile error or
failed assertion into a nano command line an open the file at the right
place as it can be done with e.g. Sublime Text, VSCode or Geany.

v3: Simplified the code as suggested

Best,
Benjamin

Attachment: 0001-startup-add-support-for-file-line-format.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]