Comments (13)
@fwinkl I like your proposal. I'll definitely start looking into the implementation
from sticky.
I came across this feature request while migrating from xpad to this app. xpad handles this very similar to this suggestion:
If the first line is bold or has a "#" before it, it becomes the title as mentioned above
(it doesn't require any special formatting though). The first line then simply becomes the gnome window title. And yes, if window decorations are used, the text appears both in the window title and as part of the body:
But I don't think that's an issue. It makes finding notes via the window list much easier though as you can see in the following screenshot comparison (xpad also doesn't have a main overview window):
Maybe this minimal option that doesn't require any new UI elements could still be considered.
from sticky.
hey there James. here's my notes:
- in the first mockup, note that the title will be CENTERED, not aligned to the left. hence the title will be truncated much more often (long titles are a no-go)
- if I make it so that the first text that starts with a "#" is a title, does that mean that it is automatically removed from the body of the note, then put into the title? Or does it stay there?
- The "edit" button in the all notes window is kinda ambigous because at first look it seems that it's to open the NOTE, and not the TITLE
from sticky.
conveniently enough, there is a Gtk.EditableLabel
widget that can handle this for us quite gracefully...
however, there are some caveats right now:
1.when the title content is too long, the note window expands (can be solved either by allowing this if it's the desired behavior, or ellipsing the text)
2. the app won't be draggable using the headerbar, since the editablelabel will handle the drag events (can be solved by requiring a double tap to edit the label, but this is not something easy to do, and might break mobile support)
3. this still doesn't solve how it might appear in the "all notes" view
also note that the note will STILL be ellipsised even when it's not focus (i.e when the window decorations (close, menu, new note) are not visible)
here's a video of how it would look like if implemented
Screencast.from.2023-03-24.22-47-28.webm
from sticky.
to be honest I'm not really sure right now if we really need to have a title for notes.
this is because 1. there's no intuitive way to do it and 2. the size constraints
for example, in the all notes view, there will be an edit note button (see #34 ) and in the notes window there could be a pin button (see #39 )
and you can have functioning titles by effectively boldening your first line and it will appear in the all notes window, so I think this is pretty unnecessary and hard to implement
from sticky.
this is very interesting.
I was planning to add an edit button at the start of where the title would be (see #34 ) and I'm not sure how they would work together
if you have an idea if how those features would work, please lmk
or we can just leave as-is. to make a note look like it has a title, I usually just bolden the first paragraph
from sticky.
Maybe like this? I don't know how the title feature could work tho.
For sure I you put the edit button on the left it would feel less empty.
from sticky.
I think this is a good idea and could help make the header bars in the note window look less empty. Especially when unfocused.
Not sure the best way to implement this intuitively, though. I don't love the idea of the title bar being clicked on to edit, like in gnome-notes. I found it kind of annoying seeing a text box with "Untitled" on every new note. What I like about Sticky Notes is how clean it looks and how easy it is to quickly make new notes.
If you choose to implement something like this, I think it should be optional and non-intrusive. A few possible ideas:
- If the first line is bold or has a "#" before it, it becomes the title as mentioned above
- In the note window there's a "✏️" button on the header bar, or an "edit title" button in the hamburger menu
- Title can be edited in the main window
(Something like this?)
Although this does kind of conflict with the previous comment. I personally think a single or double-click on the main text is intuitive enough that an "edit note" button is unnecessary, but that's just me.
Anyway, sorry for the long comment, lol. LMK your thoughts!
from sticky.
So it might look more like this:
And yeah, those two ideas are not ideal. Maybe just a text box on each note in the main window? I can't think of a good, intuitive way to add/edit a title in a note window, though. Other than possibly an option in the hamburger menu or a button on the lower menu separate from bold italic etc.
There might be a good way to have a text box within the header bar, I just don't love the idea of seeing "Untitled" or a glowing blue text box in the header bar of each new note window.
If the text box was empty and unfocused for each new note (like on the left), it could work. I think it should turn into a title on hitting enter to avoid looking like the picture on the right. However, people might want to immediately change a mistake in the title after hitting enter. I don't know if there's a creative way to make a title turn into a text box on clicking it, and then turn back into a title on hitting enter (I'm not super familiar with GTK or JavaScript development). If there is, I think that'd be the most intuitive way to do it.
from sticky.
also forgot to note that for users with multiple window decorations (close, minimise, maximise) the label will have very little space (don't know if it's really a problem though)
from sticky.
Yeah, dragging the app should definitely be a priority.
To me, an "Edit Note Title" option in the main menu button for individual notes, and regular text boxes for notes in the main window seem like the next best solutions.
from sticky.
I actually came here to propose this feature... So glad to see it's already planned!
from sticky.
to be honest I'm not really sure right now if we really need to have a title for notes.
this is because 1. there's no intuitive way to do it and 2. the size constraints
for example, in the all notes view, there will be an edit note button (see #34 ) and in the notes window there could be a pin button (see #39 )
and you can have functioning titles by effectively boldening your first line and it will appear in the all notes window, so I think this is pretty unnecessary and hard to implement
What about instead of a label that can be renamed with an icon, or by clicking the text, new notes could have a basic, centered button with some text like "Name note", which can popup a little modal to set the name. Once created, the button goes away, and the standard LibAdwaita window title is used? There could be a "Rename" button in the "Main Menu" of the note, and something like this context menu I mocked up could be used to rename it in the main app: #115?
also forgot to note that for users with multiple window decorations (close, minimise, maximise) the label will have very little space (don't know if it's really a problem though)
IMO, not really a problem. People will just resize it to read the title, or choose short titles. I think consistency with LibAdwaita would be worth it. Currently, feels odd not having a window title at all, yet having the wasted space cover the content of the document anyways... Could be coded to (if elipsized) print the full title in a popover when the mouse is hovered over the title, like this implementation in Epiphany:
from sticky.
Related Issues (20)
- Can't change to another language HOT 1
- Checklists, please! HOT 1
- The color changes of the notes are lost if you don't exit the application yourself HOT 3
- add a copy button HOT 6
- A way to sync notes across computers HOT 6
- Notes don't honor (Linux) workspaces HOT 1
- plasma-discover Failed to find service "com.vixalien.sticky.desktop" HOT 1
- Add "Post-It" to .desktop keywords HOT 2
- Do not show in the dock or in alt+tab view HOT 1
- Keep text cursor in view in sticky note HOT 2
- Feature request: Save note window sizes and positions HOT 2
- Feature request: Larger main windows get a grid view of the notes
- Feature request: Clicking on the eye icon should close the note
- Feature request: Custom context menu for main app window
- UX: Warn when closing multiple notes at once
- Feedback: Remember open notes
- Feature request: could i have an option to change default color? please
- feature request: typeface preferences (+some ideas)
- Dark-colored notes? HOT 3
- Feature request: add a 'New Note' entry to Desktop's context menu HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sticky.