from /villagepump/thin-literary-programming-thought-a-bit.

  • Thin Literary Programming を少し考えてた/villagepump/nishio.icon

  • I’m writing a program in VSCode right now,

  • Scrapbox does indeed have some nice features that are not in the current programming environment.

    • Like a line link.
  • But the program environment has a lot of features in the browser that are not available in the Scrapbox environment.

    • type check
    • supplementation
    • GitHub Copilot
    • Jump to definition
    • symbol jump
      • Jump to symbols in the same file
      • In markdown, you can use # headings and so on.
    • Automatic reload of development server
    • Automated Testing
    • Version Control with Git
    • Automatic deployment after push to repository
    • The only decent implementations are formatter andLSPなし補完くらいだろうなあ/villagepump/takker.icon
  • Therefore, it is more straightforward to bring Scrapbox functionality to the VSCode side than to move the development environment to the Scrapbox side.

    • +1/villagepump/sta.icon
  • That’s the whole point.

  • So, that’s why

    • Wiki that runs on the local file system as an extension to the editor called Emacs
    • Isn’t it a revival of howm that is which became
    • In Vim, /villagepump/kuuote.icon made it.
  • What I wrote here is a feeling I may or may not make during Golden Week.

    • Most programming languages have the ability for multi-line comments.
    • so that you can write a Scrapbox-like link there.
    • [I want to use Scrapbox offline.
    • Edit offline without internet and git push when you are online
  • How to make VSCode extensions, I don’t know anything about it.

  • A docstring becomes a wiki kind of thing./villagepump/inajob.icon

    • In emacs, it looks like a minor mode, so it could be implemented by combining existing modes (I’m not sure)./villagepump/inajob.icon
    • Ongoing Documentation の概念もヒントになるかも/villagepump/sta.icon
  • I think it’s a good idea to extend VSCode as something we can do now,Thin Literary Programming の理想形がどんな形なのかは気になる/villagepump/yosider.icon


from [/villagepump/first half of Golden Week Chronicles 2022](https://scrapbox.io/villagepump/first half of Golden Week Chronicles 2022). - A few thoughts on thin literary programming. の件、とりあえずHello world的拡張を作って「VSCodeの拡張を作ったことがある」実績解除をやろうと思った/villagepump/nishio.icon - Hello world is ready. - Can reload with Cmd+R. Feels like developing a web app.


from [/villagepump/first half of Golden Week Chronicles 2022](https://scrapbox.io/villagepump/first half of Golden Week Chronicles 2022).

ActionLock/villagepump/nishio.icon

  • Howm.
  • reading comprehension
  • I wish I could write a story like “I wish I could write a story like “I wish I could write a story like “I wish I could write a story like “I wish I could write a story like “I wish I could write a story like - Thin Literary Programming.
  • VSCode can’t do it now, so we’ll have to do it in Scrapbox.
  • I tried it and got a page with only the source code posted…
    • This is only about 3 files now, but if there are more, would it be better to have separate pages for each source file…
  • Would it be easy enough to jump to the corresponding page in Scrapbox if you enter on a string like [/foo/bar]?
  • What should happen when you Enter on [foo]?
    • Scrapbox has an implicit jump target at the beginning of the page.
    • Clicking on the foo link results in a jump to the jump target at the beginning of the foo page
    • Each source code in VSCode has a file name, but not a title for humans in the Scrapbox sense.
      • Need a notation to create jump targets?
        • Create a jump target at an arbitrary position in the page, like come-from link.
      • For example, if you write [< determine if the cursor is in the range] at 626e5273aff09e00009a8e85 in the source code, it will jump to that position when you enter with [determine if the cursor is in the range]. And so on.
      • I wonder if this can be done.
      • Even if you can’t jump directly, you can do a “symbol search on that string” and get there in two hops.
        • That should work with file names, etc. in the bracket.

yahow


This page is auto-translated from /nishio/シン・文芸的プログラミングを少し考えた using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.