In this particular case, you can use the .not() selector:

$('.class1.class2.class3:not(.class4)')


You can also do it with method chaining:

$('.class1.class2.class3').not('.class4')


Note that this doesn't necessarily select exactly .class1.class2.class3 with no other classes, it just prevents anything with class4 from being selected.

JQuery - Select exact class structure
When I’m in the middle of something and get an idea, I want to note it down without interrupting what I’m doing.

Desired workflow: adding a note


I press a key (or a key combo).
(should work everywhere: while browsing, while writing, while watching a video, etc.)
A note window opens.
(just a single text field, no title/category/etc.)
(it must be empty)
(doesn’t have to be a GUI)
I enter my note.
I press, e.g. Enter to save the note.
(the window must close automatically)


Browsing notes


Just a simple list/table of all saved notes.

Especially not just text files which I’d have to open separately to read their content.

Should display the date/time when a note was saved.
Should offer a quick way to delete notes.
No need for editing notes.


Formal requirements

A solution must be FLOSS and run natively on GNU/Linux.
