GreenPad icon indicating copy to clipboard operation
GreenPad copied to clipboard

Suggestions for GreenPad

Open DogsOnGithub opened this issue 1 year ago • 5 comments

  • Instead of the Modify menu that's buried in a submenu, I'd recommended a separate edit menu. ... or add it to the existing edit menu? I can't remember if there is one already.
  • Toolbar buttons and/or menus to comment or uncomment the current selection in C and C++ would be a cool feature.
  • Increase and decrease indent buttons and/or menus (using tabs and for code only). Possibly fix indentation in existing code for C?
  • Build and debug buttons/menu with support for GCC and TCC.
  • A option to change the font or font size of the text. The font size is most important in my opinion. Should this be in a new dialog?
  • Autocomplete and function hints for C. That should be simpler than C++.
  • Line numbers that display on the left of the text and code? I don't specifically remember seeing line numbers when I last used Greenpad. Greenpad may already support it though.

DogsOnGithub avatar Mar 24 '24 07:03 DogsOnGithub

  • For now the Modify menu is a sub-menu of the Edit menu which is the same than the context menu on text. It used to be directly in the Edit menu, ut I thought ti was starting to be too crowded.
  • For comenting/uncomenting I use Alt+Q/Alt+N, Adding a toolbar would be nice but I would never use it so have low incentive for that.
  • You can increase and decrease indentation with Tab/Shift+Tab already, This was so ingrained in my muscle memory that I forgot to add it to the Modify sub-menu, I will Fix that.
  • Good idea to have a build/debug debug button. For now you can use Ctrl+G to start a custom command line, (I use cmd.exe /k cd %D). You can also configure F1 for Contextual help. F5 is already used for refreshing, but I could add I just have to All Ctrl+F5 or something. The problem here is that GreenPad cannot know a priori the command-line to run so it would have to read it from a randomly formated external project file which is a dirty job.
  • Font size an font-type can already be changed, have a look at the readme.txt, #151
  • Even for C this is more work than I am willing to invest, Also GreenPad is not specific to any programming languages. dup #141
  • Line numbers can be displayed indeed, look at the readem.txt, you need to add the ln=1 in the corresponding type\*.lay files.

RamonUnch avatar Mar 24 '24 08:03 RamonUnch

More suggestions after reading your reply.

  • I'd suggest comment and uncomment menus in the modify menu.
  • Does GreenPad support decrease and increase indent for the entire selection? I'd suggest added that, if it doesn't support it.
  • The uncomment and comment menus could increase and decrease the content within the current { } braces, if no text is selected.
  • I was thinking that a new "Compiler" menu with submenus for "Build", "Build and Execute" and "Debug". It would be easiest if the command line for all three were user definable in the settings dialog. There are so many possibilities and compilers that it be a task to add them all to GreenPad. One could give good examples for various compilers in the help content?
  • Speaking of help, I'd suggest help files for GreenPad in HLP and CHM format. One could look through the help content instead of the readme file.
  • An option to add additional help files in both HLP and CHM format. A help file with a good amount of Windows API does exist.
  • A menu for looking up whatever word that is selected in all of the help content.
  • Adding an option in the settings dialog to change the font and font size?
  • Add option to settings dialog for displaying line numbers.
  • Display line numbers by default if a programming language is selected?

DogsOnGithub avatar Mar 24 '24 18:03 DogsOnGithub

The menus are good for revealing what features are available and menus can display the keyboard shortcuts next to them. I assumed that GreenPad didn't support commenting or uncommenting code because there was no menu for it.

DogsOnGithub avatar Mar 24 '24 18:03 DogsOnGithub

More suggestions after reading your reply.

* I'd suggest comment and uncomment menus in the modify menu.

It is already there, it is named Quote/Unquote selection, it uses the comment string from the currently selected language so it will add // for C.

* Does GreenPad support decrease and increase indent for the entire selection? I'd suggest added that, if it doesn't support it.

Again it does, just select a section and Hit TAB to indent the whole selection, Shift+Tab to unindent.

* The uncomment and comment menus could increase and decrease the content within the current { } braces, if no text is selected.

* I was thinking that a new "Compiler" menu with submenus for "Build", "Build and Execute" and "Debug". It would be easiest if the command line for all three were user definable in the settings dialog. There are so many possibilities and compilers that it be a task to add them all to GreenPad. One could give good examples for various compilers in the help content?

* Speaking of help, I'd suggest help files for GreenPad in HLP _and_ CHM format. One could look through the help content instead of the readme file.

* An option to add additional help files in both HLP and CHM format. A help file with a good amount of Windows API does exist.

* A menu for looking up whatever word that is selected in all of the help content.

* Adding an option in the settings dialog to change the font and font size?

* Add option to settings dialog for displaying line numbers.

* Display line numbers by default if a programming language is selected?

By default it should displays line numbers for all file formats, I am not sure on how you set it up. You should also have more than a dozen language keywords files.

I have very little time to work on this project, I worked on it because I use GreenPad as a daily driver as a notepad replacement, and I needed to do some minors tweaks for myself in addition to fix performances problems as well as some crashes. but I need it to be just a notepad replacement.

Feel free to make some pull requests.

RamonUnch avatar Mar 24 '24 19:03 RamonUnch

Thank you for the reply. I didn't know comment and uncomment are labeled unquote and quote. That makes sense. I didn't realize that GreenPad fully supports indent and unindent.

DogsOnGithub avatar Mar 24 '24 19:03 DogsOnGithub