Skip to content

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

Closed
wants to merge 9 commits into from
Closed

fix suffixeadd #12

wants to merge 9 commits into from

Conversation

eiro
Copy link

@eiro eiro commented Jan 18, 2020

  • remove useless extensions (so i think ...)
  • add .rakumode

Marc Chantreux added 2 commits January 18, 2020 21:10
* remove useless extensions (so i think ...)
* add .rakumode
* instructions to use vim packages
* update list of supported file extensions
@zostay
Copy link
Collaborator

zostay commented May 10, 2020

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 .pm and .t6. but at least .raku, .rakumod, .rakudoc, and .rakutest should be supported.

Marc Chantreux added 3 commits May 11, 2020 22:23
* repository and issue tracker to the raku/vim-raku
* contact email to perl6-users
@eiro
Copy link
Author

eiro commented May 12, 2020

i don't understand why you want to add so many extensions in suffixadd. can you provide me the some exemples of usecases?

Marc Chantreux added 4 commits May 12, 2020 10:24
this simplified version of gf should work with any recent raku distro
with default parameters.
helptags are provided in the distribution.
@zostay
Copy link
Collaborator

zostay commented May 12, 2020

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." I've just taken some time to read about what that setting is used for because your comments suggested I didn't know what I am talking. Please feel free to treat me like Michael Scott of The Office when explaining vim to me because I'm nothing like an expert, but I am learning.

I'm still not sure I understand all the ways in which suffixadd is used, but I am starting to see why having all the suffixes there might not be a good idea. On the other hand, I'm also thinking that leaving .pm as well as .pm6 is reasonable because there are still modules using the .pm suffix.

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.

@eiro
Copy link
Author

eiro commented May 12, 2020 via email

@zostay
Copy link
Collaborator

zostay commented May 12, 2020

Okay, then I think suffixadd should probably include .pm6, .pm, and .rakumod and maybe .rakudoc as I could see someone wanting to look up documentation for a module that way. The .pm is useful as some older modules still use that suffix.

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.

@eiro
Copy link
Author

eiro commented May 13, 2020

i don't know how to remove some commits of a GH PR so maybe we should close this issue and reopen one?

@zostay
Copy link
Collaborator

zostay commented May 18, 2020

There are a few different ways to strip commits from a branch. If you just need to go back in time, use git log to find the last commit you want to keep on a branch and do this:

git checkout branch-name
git reset commit-sha
git push -f origin branch-name

If you want to keep the commits you made, use git checkout -b new-branch right after git checkout to create a new branch to preserve them or you can use a combination of git reflog, git log, and git cherry-pick to pull the commits to another branch.

Another option is to rewrite the history of your branch using rebase:

git rebase -i branch-name base-ref

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.

@zostay
Copy link
Collaborator

zostay commented May 18, 2020

Or, you can go the route of just closing the PR and starting over if you prefer.

softmoth added a commit to softmoth/vim-raku that referenced this pull request Mar 24, 2021
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}.
softmoth added a commit to softmoth/vim-raku that referenced this pull request Mar 24, 2021
This content is mostly taken from Pull Request Raku#12, by @eiro, so all
credit goes to them for that. I've done some minor tweaking of language
and formatting.
@zostay zostay closed this in #24 Mar 24, 2021
softmoth added a commit to softmoth/vim-raku that referenced this pull request Mar 24, 2021
This content is mostly taken from Pull Request Raku#12, by @eiro, so all
credit goes to them for that. I've done some minor tweaking of language
and formatting.

I've added a description of `g:raku_unicode_abbrevs` as well.
softmoth added a commit to softmoth/vim-raku that referenced this pull request Mar 24, 2021
These changes are taken from Raku#12, by @eiro.
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

Successfully merging this pull request may close these issues.

2 participants