Coder Social home page Coder Social logo

simonsteele / pn Goto Github PK

View Code? Open in Web Editor NEW
372.0 372.0 117.0 61.16 MB

Programmer's Notepad

C# 1.61% Pascal 21.21% C++ 73.00% C 1.66% XSLT 0.02% CSS 0.02% Python 1.91% Inno Setup 0.20% Ada 0.01% MATLAB 0.02% PowerShell 0.07% Ruby 0.02% Tcl 0.08% KiCad Layout 0.01% Batchfile 0.06% Modula-2 0.04% Objective-C 0.07%

pn's People

Contributors

boytm avatar hrwatahiki avatar lordkrandel avatar martinpeck avatar simonsteele avatar stier08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pn's Issues

v2.4 Doesn't start with old config

I just upgraded to v2.4, and when I try to start the program, nothing happens. If I look in task manager I can see pn.exe appear and then disappear straight away.

I deleted my old config (after I backed it up) from %APPDATA%/Echo Software/PN2 and now it works OK, but I have to re-enter all my preferences :(

Another slightly annoying thing is that if I right click on entry in the "Open Files" sidebar, the program hangs for about 5-10 seconds before the menu appears.

Maintain window positions

Good morning,

This is the perfect editor accept for one thing.

I'm one that puts up many windows, organized, so i can bounce around between them and see many code segments concurrently. I don't use the tabbed approach.

Closing down and re-opening workspaces, and/or projects, does not maintain the previous window positions. An older editor like Crimson will maintain individual window positions.

Is this doable for you ?

This is actually very important to me as I deal with many projects on any given day. Re-ordering windows is counter-productive.

I thank you : )

Autocomplete is interfering with trying to type

Original issue 20 created by simonsteele on 2008-03-22T18:06:01.000Z:

What steps will reproduce the problem?

  1. Run Windows Vista. (maybe. my desktop doesn't have this problem, it's
    running XP.)
  2. Search. (Ctrl-F)
  3. Try to type anything into the search field.

What is the expected output? What do you see instead?
I expect to be able to type out a word. Instead, it attempts to
autocomplete JUST using the letter I type as the first letter. For example,
I'd like to search for "register". I type R, and it doesn't type anything,
it just opens the autocomplete menu and shows me previous queries I've run
that start with r. If I select "r" from that submenu, move the pointer
after it, and press "e", it lets me complete it normally (sometimes). Other
times, it won't let me type AT ALL unless I choose something from
autocomplete, type in the middle of the word, then delete everything on
each side of what I want. Or, I can type out the word I want in the
document itself, highlight it, and then it will show up when I hit ctrl-F.
In general, it is absurdly difficult for me to actually search.

What version of the product are you using? On what operating system?
v2.0.6.1-ella, though I update frequently hoping this is fixed, but it's
not. I've used several versions. I run Windows Vista on this laptop.

Please provide any additional information below.
I uploaded a video demonstrating my problem to YouTube:
http://youtube.com/watch?v=h0qCT6PcBao

Feature request: Quick open

For example, press Ctrl+O to open a dialog and while typing, files in project will searched and then user could select some file and press enter to open it. This way user does not need to start clicking around the project or file explorer.

Thanks!

Duplicatly open files when select from MRU list

Original issue 18 created by simonsteele on 2008-03-18T08:04:40.000Z:

What steps will reproduce the problem?

  1. Open a file
  2. Select the same file from the "Recent Files" list
  3. The file would be re-opened again no matter what your option about re-
    open is

What is the expected output? What do you see instead?

The action should be the same as re-open a file

What version of the product are you using? On what operating system?

All versions on all OSes.

Please provide any additional information below.

I've patched it in the attachment. And in this patch, the last enhancement
requred in issue # 17 is also included. Thanks.

Patch for Project Groups and Caret Slop

Original issue 2 created by simonsteele on 2008-03-10T13:43:47.000Z:

Fixes contributed by Jarek Bartkowiak:

  1. Added options for setting scintilla's y caret policy. As a default PN2
    uses 3 lines as the jump when scrolling up and down, which is not my
    favourite. I added two options to let the user to configure it (see
    Options_dialog.jpg - this are the options I prefer).
  2. If you rename project and then close PN2 no "Save modified items" prompt
    is displayed. Renaming project does not set its 'dirty flag'. I fixed
    Folder::SetName(LPCTSTR name_) method in project.cpp to solve this problem.
  3. Saving and restoring workspace changes order of the open files and does
    not preserve selected (focused) file (see Workspace.jpg and
    Workspace_after_restore.jpg).

I only managed to do minor modifications that preserve selected file
(CMainFrame::WorkspaceChildCloseNotify() method in mainfrm.cpp). To solve
this problem one should modify 'pnws' file format (add 'selected file'
attribute) and change method that gets open documents list. The problem is
that this method call Win32 EnumChildWindows function that enumerates
windows in its Z order (not the true order of the document windows).

  1. Minors changes in methods that save workspaces. See
    CMainFrame::OnFileSaveWorkspaceState() and CMainFrame::SaveWorkspaceAs()
    methods.

Feature request: second keyword list

There are the language keywords, but I have my library with my own functions.
If possible create a second keyword list, for user keywords, with other color style, could be a good option.

Feature request: same color for all schemmas

First thing I do in programmers notepad is change background to a dark color.
When do this, need configure all colors, in all schemmas.
I delete all other schemmas, and copy my default to programmers notepad default.
If color schemma is the same for all schemmas, could be best.

Ability to make project/folder write protected

In my development needs i frequently have project in project group with source files that i use for view/search but don't want to modify. Now for such behavior should i switch to protect each opened file manually. It would be great if i could toggle write protection only once on project or folder in project.

Cannot open Workspace file (pnws) correctly

Original issue 25 created by simonsteele on 2008-03-25T10:19:34.000Z:

What steps will reproduce the problem?
1.Open several general files (*.txt, *.cpp)
2.Menu File -> Save Workspace As... -> C:\1.pnws
3.Close PNotepad.
4.Run PNotepad again
5.Menu File -> Open -> C:\1.pnws

What is the expected output? What do you see instead?
expected:Open the Workspace (Open files in that workspace) as Version
v2.0.6.x
Actual:PNotpad open 1.pnws as text file (XML like), instead open the
Workspace.

What version of the product are you using? On what operating system?
File Version: 2.0.8.718-basie
OS: WinXP SP2

Please provide any additional information below.
How about add a new menuitem called "Open Workspace..."?

Limit find items, add ctags double click, new folding option

Original issue 3 created by simonsteele on 2008-03-10T13:46:53.000Z:

Migrated from: http://sourceforge.net/tracker/index.php?
func=detail&aid=1841019&group_id=45545&atid=443221

now i have done the following bugfix and new features:

  • doupleclick auf ctags-Tree:
    toggle ctagstree or goto ctags in File and select the ctags-Word
    (childfrm.cpp,ChildFrm.h,jumpview.cpp,mainfrm.cpp,toolrunner.cpp)
  • max. 20 registry entity for FindWhere / ReplaceText / FindText and max.
    10 registry entity for FindType
    (findex.cpp,findex.h,accombo.h,CustomAutoComplete.h,mainfrm.cpp )
  • new folder option
  • now its fold also a line like "} else {"
    (SchemeCompiler.cpp,Schemes.cpp,Schemes.h,cpp.scheme)

Schemes options select wrong scheme

Original issue 13 created by simonsteele on 2008-03-13T22:13:25.000Z:

What steps will reproduce the problem?

  1. Use VHDL
  2. Go to Options->Advanced

What is the expected output? What do you see instead?

Verilog scheme is selected instead of VHDL, the sorting of the list is
interfering with the selection model.

Go To Line: Posistion line in center of window?

This is an enhancement request:

When using the "Go To Line" dialog box (ctrl G), it would be nice to have the provided line number positioned in the middle of the edit window. Currently, sometimes it is placed at the top, sometimes at the bottom of the window, depending on the prior location.

Fix for command line parsing

Original issue 6 created by simonsteele on 2008-03-10T13:55:14.000Z:

Migrated From: http://sourceforge.net/tracker/index.php?
func=detail&aid=1465024&group_id=45545&atid=443221

This fixes a bug in the command line parsing for the
multi-instance startup code. The function
MultipleInstanceManager::SendParameters() was dropping
the argument for the -l parameter because it was
treating all args that didn't begin with a dash as
filenames.

The parsing could still be made more robust, but I
think this covers the current use cases.

All the changes are to that one function in pnutils.cpp

regards,

David

The text cursor is almost invisible.

Recently I've discovered that my text cursor in PN is almost invisible. If I set it to a thick cursor, I can see that it is light grey. Is this a bug, or is it something I can set somewhere? I've been checking the options, but have so far come up with nothing.

Caret bug and patch to fix

Original issue 4 created by simonsteele on 2008-03-10T13:48:04.000Z:

Migrated From: http://sourceforge.net/tracker/index.php?
func=detail&aid=1816454&group_id=45545&atid=443221

SOmetimes a caret is not shown for the active tab.. and whatever editing
that is done, is done in some other tab which is not active.. (Esp when a
file with different scheme is opened)
Which means that PN fails to give keyboard focus to the Text view in the
active tab view..
Here is the patch that fixes this small bug..

Steps to reproduce :

  1. Open PNotepad
  2. Maximize <new> tab
  3. Now goto windows Explorer and open c++ file with PNotepad (or any file
    for that matter)
  4. Now a pnotepad will have two tabs,<new> and a tab for c++ file
  5. Now just press some keys on keyboard..
  6. Observe that editing is being done in <new> which is not active but tab
    for new file is active!!

Patch ::

In PN_NOTFIY handler of the mainfrm (OnChildNotify method).. I have just
added the code that simulates the mouse click in the active tab view. This
gives a focus to active view..

Ability to configure output font

In current version output font size value is slightly less than main font size and this is looks not good if used bitmap font like Fixedsys.

Convert the doc line to visible line before jump to it

Original issue 14 created by simonsteele on 2008-03-15T04:52:05.000Z:

What steps will reproduce the problem?

  1. fold some functions in the text window
  2. double click one function name which is after those folded ones in the
    left panel
  3. you would see the cursor doesn't appear at the right position before
    you take any action in the text window

What is the expected output? What do you see instead?

The target function should display at two lines off the top of text view

What version of the product are you using? On what operating system?

All versions on all OSes

Please provide any additional information below.

I've fixed it by placing a call to VisibleFromDocLine() before LineScroll
() in CChildFrame::OnGotoLine() function, please see the attached file.

Patch to implement GotoDefinition

Original issue 1 created by simonsteele on 2008-03-08T16:34:57.000Z:

The attached zip file contains changes to rev ~716 of PN trunk to
implement simple tags-tree based "Go To Definition" - based on work by
Manuel Sandoval adapted by me to use User Selection List to provide
multiple choice support.

High DPI support

Currently, when DPI is set over 100%, all of the UI is blurry
highdpi
Programmer's Notepad should support High DPI displays.

Suggestion: change the name of string.h to pnstring.h or similar

Original issue 15 created by simonsteele on 2008-03-17T03:49:02.000Z:

I tried to compile the whole src ball in VS2008 express edition(with ATL
files from VS2005 folders), it worked well with only one change: The
string.h was renamed to pstring.h. Looked like the name of string.h
confuse the compiler with the one of the same name in the standard include
folder.

There r just two header files which include our string.h, say pn.h and
extiface.h, I think it is acceptable to change its name to pstring.h to
enhance the compatiblity.

Remember the last line number used in Goto

Original issue 17 created by simonsteele on 2008-03-17T13:24:55.000Z:

As mentioned in the forum:

  • When changing the colour/blend of the current line highlight, there's no
    visual feedback - the highlighted line is not visible when in the options.
    Especially a problem when trying to change the blend value.
  • Go to line forgets the last line you entered. it would be nice if it kept
    the previous value you entered.
  • Perhaps a personal preference, but if I bring up pn, it's got a new file
    open. If I open another file, it opens an additional tab. If I haven't
    modified the new pane, it would be nice if the file I've just opened
    replaced the 'new' file tab, because otherwise I'd close it anyway.

Thanks

Powershell scheme doesn't color-highlight correctly, also comment/uncomment doesn't work

The default powershell scheme file has .scheme extension, and doesn't seem to highlight ps1 files correctly for me. Renaming the file to .schemedef appears to work (code is color-highlighted correctly).

Also, the Edit>Comments items are disabled, so I can't automatically comment/uncomment code, which is a bummer. There is this in the .scheme file:

    <comments>
        <line start="#" />
    </comments>

That helps highlight comments, but still can't add/remove them with PN. I added this:

        <block start="&lt;#" end="&lt;" />

Which helps w/ block comments.

Where do I start to figure out how to enable comment/uncomment via scheme in PN? Thanks!

v2.4.0.2378-duke.

Find/find next working backwards from bottom of file

I'm using 2.4rc and have noticed that find / find next jump to the bottom of the file and work back from there with each press of F3.
...
update: please consider closed. Years as a user and I'd never noticed the 'search up' option in the 'Find' dialog!

Cannot remove context menu item "Edit with Programmer's Notepad"

I recently uninstalled PN but it didn’t take the context menu items with it. There is no ‘pnse.dll’ on my system (as far as a couple of search tools can tell) and there appears to be no entries for that dll in the registry.

Reinstalling the program, unchecking the integration option, then uninstalling had no effect.

I followed this guide [ http://www.howtogeek.com/howto/windows-vista/how-to-clean-up-your-messy-windows-context-menu/ ] and there are no entries for PN in any of those registry fields.

I then got the tool that was suggested in the howtogeek.com article. Here’s a screenshot: http://imgur.com/xTJwmuE that shows there’s a context item, but no registry entry for that item. (The hilited item is manage.py, a python text file)

Please advise.

Annoying autocomplete in find dialog

Original issue 19 created by simonsteele on 2008-03-20T13:22:00.000Z:

What steps will reproduce the problem?

  1. Perform find for '12345' using the find dialog.
  2. Try another find for '123'.
  3. The find dialog will autofill with '12345', so when you press return,
    you're now searching for the wrong thing.

What is the expected output? What do you see instead?
The textfield should not autofill with the first guess. If I want to use a
guess, I should choose it explicitly from the drop down that appears.

What version of the product are you using? On what operating system?
Latest. Windows.

Please provide any additional information below.

All buttons of toolbars don't show after restart

Original issue 24 created by simonsteele on 2008-03-24T08:27:32.000Z:

What steps will reproduce the problem?

  1. Adjust toolbars and menu to one row
  2. Close PNotepad
  3. Restart PC
  4. Run PNotepad

What is the expected output? What do you see instead?
Toolbars should show correctly.
All buttons on toolbars don't show at all.

What version of the product are you using? On what operating system?
v2.0.8.718-basie

Please provide any additional information below.

How to dock an extension's tool window?

I'm posting this here as your personal website it down and I don't think there is a way to contact you directly through GitHub.

I've finally got both the demo and the template examples compiling and working well. I'd really like to dive into extending pnotepad as I've used it for years and have quite a few itches to scratch.

It is possible to dock a window created by an extension?

Thanks.

"Tab order controlled by recent use" behaves randomly under wine

Programmer's Notepad 2 works great under Wine (which is fantastic for those of us on Linux, I still haven't found a native linux editor I like as much as PN2)...except for one really annoying little thing:

When using the "Tab order controlled by recent use" setting, the ctrl-tab order becomes seemingly random.

I don't know if this helps, but when I ctrl-tab in pn2, and only when "Tab order controlled by recent use" is enabled, Wine generates the following output on stderr:

fixme:win:LockWindowUpdate (0x1040e), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!

Sounds like PN2's recent use tab order is relying on some usage of LockWindowUpdate (or something else that, in turn, relies on a particular usage of LockWindowUpdate) that isn't fully-working in Wine. Naturally, the ideal solution would be a fix within Wine, but maybe there's an easy way for PN2 to work around it?

No tags with Fortran code

Original issue 12 created by simonsteele on 2008-03-13T11:40:09.000Z:

What steps will reproduce the problem?

  1. ctags myprogram.f (a fortran source)

What is the expected output? What do you see instead?

No tags in pnotepad's tags box (called with Alt-G). This is the output
file:

!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not
append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /[email protected]/
!_TAG_PROGRAM_NAME Exuberant Ctags (PN2 Edition) //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.6 //
100 C:\Home\Abramson\Work\Traffic\traffic6.f /^100
j=ran2(iseed)_n+1$/;" l file:
11 C:\Home\Abramson\Work\Traffic\traffic6.f /^11
continue$/;" l function:ran2 file:
bottom C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left, bottom,/;" v
ihres C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left, bottom, right, ix, iy, ihres,/;" v
intemperance C:\Home\Abramson\Work\Traffic\traffic6.f /^
double precision intemperance$/;" v
ivres C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left, bottom, right, ix, iy, ihres, ivres$/;" v
ix C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left, bottom, right, ix,/;" v
iy C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left, bottom, right, ix, iy,/;" v
left C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left,/;" v
mtext C:\Home\Abramson\Work\Traffic\traffic6.f /^
character_15 sites1,mtext$/;" v
ran2 C:\Home\Abramson\Work\Traffic\traffic6.f /^ FUNCTION
ran2(/;" f
right C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top, left, bottom, right,/;" v
sites1 C:\Home\Abramson\Work\Traffic\traffic6.f /^
character_15 sites1,/;" v
status C:\Home\Abramson\Work\Traffic\traffic6.f /^ LOGICAL
status /;" v
time1 C:\Home\Abramson\Work\Traffic\traffic6.f /^ character_20
time1$/;" v
top C:\Home\Abramson\Work\Traffic\traffic6.f /^ integer(2)
top,/;" v

What version of the product are you using? On what operating system?

PNotepad 2.0.8.718-basie, on Windows XP Pro SP2 (in Spanish).

Please provide any additional information below.

Using schemes Fortran 95 or Fortran 77 in PN produces the same (no tags,
see screen capture attached).

Guillermo
[email protected]

Replace in files, and some other fixes

Original issue 7 created by simonsteele on 2008-03-10T13:57:17.000Z:

Migrated from: http://sourceforge.net/tracker/index.php?
func=detail&aid=1497096&group_id=45545&atid=443221

ctags:
a doubleclick jumps to the ctags-word and selects it.
new ctags.exe (no debuginfos)
editor:
Contexmenue with "find", "replace" and "find in file"
entry
find in files dialog:
default path is the current editor window
new Dialog replace in files:
find next in the result windows (jump over readonly
files and replaced lines)
replace (replaced Lines are in another color)
each click on replace updates the file
replaced all (replaces all in readwrite files)
(function mode: first it replaces all in the result
windows and than the File is written,
so i need only one write to update the file)
find in file result windows:
The result as tree with contexmenue
"collaps all",
"expand all",
"replace",
"set readonly",
"set readwrite"
The look of the search result word is in another color
The name of the founded readonly files are displayed
in grey
doubleclick jumps to the editor and selects the word

Window title unhelpful

Most windows software structures its window titles as something like Document Name - Software Name, but PN uses Programmer's Notepad - [Document Name], which is unhelpful when the Windows taskbar is set to "Never combine" mode so that window titles are shown in the taskbar - PN's title is always truncated to Programmer's Notep... so you can never identify a PN window by the current open document.

projects pane : shell context menu in magic folders

Original issue 21 created by simonsteele on 2008-03-23T14:03:19.000Z:

Context menu for Magic Folders in projects pane could have a "shell"
submenu, showing the standard Shell context menu ;

minor addition : double-clicking a Magic Folder could bring up the Explorer
on the underlying folder.

Random crash on 2.0.7.706-devel while typing

Original issue 10 created by simonsteele on 2008-03-12T17:57:25.000Z:

I experienced a random crash while typing in 2.0.7.706-devel. PN made a
dump (attached)

What steps will reproduce the problem?

  1. Don't know, was just typing.

What version of the product are you using? On what operating system?
2.0.7.706-devel on Windows XP SP3

Turning off Tabs doesn't work

Original issue 8 created by simonsteele on 2008-03-11T13:12:09.000Z:

PN 2.0.8

What steps will reproduce the problem?

  1. Turn off Tabs in options

What is the expected output? What do you see instead?

Tabs should not be shown, tabs are shown! Note that the option to show
tabs only with maximised documents also doesn't seem to work.

CDialogBaseUnits commented is still in use

Original issue 16 created by simonsteele on 2008-03-17T06:38:34.000Z:

in the include/TaskDialog.h, the CDialogBaseUnits class has been
commented, but it is still in use as one of the both parent classes of
CTask98DialogImpl, I have to un-comment it to make the compiler work, do I
miss sth here?

I'm using VS2008 express and latest edition of WTL/SciLexer/expat...

schemedef does not handle dashed for comments

Trying desperately to create a schemedef for AlanIF - an adventure language like Inform6.

For this I have to declare a double dash -- as the beginning of a line comment.
This seems to be completely ignored by PN. PN tries to parse the comment lines without recognizing them as comments.

Please help. This bug is driving me nuts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.