snapdragon3101's blog

By snapdragon3101, 5 months ago, In English,

Check : https://cpeditor.github.io

Hi Guys!

CP Editor met Competitive Companion in 3.0, giving it the ability to parse contests from over 30+ online competitive programming websites. Now, with CP Editor 5.0, it met CF tools, a wonderful tool by xalanq which can do all most everything in code-forces, even submit solutions. Read more about CF tools in his blog.

If you are a pro-user and like vim keybindings, using cf-tools on your favorite terminal with tmux would give your more than what CP Editor has to offer but at the same time, it is very time consuming and difficult to setup on windows.

Let's dive into what is new for us in CP Editor 5.0

  • Submit solution to Codeforces from CP Editor, you don't need to copy or upload your solutions manually. Let CP Editor do it for you with just one button click. This feature requires that you have cf-tools installed and you have correctly configured cf-tools. Read the instructions below on how to install and setup cf-tools. Please note the submit button will be only visible in the editor if the problem was parsed by Competitive Companion from code-forces.
Installation and setup of cf-tool

  • Set up snippets of codes like Sublime Text, You can add as many snippets as you want in all 3 officially supported languages in CP Editor. You can set up hotkeys for triggering snippets and then search for your snippets and paste it into text editor. You can even rename snippets. Snippets are language defined, you won't find C++ Snippets when your Tab language is set to Python. All snippets are stored inside cp_editor_settings.ini file, which is located in your home directory and contains all the settings of CP Editor. This also, portable and platform independent. In order to inspect it, you can open it like any normal text file.

Big Thanks to ouuan for his work in making snippets available.

  • View Modes: CP Editor now has 3 view modes, in Editor mode the complete window of the application will be occupied with Code Editor, in IO Mode complete window will be occupied by Input output boxes and normal mode is called Split Mode, in which window is shared between the two. You can even set hotkeys to toggle the views from Preferences for a quick change of view modes.

  • You now have ability to just apply settings. There are three options, "Okay", "Apply" and "Cancel", Okay will close the window and settings will be applied and Apply will keep the preference window open while settings are applied and Cancel will close the preference window.

  • There are many other bug fixes and quality of experience improvements. There are some performance improvements too.

Download

Sources : https://github.com/coder3101/cp-editor

Download : https://github.com/coder3101/cp-editor/releases

Support

  • Star the project and spread the word about this editor.
  • else you can open Editor and Help -> Support me, to buy me a coffee

I will be busy with my new semester and also with Google Summer of Code 2020, Hence pace of development will slow down a bit for this project starting today.

Telegram group for community

Please join our telegram group https://t.me/cpeditor

You have can discuss, share your views and get helped or help other there.

 
 
 
 
  • Vote: I like it
  • +131
  • Vote: I do not like it

»
5 months ago, # |
  Vote: I like it +38 Vote: I do not like it

If you found any bugs or have any feature requests, please open an issue here, and don't forget to follow the issue templates. Users' responses are important for contributors to improve the project.

If you want a try on developing, you can install Qt and CMake, then fix bugs / make new features by yourself! After finishing the coding, just open a pull request here. Don't worry if you are not familiar with Qt / GUI programming, Google is your friend, and Qt is a well documented library. I've never used Qt before contributing to CP Editor, but I've made 33 commits, including 1979 additions and 1620 deletions up to now.

  • »
    »
    5 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    One of those times where the like button for a comment is not enough.

  • »
    »
    5 months ago, # ^ |
      Vote: I like it +9 Vote: I do not like it

    I will always welcome contributions to the work. Together we can build an editor for ourselves.

»
5 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Your extension will have it’s own codeforces soon :D

»
4 months ago, # |
Rev. 4   Vote: I like it +4 Vote: I do not like it

There have been many new features since 5.0:

  • New Test Cases UI. Now you can open up to 100 test cases or delete some of them. It's also easier to add tests from files.

  • New Diff Viewer. The new diff viewer uses diff-match-patch, so that you can see the beautiful diff result in HTML.

  • New File Logic. Now the tab status/open files/save files are almost the same as Sublime. For example, external file changes on the disk is detected.

  • Hot Exit. Now you can save the status for the next session.

  • Transparency Setting. You can set the transparency for the editor. Then, you can see the problem statement/your desktop/some pictures while coding, or just be cool.

  • Single Application. Now when you open a new file while there is a CP Editor running, the new file will be opened in a new tab instead of a new window.

  • Open Contests. You can open a folder with A.cpp, B.cpp, ..., Z.cpp easily. The folder and the number of files (number of problems) is chosen by you.

  • Command-Line Options. See CPEditor --help for more information. Now it's easier to open CP Editor from the command line.

  • Open File Progress Bar. Show progress bar for file opening.

  • Tab Bar Context Menu. A menu with options like Close Others/Reveal in Explorer. Right-click on the tab bar to open it.

  • Many bug fixes.

