Giter Site home page Giter Site logo

pkmapp's People

Contributors

dependabot[bot] avatar dstoc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pkmapp's Issues

Hierarchical links

Given,

# Title
## Section

We should be able to less ambiguously link to Section via something like:

[Title/Section]

Linking as just [Section] should still be possible, but it might require disambiguation to load.

Add metadata to logical blocks

This will allow defining aliases and other items.

It will take the form of a code block of type meta. The format will be YAML.

e.g.

```meta
alias:
- name
```

By default the UI will collapse these blocks into an icon.

Enter on blank line causes problems

Might be two separate issues:

  1. If I create a blank note and press enter, the cursor disappears and a few seconds later the tab crashes
  2. If I create an empty bullet and press enter, a bullet appears below but the cursor does not move to it

Errors trying to install in Crostini

Following the steps in README.md using Crostini, I ran into a couple errors. I haven't been able to move past the second so far.

  1. make was missing, so I ran sudo apt install build-essential

  2. There appears to be an issue with tree-sitter-markdown and nan, which might be nodejs/nan#942:

npm ERR! > [email protected] install
[...skipped]
npm ERR! In file included from ../node_modules/nan/nan.h:180,
npm ERR!                  from ../bindings/node/binding.cc:3:
npm ERR! ../node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
npm ERR!    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR!       |                       ^~~~~~~~~~~~~~~~~
npm ERR! ../node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
npm ERR!    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR!       |     

Per the issue, I tried resolving this by adding the following to package.json, but it doesn't seem to do the trick

"scripts" {
  // ...
  "preinstall": "npx npm-force-resolutions"
},
"resolutions": {
  "nan": "2.17.0"
}

Solving insert-before and insert-after

[Enter] has currently has magical and broken behavior.

The reason... it seemed desirable that pressing [Enter] in a list item would create a sibling list item. The workaround [Shift-Enter] creates an adjacent paragraph within the list item.

Following on from that, it seemed reasonable that this behavior would apply to other block types. Pressing [Enter] in a block quote would create a paragraph adjacent to the block quote.

However, this feels wrong when the block-quote contains other items like sections -- because pressing [Enter] in a section still creates an adjacent paragraph in the section.

Where to store timestamps?

File System Access API does not support setting last modified time. In order to support sync in-app we'll need to track last modified time separately.

tree-sitter-markdown supports https://gohugo.io/content-management/front-matter/

Metadata code blocks were added in 6d3d39f. This was probably because front matter applies to the whole document, but metadata is required for all blocks.

Selection can't span multiple blocks

In Roam, I'll commonly want to cut/indent/whatever the past couple nodes. I'll hold shift and press the up arrow, which goes from selection text in one block to selecting entire blocks.

Currently Shift+Up is the same as just arrowing up to the previous block.

Dynamic aliases

These are aliases that are only dynamically associated with a target. For example the target that today resolves to would depend on the current date. These are potentially not enumerable, Next Monday, `

It's likely that links in this form would not appear as backlinks.

Unsure about use cases beyond dates.

Share target

Mainly for URLs.

New window will need to sync/exchange with any open window. Show similar UI as the "Send to" command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.