Re: [9fans] Codebase navigation and using tags files in acme

2021-08-20 Thread Steve Simon
I wrote a bit of lex to extract features from c code. being lex it is incomplete to say the least but i found it good enough. my code used to run every night passed a list of files to parse, and wrote an idenifier, comment, function, #define etc database (2 text files) which i could grep

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-20 Thread a
I did port Exuberant ctags several years ago when I was dealing with a large body of unfamiliar code for a project. Mine is here: http://9p.io/sources/contrib/anothy/src/ctags/ It is a pretty straight-forward port, just adding an output type suitable for acme (file:n). About a year ago (I

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-20 Thread Ole-Hjalmar Kristensen
I use clangd. Works very well in general. Using it is simple, you launch clangd via acme-lsp like this: acme-lsp -server '(\.h)|(\.cc)$:/home/ole/bin/clangd_10.0.0/bin/clangd --clang-tidy --background-index --cross-file-rename' -workspaces /home/ole/xcomtest On Thu, Aug 19, 2021 at 5:51 AM

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-19 Thread Rob Pike
It is Russ Cox's code search suite: https://github.com/google/codesearch On Fri, Aug 20, 2021 at 5:02 AM wrote: > Quoth un...@cpan.org: > > Quoth Maurizio Boriani : > > > thanks a lot! But... what's csearch? > > > > Possibly > https://manpages.debian.org/testing/codesearch/csearch.1.en.html >

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-19 Thread unobe
Quoth un...@cpan.org: > Quoth Maurizio Boriani : > > thanks a lot! But... what's csearch? > > Possibly https://manpages.debian.org/testing/codesearch/csearch.1.en.html Igonre--the other post, mentioning the go package is more likely. -- 9fans: 9fans

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-19 Thread unobe
Quoth Maurizio Boriani : > > Rob Pike writes: > > > % cat bin/cf > > #!/bin/sh > > > > csearch -n -f '\.go$' '^func (\([^)]+\) )?'$1'\(' > > thanks a lot! But... what's csearch? Possibly https://manpages.debian.org/testing/codesearch/csearch.1.en.html

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-19 Thread Gorka Guardiola
I am guessing: https://github.com/google/codesearch/blob/master/cmd/csearch/csearch.go On Thu, Aug 19, 2021, 13:44 Maurizio Boriani wrote: > > Rob Pike writes: > > > % cat bin/cf > > #!/bin/sh > > > > csearch -n -f '\.go$' '^func (\([^)]+\) )?'$1'\(' > > thanks a lot! But... what's csearch? >

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-19 Thread Maurizio Boriani
Rob Pike writes: > % cat bin/cf > #!/bin/sh > > csearch -n -f '\.go$' '^func (\([^)]+\) )?'$1'\(' thanks a lot! But... what's csearch? best, -- Maurizio Boriani GPG key: 0xCC0FBF8F -- 9fans: 9fans Permalink:

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-19 Thread igor
Quoth 6o205z...@sneakemail.com: > I had never heard of acme-lsp and LSP (except as a Microsoft internal > thing) until gabi mentioned it earlier in the thread.  I'm interesting > in playing with acme-lsp for C++.  Which LSP server do you use for C/C++ > (I see several listed at

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread 6o205zd02
I had never heard of acme-lsp and LSP (except as a Microsoft internal thing) until gabi mentioned it earlier in the thread.  I'm interesting in playing with acme-lsp for C++.  Which LSP server do you use for C/C++ (I see several listed at https://langserver.org/)?     thanks,     Peter On

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread Ben Hancock
Hi all, My sincere thanks to everyone on the thread for their helpful tips and perspective, with special gratitude to Rob Pike for sharing his handy scripts -- and for creating sam and acme! Best, - Ben -- Ben Hancock www.benghancock.com -- 9fans:

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread Ole-Hjalmar Kristensen
On linux, you can run ctags -x and postprocess the file to append the line number to the file name instead of having i as a separate field. That way, you can locate the symbol in the tags file, and right-click on the file:linenumber. Also, on linux, we have acme-lsp, which in principle works with

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread Rob Pike
% cat bin/f #!/bin/sh 9 grep -i -n '^func (\([^)]+\) )?'$1'\(' *.go /dev/null % cat bin/t #!/bin/sh 9 grep -i -n '^type '$1' ' *.go /dev/null % cat bin/cf #!/bin/sh csearch -n -f '\.go$' '^func (\([^)]+\) )?'$1'\(' % cat bin/ct #!/bin/sh csearch -n -f '\.go$' '^type '$1

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread Gabriel Diaz Lopez de la Llave via 9fans
Hello You might be interested in which implements a laguange server protocol client for acme. gabi On Wed, Aug 18, 2021 at 10:12, Richard Miller <9f...@hamnavoe.com> wrote: If you really need to work with extremely complex codebases you likely won't find

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread Nick Owens
that's a long winded way of saying 'use the plumber' On Tue, Aug 17, 2021, 23:54 sirjofri wrote: > Hello Ben, > > 17.08.2021 22:22:09 Ben Hancock : > > I've just recently started using the acme editor and am really enjoying > > it, and trying to get the hang of the "acme way" of doing things.

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread Richard Miller
> If you really need to work with extremely > complex codebases you likely won't find success using plan9 at all. When I need to scrabble around in the go source tree, I usually have something like this in a window (it could go in an acme guide file) grep -n 'func XXX' `{du -a | awk

Re: [9fans] Codebase navigation and using tags files in acme

2021-08-18 Thread sirjofri
Hello Ben, 17.08.2021 22:22:09 Ben Hancock : I've just recently started using the acme editor and am really enjoying it, and trying to get the hang of the "acme way" of doing things. One bit of functionality that I'm familiar with from other editors is the ability to easily look up a function

[9fans] Codebase navigation and using tags files in acme

2021-08-17 Thread Ben Hancock
Hello 9fans, I've just recently started using the acme editor and am really enjoying it, and trying to get the hang of the "acme way" of doing things. One bit of functionality that I'm familiar with from other editors is the ability to easily look up a function or symbol definition within a