💾 Archived View for bbs.geminispace.org › u › Dio9sys › 18398 captured on 2024-08-31 at 15:56:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-19)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🍭 Dio9sys

Re: "notesbash: A notes management TUI written in Bash"

In: s/bash

It's neat! It's a little rough when it comes to needing to set environment variables and a config file to use it, and I agree with blah_blah_blah that it could be good to use the built-in read function rather than defaulting to either a visual editor or vi, but it's super cool to see something like this in bash

🍭 Dio9sys

Jul 07 · 8 weeks ago

1 Later Comment

👻 klimperfix [OP] · Jul 08 at 07:14:

Thanks for your feedback!

So you think notesbash should use the `read' bash builtin for initial content instead of opening an editor for it? That's an interesting idea, which we could implement in two ways:

1. we plan to implement a shortcut to create a new note instantly (something like quicknotes). We could use `read` for this feature to fill the note with initial content.

2. a config setting where you can choose to have notesbash use `read` when creating a note, and then the editor when editing.

The problem with `read` is that it is quite limited compared to a dedicated editor.

notesbash is also used for writing scientific papers and longer texts. Furthermore, I don't know if this feature adds unnecessary complexity to notesbash, since notesbash is primarily supposed to manage the notes, not edit/write them...

UPDATE: I have discussed this with @lukeflo, we decided against it for the reason just mentioned. notesbash is mainly for managing the notes, editing is done by the editor. In his opinion, such a read option is rather something for real interactive CLI programs and is rather unnecessary for TUIs, and I agree with him. Besides, this approach also follows more the UNIX philosophy, where a program should do one thing, and do it well!

---

@blah_blah_blah Have you set the `NOTESBASH_EDITOR` option for your editor in the notesbash config? (e.g. for Helix: `NOTESBASH_EDITOR=(hx)`) In addition, the

variable `NOTESBASH_GUI_EDITOR` must not be `1` or `true` (If you did not change anything in this variable it should work, by default it is set to `false`).

If it still does not work, please let me know!

---

@Dio9sys you only have to use one option... You can either configure notesbash

via the configuration file, or alternatively use the environment variables!

---

Regards, Klimperfix

Original Post

🌒 s/bash

notesbash: A notes management TUI written in Bash — Hey there! notesbash, the note-taking program running in the terminal written in bash is about to have it first stable release. Before we release it, we would be happy to receive feedback and suggestions for improvement from anyone interested! Either here as a comment under this post or preferably as issues on Codeberg. notesbash started out as a fork of the filemanager fff. Features of notesbash as of version v0.6.3: - File management à la...

💬 klimperfix · 3 comments · 4 likes · Jul 05 · 8 weeks ago