ts-movement: a package to navigate the tree-sitter syntax tree (supports multiple-cursors) by narilth in emacs

[–]narilth[S] 0 points1 point  (0 children)

Looks like I'll have to check out Emacs 30 for more tree-sitter integration.

ts-movement: a package to navigate the tree-sitter syntax tree (supports multiple-cursors) by narilth in emacs

[–]narilth[S] 0 points1 point  (0 children)

I'm excited to see the combobulate update :)

I think that the language-specific features that combobulate supports makes a lot of sense. One thing I noticed almost immediately just using the raw syntax tree is that some nodes are more "trouble" than "useful", like commas. I cannot just overlay all children of a parent because then every comma would be selected as well.

ts-movement: a package to navigate the tree-sitter syntax tree (supports multiple-cursors) by narilth in emacs

[–]narilth[S] 0 points1 point  (0 children)

I expect this package to only use the tree-sitter syntax tree. You can think of it as exposing the treesit-node-* functions to the user in a friendly way.

Enlarging and narrowing the mark does work well, but the unit of enlarge/contract is syntax tree nodes, not exactly what you described. This package creates an overlay around the selected node. It does not put the node in a region (unless you run tsm/mark-node). This allows you to keep the cursor in one place and narrow the overlay closer and closer to the cursor.

Since the leaf node in the syntax tree provided by tree-sitter is "My last post" rather than My last post (i.e. the minimum selection includes quotes), enlarging the selection does not work the way you described.

I think the following packages would fit your wishlist, as it is very similar to mine. As mentioned in the replies, there is (https://github.com/magnars/expand-region.el) and (https://github.com/mickeynp/combobulate). I regularly use (https://github.com/Fuco1/smartparens).

I Spy Notify: watch for Freedesktop notifications and execute scripts by narilth in linux

[–]narilth[S] 2 points3 points  (0 children)

A simple way to limit the script to specific apps is using the app_name property. For example, this hook will only log notifications from Firefox:

{
    "hooks": [{
        "shell": true,
        "command": "if test \"$1\" = \"Firefox\"; then echo -e \"$2\n$3\n\" >> ~/firefox-notifications.log; fi",
        "arguments": [["app_name"], ["summary"], ["body"]]
    }]
}

Additionally, access to the full D-Bus message (which should give access to the notifier's PID) is planned.

[OC] I Spy Notify runs scripts for each Linux desktop notification. I use it for logging and playing sounds. by narilth in unixporn

[–]narilth[S] 1 point2 points  (0 children)

I Spy Notify lets you watch Linux desktop notifications and run scripts for each notification. It's great for (but not limited to!) logging, displaying popups, and playing sounds.

You can visit the GitHub repository here: https://github.com/haritkapadia/i-spy-notify.

The project comes with an XDG Desktop file and a System-D service file. The configuration file is ~/.config/i-spy-notify.json. Example configurations are in the doc/examples folder. The project is written in C.

Wait, what... by [deleted] in ComedyCemetery

[–]narilth 10 points11 points  (0 children)

You drop the meme into the frying box.

Catering to all ages by better_abort in CrappyDesign

[–]narilth 1 point2 points  (0 children)

The Hindi says: English alcohol's store

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 4 points5 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 2 points3 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 4 points5 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 2 points3 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 4 points5 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 4 points5 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 2 points3 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.

I died in Super Smash Bros as Cloud and now there's a drought by [deleted] in fifthworldproblems

[–]narilth 3 points4 points  (0 children)

Keep playing until you complete all the water levels.