VirtualBox

Changeset 2407 in kBuild for trunk/VSlickMacros


Ignore:
Timestamp:
Jun 10, 2010 12:52:02 PM (15 years ago)
Author:
bird
Message:

kkeys.e: new Ctrl+/ twist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VSlickMacros/kkeys.e

    r2400 r2407  
    5252def  'C-DEL'    = kkeys_delete_right
    5353#if __VERSION__ >= 14.0
     54def  'C-/'      = kkeys_push_ref
     55def  'S-C-/'    = push_ref
    5456def  'S-A-]'    = next_buff_tab
    5557def  'S-A-['    = prev_buff_tab
     
    275277}
    276278
    277 
    278279#if __VERSION__ >= 14.0
     280
     281/**
     282 * Search for references only in the current workspace.
     283 */
     284_command kkeys_push_ref()
     285{
     286   if (_isEditorCtl())
     287   {
     288      sProjTagFile = project_tags_filename();
     289      sLangId      = p_LangId;
     290      if (sProjTagFile != '')
     291      {
     292
     293         /* HACK ALERT: Make sure gtag_filelist_last_ext has the right value. */
     294         _update_tag_filelist_ext(sLangId);
     295
     296         /* save */
     297         boolean saved_gtag_filelist_cache_updated = gtag_filelist_cache_updated;
     298         _str    saved_gtag_filelist_ext[]         = gtag_filelist_ext;
     299
     300         /* HACK ALERT: Replace the tag file list for this language. */
     301         gtag_filelist_ext._makeempty();
     302         gtag_filelist_ext[0] = sProjTagFile;
     303         saved_gtag_filelist_cache_updated = true;
     304
     305         /* Do the reference searching. */
     306         push_ref('-e ' :+ sLangId);
     307
     308         /* restore*/
     309         gtag_filelist_cache_updated = saved_gtag_filelist_cache_updated;
     310         gtag_filelist_ext           = saved_gtag_filelist_ext;
     311      }
     312      else
     313         push_ref();
     314   }
     315   else
     316      push_ref();
     317}
     318
     319
    279320_command kkeys_gen_uuid()
    280321{
     
    286327   kkeys_restore_cur_pos(lSavedCurPos);
    287328}
    288 #endif
     329
     330#endif /* >= 14.0 */
    289331
    290332/** @name Mac OS X Hacks: Alt+[fet] -> drop down menu
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette