Compare commits

...

2 Commits

Author SHA1 Message Date
97e511ce7e notes....
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-12-15 01:47:17 +03:00
8afe54e69e minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-12-14 20:05:53 +03:00
2 changed files with 9 additions and 12 deletions

View File

@ -1808,17 +1808,11 @@ var Outline = {
&& (res[attr] = true) }
return res }, {})),
...(deep ?
//{children: this.json(elem)}
{children: [...elem.lastChild.children]
.map(function(elem){
return that.data(elem) })}
{children: this.data([...elem.lastChild.children])}
: {}),
} },
// XXX do we need both this and data???
// ...the only differences are:
// - the default behavior node vs all
// - .json() always returns an array
// XXX should this always return a list???
// Same as .data(..) but by default returns the root nodes.
// NOTE: this always returns an array
json: function(node='all'){
return [this.data(...(
arguments.length == 0 ?

View File

@ -141,13 +141,16 @@ var setup = function(){
|text|text|text|
-
- ## ToDo:
- Time to think about a standalone client -- at least to edit own notes as a test...
- _also this would be a nice opportunity to start the move to a newer electron version_
- Might be a good idea to think how to avoid the constant selections on focus...
- Focus of elements needs cleanup...
- navigation up/down to a root element is a bit jumpy...
- add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
- DONE set/unset class
- add animation
- Time to think about a standalone client -- at least to edit own notes as a test...
- _also this would be a nice opportunity to start the move to a newer electron version_
- make this extensible from client...
- Q: Make the heading level depend on its depth??
- Might be a good idea to think how to avoid the constant selections on focus...
- Q: When moving up/down between nodes do we want to place the caret relative to markdown (current) or to view? (see: `CARET_V_MOVE`)
- Q: Should tables be text-based markdown or higher-level?
collapsed:: true