Some features are not well-tested yet, if you are interested in them, try it and report bugs if you find any.

Again, contributions are always welcomed, together we can build a better editor for ourselves.

Latest Stable Latest Release

screenshot

  • »
    »
    4 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    When we open contest and create 'n' files,and after that when we parse tasks from contest do the test cases(of the corresponding problem) get updated or new tabs come up?

    • »
      »
      »
      4 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I checked it now,its not updating rather creating new tabs. It would be better if just the test cases would have got updated so that we can directly save our code and submit.

      • »
        »
        »
        »
        4 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        You can use Competitve Companion to parse a contest.

        • »
          »
          »
          »
          »
          4 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Yes,but what I meant to say is when we parse contest,it would be better to just update the test cases of the created contest in cp-editor than creating more new tabs.

          • »
            »
            »
            »
            »
            »
            4 months ago, # ^ |
            Rev. 4   Vote: I like it 0 Vote: I do not like it

            The basic idea of this feature is that you can save directly without choosing where to save.

            If you want new features, open issues on Github.

            UPD: I didn't read his comment carefully so I didn't realize he is talking about parsing a contest after "Open Contest".

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

When I press ctrl+shift+U on contest dashboard, I got [an invalid Payload was delivered on the listening port] in CP-editor, How can I resolve this?

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Did the same as mentioned in above procedure but getting the error as -

[You will not be able to submit code to Codeforces because CFTools is not installed or is not on SYSTEM PATH. You can set it manually in settings.]

Can anyone help me with the solution for this problem!!

Thanking You in advance.

  • »
    »
    4 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You can set the path of CF Tool in the preferences (Options→Preferences→Extras→Misc→CF Tool Command), just like the "error" said.

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

will it work on linux

  • »
    »
    2 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    hey, yes it does work on Linux; if you follow the link given at the beginning of the post (https://cpeditor.github.io/), there is an option to download it directly on the main page. (Button "Get for Linux", or something like that, when you browse the site from a Linux machine.)

    I am using the tool on Linux too, and can only recommend it.

    • »
      »
      »
      2 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Your rating graph is interesting by the way

»
7 weeks ago, # |
Rev. 2   Vote: I like it +9 Vote: I do not like it

I did everything as above and it worked well but i still don't know how to submit what should i do to submit a problem.

Edit: never mind i found out how to do it now

»
6 weeks ago, # |
  Vote: I like it +4 Vote: I do not like it

Can it be used to submit on other online judges? If so, please tell me how.

  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It will expand to submission on other judges who support submission via HTTPS API like Atcoder and Some other. So wait

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Can you make a mode which is all dark instead of only the code is dark?

  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    If you use Windows 10, starting CP Editor 6.3.1 (current Beta version), if you enable "Dark mode for Apps" in Windows 10 Settings and use our Editor, It will use full dark theme.

    If you use macOS 10.14.5+ Turning dark mode on from System Settings will make Editor dark as well.

    If you use Linux distributions like KDE, using any dark theme from system Settings will make Editor Dark.

    • »
      »
      »
      6 weeks ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      Can this work on the previous version (I think 6.2.4)?

      • »
        »
        »
        »
        6 weeks ago, # ^ |
          Vote: I like it +2 Vote: I do not like it

        If it was added in 6.3.1 how can it work on old version?

        For Linux and macOS it will work for any version of CP Editor but for windows at least 6.3.1

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Would someone please tell me how can I append -std=c++11 to my compile command!

»
6 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Java users -> class name of main class must be "a"

»
3 days ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

I dont know why this happens in cp editor please suggest something anyone. Thank you in advance. This the code for UVa 369.  These are two images one of cp editor, cp editor shows output as limit exceeded and other of geany. ![ ](https://www.imageupload.net/image/Yg3xq

  • »
    »
    3 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    while(scanf("....")..) runs into infinite loop. Please either remove it or run by Actions -> Run Detached.