Recent Posts

Pages: 1 ... 7 8 [9] 10
81
SlickEdit User Macros / Re: Trivial Question
« Last post by lwb-ztexas on May 12, 2023, 09:03:18 pm »
I should have known you were right!  ::)

I had to look at "cur_word()", it wanted a defined parameter for the reference.

This works like a charm!

Thanks!


#include "slick.sh"
#pragma option( strict, on )

_command void SearchWorkspaceForWord() name_info(','VSARG2_EDITORCTL|VSARG2_READ_ONLY)
{
   typeless old_pos, old_mark;
   save_pos( old_pos );
   save_selection( old_mark );
   _str ch = get_text( -1 );

   if ( _isSpaceChar( ch ) ) left();
   
   int start_col;
   old_search_string = cur_word(start_col);

   find_in_files();
}
82
Features and/or Improvements / Possible to disable font ligatures?
« Last post by leifel on May 12, 2023, 07:46:40 pm »
Hi, I love the "JetBrains Mono" font on Windows and use it as the default editor font i SlickEdit 2022. This font has ligatures. However, I am not a fan of font ligatures and therefore I would like to disable it but cannot find a way to do that in SlickEdit. Is it possible? And if not, any chance it can be added as an option in the near future?
83
SlickEdit® / Re: How to call macro from everywhere
« Last post by Dan on May 12, 2023, 02:26:33 pm »
The diff things have to keep the number of lines in the buffer balanced, and try to keep undo balanced.

I don't know how much people edit in the diff, I use this a lot when I expand the Compare Dir/Project/Workspace with Git to see the diff.  Places that need a little more documentation or maybe something leftover from debugging really stand out right before a commit.
84
SlickEdit® / Re: Lexar for PostgreSQL SQL (plpgsql)
« Last post by patrick on May 12, 2023, 02:00:40 pm »
You should be able to do it from within SlickEdit now.  The color coding is configurable within the editor, and allows nesting of token regexes.  See Tools -> Options -> Languages -> Database Languages -> PL/SQL -> Color Coding, and go to the Tokens tab and look at the Doc Comment entry for /*+ */ for an example of that sort of nesting.

So what you can do is:
1) Go to Tools -> Options -> Languages -> Language Manager  and click on Add Language
2) You'll get a dialog box allowing you to give a mode name, and file extensions.  You've got a couple of choices here. If you think PL/SQL is close enough to PL/pgSQL, you can choose to copy the settings from PL/SQL, and then you may have less work in editing existing color coding settings to match the Postgres language.  This would also give you smart indent, although small differences in the languages may make it so it may not recognize some contexts where it should be indenting.  On the other hand, if you want to start from a clean slate, then leave the "Copy settings from" checkbox unchecked.

Once it's created, you can add tokens to the color coding configuration, and when you open files with the extensions you associated with it, it should automatically go into your new language mode.


85
SlickEdit® / Re: How to call macro from everywhere
« Last post by hs2 on May 12, 2023, 01:49:47 pm »
Oh yes - that might be also a showstopper..
@at5dapa1 You could add a command alias (e.g. prm) as commandline 'shortcut'
_command prm, project_retag_modal() ...
in case you like using the commandline :)
86
SlickEdit® / Re: How to call macro from everywhere
« Last post by Dan on May 12, 2023, 01:06:29 pm »
It works fine if the focus is in any document tab, but if the focus is in the Preview or References tools it's not called.
Intereseting that it works from some other tools like Build, Output, Find and Replace, but not in others like Backup History, Code Annotations, Find Symbol, Open, Projects...
Any hints how to make it work from anywhere? Thanks!

Things that use Diff (like Backup History), have a built-in table of allowed commands.  I'm afraid it has to be that way for those dialogs.
87
SlickEdit® / Re: How to call macro from everywhere
« Last post by hs2 on May 12, 2023, 11:07:14 am »
You tell the macro with VSARG2_REQUIRES_EDITORCT that .. it requires an editor control (like edit window, build/output window, etc.)
I think you don't need it at all.
88
SlickEdit® / How to call macro from everywhere
« Last post by at5dapa1 on May 12, 2023, 10:28:31 am »
I have a small macro for manual tagging:
Code: [Select]
_command project_retag_modal()  name_info(','VSARG2_MACRO|VSARG2_REQUIRES_EDITORCTL|VSARG2_MARK)
{
   project_retag(true);
}
And I did bind it to a key:
Code: [Select]
def  'C-S-T'= project_retag_modal;
It works fine if the focus is in any document tab, but if the focus is in the Preview or References tools it's not called.
Intereseting that it works from some other tools like Build, Output, Find and Replace, but not in others like Backup History, Code Annotations, Find Symbol, Open, Projects...
Any hints how to make it work from anywhere? Thanks!
89
SlickEdit® / Lexar for PostgreSQL SQL (plpgsql)
« Last post by DanClark on May 12, 2023, 04:07:42 am »
Hi.  Many years ago, (about V1.0), I wrote the lexar for SQL Server.  Back then, it was just a file, formatted in a certain way to color code TSQL code.  After a while, SlickEdit used my file and integrated it into the SlickEdit editor and I happily let them support it.    Over time, I used several different code editors in combination with SlickEdit to used some of it's unique features.

Now I'm writing an app with a PostgreSQL back end.   It does not appear that SlickEdit can handle the plpgsql query language.   So I'd like to add that to SlickEdit.   Is there a utility that will allow me to do that?

Thanks,

Dan.
90
SlickEdit® / Re: SE 27.0.2 very slow to list project files and open buffers
« Last post by rajkej on May 11, 2023, 01:30:28 pm »
That's great Dennis! Let me know if you have something I can test out.
Pages: 1 ... 7 8 [9] 10