xeluxee / competitest.nvim

CompetiTest.nvim is a Neovim plugin for Competitive Programming: it can manage and check testcases, download problems and contests from online judges and much more
GNU Lesser General Public License v3.0
389 stars 16 forks source link

[#feature] Importing the name of the problem along with testcase #5

Closed Ram5anthosh closed 1 year ago

Ram5anthosh commented 2 years ago

i am trying to import the name of the problem along with the test cases before solving once in for all, as it will reduce the cumbersome process of naming the problem each time. If we could also create the file using a pre selected template it will be good.

I have seen another competitve programming plugin doing this and this could be a valuable addition for people who want to solve the problems on the go. #feature

xeluxee commented 2 years ago

i am trying to import the name of the problem along with the test cases before solving once in for all

What do you mean exactly? Are you talking about testcases fetching? Or testcases creation? You can create a file (e.g. file.cpp) and then use :CompetiTestAdd to add testcases.

I have seen another competitve programming plugin doing this

What plugin are you talking about?

Ram5anthosh commented 2 years ago

What plugin are you talking about?

Competitive Programming Helper (cph) in vs code, this plugin not only gets the test cases but also the name of the problem like A_Games.cpp or D_Flip_the_Bits.cpp. This plugin can be accessed from this repository.

A video explaining the working of the plugin if here. This could be a great addition to the current features being offered by the plugin as even naming the file will be automated.

I am not sure if the above mentioned task is easy to implement. But as stated above it could be a great addition to the already wonderful plugin.

xeluxee commented 1 year ago

This feature has just been implemented in 741f4c053a3749a1fab3bcbce14dd6082950cf75 See https://github.com/xeluxee/competitest.nvim#receive-testcases-problems-and-contests