audreyt / ethercalc

Node.js port of Multi-user SocialCalc
https://ethercalc.net
Other
2.96k stars 540 forks source link

right click contextual menu #747

Open 1000i100 opened 3 years ago

1000i100 commented 3 years ago

In common calc software, by right-clicking on a cell, a row, a column, there is contextual usable tools.

I would love to see this in ethercalc.

Howto / example for the UI/UX part, to make it functionnal i don't know how ethercalc work :

https://www.cssscript.com/custom-context-menus-vanilla-javascript/

https://www.skptricks.com/2019/02/how-to-custom-create-context-menu-in-html-css-javascript.html

eddyparkinson commented 3 years ago

Happy to support this. Do you need any help? .. pull requests welcome.

1000i100 commented 3 years ago

Thank-you, probably yes.

I've just explored the project files and i don't see where i should start.

my best hope is to look in the socialcalc code but i don't know where to look.

I'm not use to work on file with more than 200 lines, max 1000 lines.

I see in socialCalc a big 27 000 lines SocialCalc.js file with something like translate string and template string and other stuff.

Is it a generated file ?

How source files are organized ? what's the dist folder role ?

Have you some tips on where to start for this kind of contrib ?

eddyparkinson commented 3 years ago

Debug/Stack trace/Flow of ExecuteCommand

I suggest using the debugger. look at functions like ProcessKeyDown see this comment for key code sections to add break points. https://github.com/audreyt/ethercalc/issues/663#issuecomment-509054471

yes - all the socialcalc code is merged into a single file and compressed. This is the file the browser loads. ... Have a look then post back. I am happy to help if I can.