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

View File

@ -141,13 +141,16 @@ var setup = function(){
|text|text|text| |text|text|text|
- -
- ## ToDo: - ## 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... - add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
- DONE set/unset class - DONE set/unset class
- add animation - add animation
- Time to think about a standalone client -- at least to edit own notes as a test... - make this extensible from client...
- _also this would be a nice opportunity to start the move to a newer electron version_
- Q: Make the heading level depend on its depth?? - 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: 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? - Q: Should tables be text-based markdown or higher-level?
collapsed:: true collapsed:: true