Files
heartwood/radicle-term/src
Fintan Halpenny 0d402647cb term: allow Editor to be reusable
The `Editor` is very useful for correctly opening a text editor and making changes
to some initial input. The current use of `Editor` is only for getting input for
commets.

However, it would also be useful for opening up a text editor on some other
existing files or text, for example, in the command `rad config edit`.

The `Editor` struct was changed to have two new options, `truncate` and
`cleanup`, to allow the user of the struct to dictate whether existing text is
truncated, and if the underlying file should be remove.

The original `new` method is now named `comment`, mimicing the existing
construction of a temporary `RAD_COMMENT` file.

The new version of `new` accepts any file for the `Editor` and will open it
without truncating or removing the file.

`Editor` is now used for the `rad config edit` command.
2024-11-11 11:27:33 +01:00
..
2023-09-27 12:37:41 +02:00
2023-03-06 10:22:50 +01:00
2023-11-17 15:05:39 +01:00
2023-09-27 12:37:41 +02:00
2023-03-06 10:22:50 +01:00
2024-11-11 11:27:33 +01:00
2024-05-03 14:31:08 +02:00
2024-07-12 16:36:04 +02:00
2023-09-27 12:37:41 +02:00
2024-03-22 16:35:06 +01:00
2024-01-09 13:44:46 +01:00
2024-05-03 14:31:05 +02:00
2024-06-12 15:36:34 +02:00
2024-01-04 14:02:05 +01:00
2024-07-12 16:36:04 +02:00