Recent Posts

Pages: 1 ... 8 9 [10]
91
SlickEdit 2022 v27 Beta Discussion / Re: How to widen scrollbars in version 27?
« Last post by Dennis on September 22, 2022, 02:23:44 pm »
The scroll_markup_toggle() command does it all.

Code: [Select]
_menu _scroll_markup_menu {
   "&Enable Document Overview Bar", "scroll_markup_toggle enabled",     "", "", "Show document overview markup bar to right of editor window";
   "Show Tooltip",            "scroll_markup_toggle tooltip",     "", "", "Show tooltip to zoom in on marked text when hovering over document overview bar";
   submenu "Scroll Bar Width","","","" {
      "Tiny",              "scroll_markup_toggle width tiny",     "", "", "";
      "Extra Small",       "scroll_markup_toggle width smaller",  "", "", "";
      "Small",             "scroll_markup_toggle width small",    "", "", "";
      "Medium",            "scroll_markup_toggle width medium",   "", "", "";
      "Large",             "scroll_markup_toggle width large",    "", "", "";
      "Extra Large",       "scroll_markup_toggle width larger",   "", "", "";
      "Huge",              "scroll_markup_toggle width huge",     "", "", "";
      "System Style",      "scroll_markup_toggle width platform", "", "", "";
   }
92
I will do some testing.  In the meantime, could you post or upload your vrestore.slk and user.cfg.xml from your v26 configuration directory?
93
SlickEdit 2022 v27 Beta Discussion / Re: RegEx Eval: ZoomIn
« Last post by Dennis on September 22, 2022, 02:12:41 pm »
Fixed for Beta4.
94
SlickEdit 2022 v27 Beta Discussion / Re: How to widen scrollbars in version 27?
« Last post by rowbearto on September 22, 2022, 01:44:36 pm »
Is there a way to change the scrollbar width from a Slick-C macro file?

Also is there a way to hide the document overview bar from a Slick-C macro file?
95
In my attempts to get you example files that are not company confidential, I discovered some additional information. The multifile diff that I was doing is: one is on my "C:" drive (Windows10), and the other is on a network drive mapped to "U:" the network drive is \\wsl$\Ubuntu (a Linux virtual machine on the same Windows machine.

Using "File Explorer" I copied the two files to a directory tree on my C: drive, to make it easy to put in one zip file. However, when I run diffZilla on the two directories in this tree, I do not see the issue. Therefore, I don't think the issue is related to the files, but is related to using a mapped network drive. Attached is the zipped directory tree anyway.

I just did a diff of a local directory and a mapped network drive that is on a different windows computer. Also, a diff with a mapped network drive with a native Linux machine. Both of this diffs did not show the issue, so the issue only seems to be related to the virtual machine.
96
SlickEdit® / Re: 26.0.3.1: Can no longer build when ssh into another machine
« Last post by rowbearto on September 22, 2022, 01:17:53 pm »
In beta3 I tried adding:

def_allow_vsbuild_use_commandfile = 0;

into my Slick-C file for my settings.

When loading my .e file I get error:

Identifier 'def_allow_vsbuild_use_commandfile ' not declared.

I found it in 'compile.e', but even after I add "import compile.e" I still get this error.
97
SlickEdit 2022 v27 Beta Discussion / Re: Highlight breaks on certain window width
« Last post by Clark on September 22, 2022, 01:11:53 pm »
Reproduced. Problem appears to only happen when the top line of the window is a continuation of a softwrapped line. It doesn't really have to do with how squished things are. Although, by forcing many softwrap continuation lines, you end up with the top line of the window being a continuation.
98
SlickEdit® / Re: diffZilla - multifile diff show files that are not different
« Last post by Dan on September 22, 2022, 12:59:29 pm »
Is there any chance you can send me a pair of the offending files?  If so, it would be better to zip them up so nothing happens to them in transit.
99
I've added some code so that if the shift key is down it scrolls more quickly - might be an alternative to the scrollbar.  Hold the ctrl key down it also scrolls faster but not as fast as shift down.

I suggest you check what happens if  you run the diff command when you have non default bindings to the wheel-xx events.


Code: [Select]
int xretrace_def_scroll_up_with_cursor;

static int scroll_up_with_cursor_key_bindings;
static bool block_scroll_flag;

void xretrace_scroll_callback()
{
   block_scroll_flag = false;
}


static void xscroll(bool is_up)
{
   bool xrs = false;
   bool try_call_key = false;
   _str ev;
   if ( block_scroll_flag ) {
      return;
   }

   if ( find_index('xretrace_delete_scrollbar_windows', COMMAND_TYPE) != 0 ) {
      xrs = true;
   }

   if ( xretrace_def_scroll_up_with_cursor ) {
      if ( p_window_id != null && _iswindow_valid(p_window_id) && p_window_id._isEditorCtl()) {

         if ( substr(p_window_id.p_buf_name, 1, 1) == "." ) {
            fast_scroll();
            return;
         }
         if ( p_window_id != _get_focus() ) {
            p_window_id._set_focus();
         }

         if (p_window_id.p_scroll_left_edge >= 0)
             p_window_id.p_scroll_left_edge = -1;

         int p2;
         save_pos(p2);
         if ( _IsKeyDown(CTRL) )
         {
            if ( is_up )
               cursor_up(8);
            else
               cursor_down(8);
         }
         else
         {
            if ( is_up )
               cursor_up();
            else
               cursor_down();
         }

         mou_mode(2);
         mou_capture();

         while ( 1 ) {
            ev = get_event('k');
            //say(event2name(ev));
            if ( xrs )
               check_update_xretrace_scrollbar();
            switch( ev ) {
            default:
               try_call_key = true;
               break;
            case RBUTTON_DOWN :
               xretrace_toggle_xscroll();
               break;
            case ESC :
               restore_pos(p2);
               break;
            case ON_KEYSTATECHANGE :
            case MOUSE_MOVE :
               continue;
            case WHEEL_UP :
               if ( _IsKeyDown(CTRL) )
                  cursor_up(8);
               else if ( _IsKeyDown(SHIFT) )
                  cursor_up(p_window_id.p_Noflines/24);
               else
                  cursor_up();
               continue;

            case WHEEL_DOWN :
               if ( _IsKeyDown(CTRL) )
                  cursor_down(8);
               else if ( _IsKeyDown(SHIFT) )
                  cursor_down(p_window_id.p_Noflines/24);
               else
                  cursor_down();
               continue;

            }
            mou_mode(0);
            mou_release();
            break;
         }
         //center_line();
         block_scroll_flag = true;
         _set_timer(500, xretrace_scroll_callback);
         if ( try_call_key ) {
            call_key(ev);
         }
         return;
      }
   }
   fast_scroll();
}


_command void xretrace_scroll_up() name_info(','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL)
{
   xscroll(true);
}


_command void xretrace_scroll_down() name_info(','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL)
{
   xscroll(false);
}

// https://devdocs.io/cpp/

// http://www.google.com/search?q=memcmp&as_sitesearch=cplusplus.com&btnI



_command void xretrace_toggle_xscroll(bool force_xscroll_off = false) name_info(',')
{
   if ( force_xscroll_off ) {
      execute('bind-to-key -r fast_scroll 'event2index(name2event('WHEEL-UP')),"");
      execute('bind-to-key -r fast_scroll 'event2index(name2event('WHEEL-DOWN')),"");
      return;
   }
   if ( xretrace_def_scroll_up_with_cursor == 0 ) {
      if (_message_box('Enable scroll with cursor', "", MB_YESNO) != IDYES)  {
         message("Cursor scrolling is disabled");
         return;
      }
      // xretrace_def_scroll_up_with_cursor is don't care if the keybindings
      xretrace_def_scroll_up_with_cursor = 1;
      scroll_up_with_cursor_key_bindings = 1;  // bind to xscroll
   }
   scroll_up_with_cursor_key_bindings = (int)!scroll_up_with_cursor_key_bindings;

   if ( scroll_up_with_cursor_key_bindings ) {
      execute('bind-to-key -r fast_scroll 'event2index(name2event('WHEEL-UP')),"");
      execute('bind-to-key -r fast_scroll 'event2index(name2event('WHEEL-DOWN')),"");
      message("Bind to fast-scroll");
   }
   else {
      execute('bind-to-key -r xretrace_scroll_up 'event2index(name2event('WHEEL-UP')),"");
      execute('bind-to-key -r xretrace_scroll_down 'event2index(name2event('WHEEL-DOWN')),"");
      message("Bind to xscroll");
   }
}

100
ah sorry, me too ! I thought I had taken  the second part - I confused things then (I am testing vs beta on 2 machines...)
So now it works with wheel-xx bound to xretrace_scroll_xx; behavior is same as if it was bound to scroll-xx.
I still have the problem when I manipulate the scrollbar to scroll: cursor vanishes and any keyboard or mouse wheel scrolls back the buffer to the cursor position.
It would be good for me to bind the scrollbar events to scroll-xx functions : they must be bound to fast-scroll.
Pages: 1 ... 8 9 [10]