Thursday, November 02, 2023
super crazy stuff: Cosmopolitan Third Edition
don't have time to try yet, but really want to test the redbean web server
interesting: Tracking SQLite Database Changes in Git
have to say the next.js stack I'm currently working on is very complicated LOL
maybe I'll try out remix someday
Friday, November 10, 2023
ishan0102/vimGPT: Browse the web with GPT-4V and Vimium
an interesting idea to use Vimium in webdriver for navigation, I also played a lot webdriver these days, I should try it
the next thing I'm going to try: How to write a linter using tree-sitter in an hour
Surprising Facts About New CSS Selectors
I should move my css to nesting selectors
while this is useful: Find and Replace Code at AST-level with Semgrep
but the real interesting tool I found is ast-grep/ast-grep: A CLI tool for code structural search, lint and rewriting.
when you have teammates who love rebase LOL:
git rebase: what can go wrong?
I also like the top HN comment:
Once you understand what rebasing is, the most important thing to learn is when not to do it. The golden rule of git rebase is to never use it on public branches.
good read: Understanding the Origins and the Evolution of Vi & Vim
Thursday, November 16, 2023
while adding more and more tools to my notebook app, I found myself constantly switching tabs and got frustrated quickly
I tried setup a layout with iframe
, usable but hard to resize. then I remembered I played a little winbox before...
winbox is great, plug n play, with a custom right click menu now I have a virtual desktop
one thing is still missing – terminal, I checked many options, settled down to gotty. too bad it removed hterm, can't customize colors now, but still the easiest solution
some good reads:
Friday, November 17, 2023
start playing tree-sitter, first watched this video: Tree-sitter - a new parsing system for programming tools - Strange Loop
$ npm -g install tree-sitter-cli
$ tree-sitter init-config
it prints out the generated config file path, edit parser-directories
to include folder that you checked out grammars
the cli comes with few tools (if the language supports): parse
, query
, tags
, highlight
some docs here: Tree-sitter|Code Navigation Systems
the tags
are not ctags
, here's a project I found to generate ctags npezza93/ttags: Generate ctags using Tree Sitter
the highlight
output I can used to replace prism, ansi2html is the tool I used
the next todo is extract symbols from a file (just like github) and able to quickly preview it
Wednesday, November 22, 2023
finally upgrading to emacs 29.1
it has tsx-ts-mode
built-in, but need to setup tree-sitter first
treesit-install-language-grammar
and do the interactive config
tsx
as example, the language is tsx
, repo is https://github.com/tree-sitter/tree-sitter-typescript
, tsx/src
for parser.c
, all the rest just press enter
then enable the language server m-x eglot
I have right click menu enabled, easier to access basic navigation
(when (display-graphic-p)
(context-menu-mode))
the whole setup is really simple, now I should learn Combobulate: Structured Movement and Editing with Tree-Sitter
Blog Archive
- Older Entries
- 2023 October
- 2023 September
- 2023 August
- 2023 July
- 2023 April
- 2023 March
- 2023 February
- 2023 January
- 2022 December
- 2022 November
- 2022 October
- 2022 September
- 2022 August
- 2022 July
- 2022 June
- 2022 May
- 2022 April
- 2022 March
- 2021 December
- 2021 September
- 2021 August
- 2021 June
- 2021 May
- 2021 April
- 2021 March
- 2021 February
- 2021 January
- 2020 December
- 2020 November
- 2020 October
- 2020 September
- 2020 August
- 2019 December
- 2019 November
- 2019 October
- 2019 July
- 2019 May
- 2019 April
- 2019 March
- 2019 February
- 2019 January
- 2018 December
- 2018 November
- 2018 October
- 2018 September
- 2018 August
- 2018 July
- 2018 June
- 2018 May
- 2018 April
- 2018 March
- 2018 February
- 2018 January
- 2017 December
- 2017 November
- 2017 October
- 2017 September
- 2017 August
- 2017 July
- 2017 June
- 2017 May
- 2017 April
- 2017 March
- 2017 February
- 2017 January
- 2016 December
- 2016 November
- 2016 October
- 2016 September
- 2016 August
- 2016 July
- 2016 June
- 2016 May
- 2016 April
- 2016 March
- 2016 February
- 2016 January
- 2015 December
- 2015 November
- 2015 October
- 2015 September
- 2015 August
- 2015 July
- 2015 June
- 2015 May
- 2015 April
- 2015 March
- 2015 February
- 2015 January
- 2014 December
- 2014 November
- 2014 October
- 2014 September
- 2014 August
- 2014 March
- 2014 February
- 2014 January
- 2013 December
- 2013 October
- 2013 July
- 2013 June
- 2013 May
- 2013 March
- 2013 February
- 2013 January
- 2012 December
- 2012 November
- 2012 October
- 2012 September
- 2012 August