Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add a 'New Note' entry to Desktop's context menu #126

Open
joaocandre opened this issue May 23, 2024 · 11 comments
Open

Feature request: add a 'New Note' entry to Desktop's context menu #126

joaocandre opened this issue May 23, 2024 · 11 comments

Comments

@joaocandre
Copy link

Gnome Shell's Desktop's context menu is, in my opinion, entirely redundant, and adding a 'New Note' option would add some practical utility to it.

Alternatively, a Gnome Shell extension that placed the '+' button on the panel would also be useful.

@joaocandre joaocandre changed the title Add a 'New Note' entry to Desktop's Feature request: add a 'New Note' entry to Desktop's May 23, 2024
@joaocandre joaocandre changed the title Feature request: add a 'New Note' entry to Desktop's Feature request: add a 'New Note' entry to Desktop's contet menu May 23, 2024
@joaocandre joaocandre changed the title Feature request: add a 'New Note' entry to Desktop's contet menu Feature request: add a 'New Note' entry to Desktop's context menu May 23, 2024
@vixalien
Copy link
Owner

vixalien commented May 23, 2024 via email

@joaocandre
Copy link
Author

I have little to no experience in Gnome development, but I can look into it once I find the time.

(likely will start by reverse engineering some simple extension to implement this)

@joaocandre
Copy link
Author

joaocandre commented May 25, 2024

com.vixalien.sticky -n to launch a new note.

after testing, that doesn't seem to work, I only get:

Gjs-Console-Message: 02:44:23.000: Storing Notes at: ~/.local/share/com.vixalien.sticky/notes

the same goes for com.vixalien.sticky -i. I do get a notification of 'Sticky Notes is ready' though.

@vixalien
Copy link
Owner

vixalien commented Jun 1, 2024

I do get a notification of 'Sticky Notes is ready' though.

You probably already have Sticky Notes running.

@joaocandre
Copy link
Author

joaocandre commented Jun 3, 2024

Indeed it does seem the case, but I wasn't sure if that was the planned behavior or a bug; I was able to override the desktop context menu through a simple Gnome Shell extension, but, as it stands, it needs to close all open notes before creating a new one, and as a result the open/closed status of each note is lost:

Screenshot from 2024-06-03 01-47-04

Nevertheless, adding a new note through the '+' button and through the CLI leads to two very different outcomes, which I think can be improved upon.

In any case, I may submit a PR with it or just extend the extension with additional features, such as nautilus integration and a panel indicator.

@vixalien
Copy link
Owner

vixalien commented Jun 4, 2024 via email

@joaocandre
Copy link
Author

joaocandre commented Jun 15, 2024

I submitted a PR to update the desktop file of the app to add the 'New Note' action, but that only updates the extra options on the app launcher (e.g. secondary click on the dash); seems to me that the general/main background context menu is very much WM-dependent, so it's perhaps best to approach this on a case-by-case basis, even this is a GTK app and thus the Gnome ecosystem can be assumed.

In any case, the Gnome extension I mentioned implements this option in the background menu (and moves the note to the cursor position), in addition to other features like a general purpose panel indicator.
An extension ends up being simpler to write (no need to delve into the app's extensive code base) and easier to debug.

I haven't thoroughly tested it, but it works well enough at the moment.
Naturally you're welcome to review it!

@vixalien
Copy link
Owner

the general/main background context menu

what does this mean?

@joaocandre
Copy link
Author

the context menu you get when you right click on the desktop background; GJS calls it a background menu.

@vixalien
Copy link
Owner

this thing?

image

@joaocandre
Copy link
Author

Yes, that extension updates it to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants