Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support org src named blocks #453

Open
lhernanz opened this issue Oct 28, 2024 · 0 comments
Open

Support org src named blocks #453

lhernanz opened this issue Oct 28, 2024 · 0 comments

Comments

@lhernanz
Copy link

Hi team,

Thanks for this very useful tool!

I am aware about a couple of requests around org babel support and a PR (#411), but this one is targeting a different angle. In org babel, you can also name code blocks that you can call as functions. Therefore, I would love for dumb-jump to be able to find them.

Something like the following is doing the trick for me, but this is my first rule, so maybe I did not get it entirely right:

(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "org"
           :regex "#\\+name:\\s*JJJ\\j"
           ;; \\j usage see `dumb-jump-ag-word-boundary`
           :tests ("#+name: blah" "#+name:blah"))

You can see the specification here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant