Recent Posts

Pages: 1 ... 8 9 [10]
91
Features and/or Improvements / Re: Copy bookmarks as links
« Last post by Graeme on May 05, 2018, 10:15:21 pm »
Your comment motivated me to try code annotations.  I've never tried them before because people who don't have slickedit can't see them but I also need to take notes sometimes and annotations could be really useful.  I think I would need "print to html" before committing to this.  I know you mentioned a while ago there were some bugs with annotations - I wonder if any are show stoppers. 

I also love and use OneNote a lot but its searching seems a bit unreliable and if you copy source code from a note, there's a problem with line endings or something.  I think I will test annotations a bit more and see how reliable they are.
92
Here's a modified version.  There's some #defines at the top you can set - MAX_WIDTH_IN_PIXELS is the max width when it auto-sizes according to the length of the longest line.  You can set def_notepad_font to e.g. Consolas,13  - or leave it blank and it will use a default.

I had some problems with insert_line  - it seems to always insert after the current line even though my config options are set to insert before.  I don't know how it will behave for other people.  There's two commands - xnotepad copies the current line if there's no selection and xnotepad_word copies the current word if there's no selection.  If you don't want the prior selection to be retained after calling the macro, then comment these two lines
      if ( !no_selection )
         _show_selection(oldsel);

I've added lots of spaces as I dislike code that has no spaces around operators - I wish slick beautify could do this automatically.  It should be fairly obvious what the code is doing so you should be able to fiddle with it if it's not exactly what you want.  I'm guessing the original version was written by someone at SlickEdit.
93
SlickEdit® / Re: vsmerge as Git mergetool
« Last post by Juan Fonseca on May 04, 2018, 07:58:03 pm »
I'll try that. Thank you.

I failed to mention before that vsdiff works everytime.
94
If you change OI_LIST_BOX to OI_EDITOR it doesn't crash and sort of works but probably needs some adjustment.
e.g.
      if (_select_type()=='CHAR') {
         editorwid.insert_line('');
      }

Is notepad_number supposed to be an incrementing number?

Maybe the append_to_clipboard command is what you want.

Graeme,
Thanks, changing to OI_EDITOR fixed the crash!

Now I'm trying to get this to window to resize to just the size of the text.  I found this version of notepad.e on this forum, I don't think it's the version I had, because mine resized to the text size automagically.

Thanks again!
95
If you change OI_LIST_BOX to OI_EDITOR it doesn't crash and sort of works but probably needs some adjustment.
e.g.
      if (_select_type()=='CHAR') {
         editorwid.insert_line('');
      }

Is notepad_number supposed to be an incrementing number?

Maybe the append_to_clipboard command is what you want.


96
SlickEdit® / Re: How to Reset, "Never Reload Selected"
« Last post by PiezonTM on May 04, 2018, 01:32:28 pm »
Thanks for the thread, I did not see that.

FWIW, for those interested in the short version, restarting SE will reset this flag/setting.  Appears to be a "session" setting.
98
It sounds like the current window is something you can't call copy_to_cursor on.

How big is the macro?
99
SlickEdit® / How to Reset, "Never Reload Selected"
« Last post by PiezonTM on May 04, 2018, 12:38:35 pm »
I happened to click SE to bring it to focus but instead it became in focus and the dialog for file changes had popped up at that very instant.  Sadly, the button that I accidentally pressed was "Never Reload Selected" which is not what I wanted.  Is there a way to reset this option for this particular file?  I need to always see/reload changes to this file.  I looked in the help but didn't see anything.
100
SlickEdit® / Re: vsmerge as Git mergetool
« Last post by PiezonTM on May 04, 2018, 12:34:16 pm »
I have used this in the past:
Code: [Select]
[diff]
    tool=vsdiff

[merge]
    tool=vsmerge

[difftool "vsdiff"]
    cmd = /opt/slickedit-pro2017/bin/vsdiff "-r1" "$LOCAL" "$REMOTE"

[mergetool "vsmerge"]
    cmd = /opt/slickedit-pro2017/bin/vsmerge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"

Hope this helps.
Pages: 1 ... 8 9 [10]