-
Notifications
You must be signed in to change notification settings - Fork 12
fix suffixeadd #12
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
fix suffixeadd #12
Conversation
eiro
commented
Jan 18, 2020
- remove useless extensions (so i think ...)
- add .rakumode
* remove useless extensions (so i think ...) * add .rakumode
* instructions to use vim packages * update list of supported file extensions
I want to support all the extensions listed here, plus the legacy Perl 6 ones for now: https://github.com/Raku/problem-solving/blob/master/solutions/language/Path-to-Raku.md#extensions I'm fine with removing |
* repository and issue tracker to the raku/vim-raku * contact email to perl6-users
i don't understand why you want to add so many extensions in suffixadd. can you provide me the some exemples of usecases? |
this simplified version of gf should work with any recent raku distro with default parameters.
helptags are provided in the distribution.
To clarify, my knowledge of vim settings is iffy, so when I see something like I'm still not sure I understand all the ways in which Anyway, make an argument for doing whatever you think is best, and I will consider it. I do not want to be a tyrant and I don't even want to do most of the work on this. Just don't assume I know what I'm talking about. I don't. |
To clarify, my knowledge of vim settings is iffy, so when I see
something like `suffixadd` with a bunch of suffixes, I think, "oh,
that means I should add all the recommended suffixes there."
nope. as the documentation states:
'suffixesadd' 'sua'
Comma separated list of suffixes, which are used when searching for a
file for the "gf", "[I", etc. commands.
so finding a place to a module to make gf work, you combine
" path for possible dirnames
let &l:path = "lib,.,".$RAKULIB.",".join(glob("~/.zef/store/*/*/lib",0,1),',')
" inex to convert a namespace to a relative path from a dirnames
setlocal includeexpr=substitute(v:fname,'::','/','g')
" suffixesadd for the extensions
setlocal suffixesadd=.pm6,.rakumod
because your comments suggested I didn't know what I am talking.
after 25 years of happy viming, i still learn new useful things every year
so i asked for usecases because you may have one in mind that can
explain the other extensions.
free to treat me like Michael Scott of The Office
i'm sorry, i don't know the Michael Scott :( from what office are you
talking about?
to me because I'm nothing like an expert, but I am learning.
so do i but i'll share whatever can help
Anyway, make an argument for doing whatever you think is best, and I
will consider it.
i really think we should prevent any accidental behavior so we should
keep the code of the module to behave the way we know it should work
so as long as i don't know what is the point to have rakutest in sua,
i would be happy to not have it :)
I do not want to be a tyrant and I don't even want
to do most of the work on this. Just don't assume I know what I'm
talking about. I don't.
i really have the same problem with raku so we can probably learn a lot
from each others by maintaining vim-raku.
best regards
marc
|
Okay, then I think However, there is now a new problem, there's a bunch of other changes on this PR. I'd like to keep PR's concise and limited to a single feature/bug/concern so they are easy to approve and discuss. |
i don't know how to remove some commits of a GH PR so maybe we should close this issue and reopen one? |
There are a few different ways to strip commits from a branch. If you just need to go back in time, use
If you want to keep the commits you made, use Another option is to rewrite the history of your branch using rebase:
This will give you an interactive menu for deleting commits, editing commits, and doing all kinds of stuff. This is more than I can explain here, but there are lots of tutorials on interactive git rebase out there you can find online. |
Or, you can go the route of just closing the PR and starting over if you prefer. |
Closes Raku#12 This is a stripped down and improved version of the patch in Raku#12, so credit belongs to @eiro and @zostay for the main idea. After this patch, 'gf' for example will search: - ./lib - . - $RAKULIB - ~/.zef/store/*/*/lib (sorted in reverse directory mtime) A search for Foo::Bar will look in those lib dirs for one of Foo/Bar.{rakumod,rakudoc,pm6,pm}.