nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
552 stars 91 forks source link

Ability to insert current time #4043

Open ghost opened 1 year ago

ghost commented 1 year ago

NextCloud Notes is more than great... Thanks to all Contributors :-)

The Request: Is it Possible to add a TimeStamp Button !?

juliusknorr commented 1 year ago

Moving this to text as we use the editor of the text app now. I like the idea of having a quick insert for things like the date or timestamp, however a button is probably too much as the menubar is already quite crowded.

We could think about adding this to the smart picker like notion does it: Screenshot 2023-04-13 at 08 59 53

@jancborchardt What do you think?

datenangebot commented 1 year ago

@jancborchardt @nimishavijay Reminder, UI expertise needed

juliusknorr commented 1 year ago

Additional question would be if this is something that the smart picker should offer in general or just for text.

datenangebot commented 1 year ago

Additional question would be if this is something that the smart picker should offer in general or just for text.

I guess yes, we could have a picker for general date/time stuff.

Could that be an enh of the calendar app?

juliusknorr commented 1 year ago

Also pulling in @szaimen here :)

nimishavijay commented 1 year ago

I think it's a great idea to put it in the smart picker! And there could definitely be some integration with Calendar. ALong with whatever @datenangebot mentioned, there could also be an option to insert events using the smart picker, and in the future, create new events from the smart picker itself.

As a starting point, just inserting dates and times sounds good to me.

image

What do you think? looping in @nextcloud/designers as well :)

jancborchardt commented 1 year ago

The proposal to do it similar to Notion sounds good to me as well! :)

juliusknorr commented 1 year ago

Do we consider this useful as a smart picker feature in general (also for inserting in talk/mail) or just for writing documents? In the first case I'd move this to server which seems the best place for a generic picker like this. Inserting events would fit calendar, but might to be considered separate as it has implications on what data of an event is then visible to others.

jancborchardt commented 1 year ago

@juliushaertl sounds useful as a general smart picker feature! :)

stellarpower commented 1 month ago

Personally, I'd like a simple calendar widget, where a given date can be selected, and then inserted in the format YYYY-MM-DD. The usecase is to set a publishing date in the front matter of a markdown file - this will be deployed to a site as a blog post. So users can simply move the cursor to the "Date: " section in the front matter and then select the day for it to be made live. For it to be usable, it's important to me that this just be treated as plain text, and not converted between date/time zones when others view it. The aim being just for user convenience than using their desktop calendar and typing it character by character in the required format.

Just a suggestion, if nextcloud doesn't already have an easy framework for selecting date-time formats in the UI, allowing the option for a given strftime-style format string might save some debate about all the different ways people inevitably might like to add dates and times.