Two Text Selections

I can't believe it's taken me eight years to realize that a script can work with two simultaneous text selections into the same document.
See:
Dave Saunders, "InDesign CS3 question about tabs" #3, 2 Apr 2008 3:40 pm
Dave

Neat. I'm sure the ability to have multiple windows to the same document is<br />one of the most under-used abilities of InDesign.<br /><br /><br />-- <br />Shane Stanley <[email protected]>

Similar Messages

  • How to select two text boxes (linked) separated by a distance?

    dear all,
    how to select two boxes in an indd CS6 document? I tried to label them also but unable to select.
    Virender

    Dear Uwe, Many thanks for your points.
    I have 10 indd files and each file has one page and a table is only item present on page. So few files has table present in one table and few files has two text boxes because table has many rows so spiltted in two linked text boxes.
    I somehow able to select both text boxes but while exporting them only one text box table get exported as png because of improper code.
    #target Indesign
    var sourceFolder = new Folder ("/Users/admin4/Desktop/INS");
    var myFiles = sourceFolder.getFiles();
    //alert (myFiles.length);
    var destFolder = new Folder ("/Users/admin4/Desktop/folder3");
    for (i=0; i < myFiles.length; i++)
         if (myFiles[i].name !=".DS_Store")
         var sourceDoc = app.open(myFiles[i]);
         app.activeDocument.pageItems.everyItem().select();
         //app.activeDocument.stories[0].tables[0].parent.select();
         var destFile = File(destFolder + "/" + myFiles[i].name + ".png");
         app.selection[0].exportFile(ExportFormat.PNG_FORMAT, destFile, false);  
         // here i need to correct code.
         sourceDoc.close(SaveOptions.NO);

  • Why when I downloaded two text alert /tones they do not show up in my text section

    Help pls,
    nmae is Derek
    HI I downloaded form the store two text alerts, but on trying to find them under text alert section on my phone, I could not see them, it trurned out that they have been put into my music folder, and I cannot seem to be able to find them, to use them on the phone, I paid good money fore them, and at the minute they are useless.
    I have an Iphone 3gs with software 5.01, and never done the text alert I used to the computer to down load them, expecting the itunes to put them in the correct place, on my phone.
    I I have dropped a clange then I will know next time, but can anyone help me use the said downloads.
    Thanks in advance.
    Derek.

    Select 'tones' under library on iTunes left Pane, do you see your text tones on the right Pane now?
    If they are there, connect your iPhone to your computer, select your iPhone under 'Devices' on iTunes left Pane, then on the right Pane, select the TONES tab, check the text tones you want to transfer to your phone and click the SYNC button on the lower right window.

  • "resolving alias to" message using aliases on 10.6.8 plus slow text-selection behavior

    Recently after no particular change to my Mac Pro3,2 running 10.6.8 other than some routine software updates, whenever I open an alias on my desktop to standard folders or files, a message shows up "Resolving alias to" whatever the alias name and there's a 2-3 second delay before the folder/file opens. I've found discussion of this issue in some archived discussions but never found a comfirmed solution described, so I'm raising this again. As in others' encounter with this behavior, the slow opening of aliases happens (1) only in my own user account, not in a guest account I set up for test purposes [I have no other user accounts than these], and (2) only happens the FIRST time I open an alias. Subsequent uses of the alias work normally.
    Another strange but possibly related behavior that began at the same time as this alias delay is harder to describe but involves a problem when selecting text using mouse clicks or even highlighting with the mouse for editing. For example, to edit the name of a file or folder on my desktop, I would normally click on the file/folder name, pause a moment and click again: this puts me in edit mode with the current file/folder name highlighted/selected. Now when I attempt this procedure, the second time I click immediately opens the file/folder, as though I had double-clicked rather than clicked+paused+clicked. The only way I can select the name of the file/folder to edit it is to click+long pause (like 3 seconds)+click. Then the text is selected as desired. It's as though the clicks are being recognized (by whatever in the OS recognizes clicks) as much faster than actually made.  There is a similar problem in any program I use that permits text editing, whether Word (Office 2011 for Mac), TextEdit, etc. I have to consciously slow down my cursor/click behavior when selecting text. If not, my actions are misinterpreted as double clicks. This text selection behavior also disappears when using a "Guest" user account, only appearing in my own user account. I Using a different mouse has no effect.
    Steps taken so far. I've Repaired Disk Permissions and Verified Disk using Disk Utility, have Safe Booted, and have turned off all login items in my user account,and recently installed the 10.6.8 supplemental update, all to no avail. Any suggestions or has anyone had and solved this/these problems?

    I think my problem has been that in Sytem Preferences>Mouse, my "Double-Click Speed" was set to the SLOWEST setting. After some experimentation, I now have the that setting two notches from the "Fast" end of the scale. In case it's important, the "Primary mouse button" in my Preferences is set to "Left".
    This not only solves the text selection issues described, but also seems to eliminate the strange "resolving alias to" problem.
    [For the curious, I have a Logitech Performance MX wireless mouse which can be configured with "Logitech Control Center". But the LCC software doesn't control double-click speed; this setting can only be made in the Mouse System Preference pane.]

  • How to focus two text boxes at a time?

    Hi,
    I am developing a packet analyzer software. In that, I need to focus two text boxes as I select a treeview item.
    I am using a following code:
    delegate void voiDelegate();
    private void click(object sender, RoutedPropertyChangedEventArgs<object> e)
    TreeViewItem t;
    t =(TreeViewItem) tvMain.SelectedItem;
    StackPanel s = (StackPanel)t.Header;
    List<TextBlock> l = new List<TextBlock>(3);
    foreach (TextBlock children in s.Children)
    l.Add(children);
    string ch = l[3].Text;
    string[] sp = ch.Split('-');
    int te = Convert.ToByte(sp[1]) - Convert.ToByte(sp[0]) + 1;
    PacketDisplay1.SelectionStart = PacketDisplay2.SelectionStart = Convert.ToByte(sp[0]);
    PacketDisplay1.SelectionLength= PacketDisplay2.SelectionLength = te;
    voiDelegate giveFocusDelegate = new voiDelegate(giveFocus);
    Dispatcher.BeginInvoke(giveFocusDelegate, new object[] { });
    private void giveFocus()
    PacketDisplay1.Focus();
    PacketDisplay2.Focus();
    but here I am able to focus only on second Textbox. I need to focus on both textboxes. How can I achieve this?
    My requirement is like this
    thank you.

    The documentation is pretty clear on this: There can be only one
    element on the whole desktop that has keyboard focus:
    https://msdn.microsoft.com/en-us/library/aa969768%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396.
    There is logical focus and there is keyboard focus. There can be multiple elements that have logical focus in an application but only a single element can have keyboard focus. Please refer to the link above for details.
    If you want to highlight text in two different TextBoxes at the same time, you could replace the TextBox elements with RichTextBox elements, and set the background of a text range. Please refer to the following thread for more information about how you could
    do this:
    http://stackoverflow.com/questions/18015380/how-can-i-change-the-selected-text-background-color-in-rich-text-box-wpf-c-sharp
    Here is an example for you:
    public partial class Window6 : Window
    private static TextPointer GetTextPointAt(TextPointer from, int pos)
    TextPointer ret = from;
    int i = 0;
    while ((i < pos) && (ret != null))
    if ((ret.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) || (ret.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.None))
    i++;
    if (ret.GetPositionAtOffset(1, LogicalDirection.Forward) == null)
    return ret;
    ret = ret.GetPositionAtOffset(1, LogicalDirection.Forward);
    return ret;
    internal string Select(RichTextBox rtb, int offset, int length, Color color)
    // Get text selection:
    TextSelection textRange = rtb.Selection;
    // Get text starting point:
    TextPointer start = rtb.Document.ContentStart;
    // Get begin and end requested:
    TextPointer startPos = GetTextPointAt(start, offset);
    TextPointer endPos = GetTextPointAt(start, offset + length);
    // New selection of text:
    textRange.Select(startPos, endPos);
    // Apply property to the selection:
    textRange.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(color));
    // Return selection text:
    return rtb.Selection.Text;
    public Window6()
    InitializeComponent();
    //set text
    PacketDisplay1.Document.Blocks.Clear();
    PacketDisplay1.Document.Blocks.Add(new Paragraph(new Run("some text....")));
    PacketDisplay2.Document.Blocks.Clear();
    PacketDisplay2.Document.Blocks.Add(new Paragraph(new Run("some other text....")));
    //set background
    this.Select(this.PacketDisplay1, 0, 4, SystemColors.HighlightBrush.Color); //select "some"
    this.Select(this.PacketDisplay2, 0, 4, SystemColors.HighlightBrush.Color); //select "some"
    There is no way to achieve this by simply selecting text in two different TextBoxes and there is no way to set the background of a text range in a ordinary TextBox so you must use a RichTextBox here.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Text Selection Hangs Since iOS 5.1.1 Update

    I have an iPhone 4 32GB on the AT&T network.
    Updated it to iOS 5.1.1 about two weeks ago.
    Since the update multiple applications (Apple and 3rd Party) have been showing this behavior:
    1) Click in a text entry or text area form field,
    2) Begin typing text,
    3) Touch anywhere in the field to bring up the monicle selection caret,
    4) The monical selection caret is shown and I can move the monical/caret around the screen,
    5) Un-touch the screen,
    6) ERROR - The monicle and the selection caret don't respond to user touch input and the app/OS hang for anywhere from 5 to 15 seconds,
    7) The standard "Select | Select All | ..." context pop-up window is shown, after that the app/system are responsive again. 
    Regarding the ERROR at step 6) above: Clicking Home does nothing, turning on/off with top-button does nothing, force shutdown responds only after the monicle/caret selector un-hangs.
    Once this has happened in a given text field/text area, it doesn't happen again on a subsequent text selection touch event... UNLESS I sleep the device, wake the device on the same app/field and try to select again... then it hangs again.
    To note, while it's hanging the loading-spinner is displayed in the title bar next to the AT&T 3G/Wifi Antenna icons, suggesting something in the background is doing a network search that's locking then entire foreground process.
    I've attempted to:
    1) hard reset the device,
    2) restore from a backup of 5.1 (doesn't have the aforementioned problem) and reinstall the 5.1.1 update (has the problem)
    3) swear at it and curse Steve Job's mock-turtleneck for allowing such a peice of **** bug to exist (even if it's not his fault ex post homine)
    Any further help would be great... I may end up downgrading to 5.1 just to not have to deal with this perpetual headache.
    Thanks,
    Etienne

    I'm having the same issue.  Phone started to degrade after update to 5.1.1  I have restarted, reset and restored from backup. I haven't tried to restore as new, as I'm not sure what the impact will be in my need to reset my corporate exchange e-mail, etc. 
    I see from many posts on other boards this is not isolated and is impacting many users. I'm using verizon as a the cell carrier. 
    My phone is warm and eating battery at a rate of 10% per half an hour in standby mode. No new apps or anything else of that nature.
    Tinus Barnard wrote:
    Will they fix this?

  • How to drag the end of two text objects at the same time

    I have two seperate bits of text in a particular section of video. If I select the two text objects and drag the end left or right it only moves one. I I want to be able to drag the end of multiple things at the same time.
    I may be being dumb but cant find how to do it. Any solutions gratefully received.
    Best
    Tom B.

    Two stacked separate title clips or two text text boxes in a single clip?
    Russ

  • Can I make two differents selection screen in my program?

    Hi experts!!
    I don't know how to male this, the problem is that I need to make two differents selection screen in my program because I have two differents kinds of button,
    BUTTON1         BUTTON2          BUTTON3
    When I press button1 I received.
    BUTTON4         BUTTON5          BUTTON6
    Now If I press on button4, how can I pick up the event? the name or something associate to this button4?
    Thanks a lot and regards
    Rebeca

    Hi and thanks,
    I've tried with your code,  Velu Lakshmanan,  and I only received another screen with the buttons... I need to put this button in the same screen, now I've this, but I can't receive the event associate to the second's buttons,
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON  1(79) DTP USER-COMMAND DTP
    VISIBLE LENGTH 25.
    SELECTION-SCREEN PUSHBUTTON 28(79) EMP USER-COMMAND EMP
    VISIBLE LENGTH 25.
    SELECTION-SCREEN PUSHBUTTON 55(79) ABS USER-COMMAND ABS
    VISIBLE LENGTH 25.
    PARAMETERS: PROC_TYP TYPE I DEFAULT 1 NO-DISPLAY.
    SELECTION-SCREEN END OF LINE.
    * Informes de datos de tiempo.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(25)  TEXT-FED USER-COMMAND FED MODIF ID DT1.
    SELECTION-SCREEN PUSHBUTTON 28(25) TEXT-DCH USER-COMMAND DCH MODIF ID DT1.
    SELECTION-SCREEN PUSHBUTTON 55(25) TEXT-ACH USER-COMMAND ACH MODIF ID DT1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(25)  TEXT-FII USER-COMMAND FII MODIF ID DT1.
    SELECTION-SCREEN PUSHBUTTON 28(25) TEXT-PTB USER-COMMAND PTB MODIF ID DT1.
    SELECTION-SCREEN PUSHBUTTON 55(25) TEXT-PTS USER-COMMAND PTS MODIF ID DT1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(25)  TEXT-ACI USER-COMMAND ACI MODIF ID DT1.
    SELECTION-SCREEN PUSHBUTTON 28(25) TEXT-FIM USER-COMMAND FIM MODIF ID DT1.
    SELECTION-SCREEN PUSHBUTTON 55(25) TEXT-LDH USER-COMMAND LDH MODIF ID DT1.
    SELECTION-SCREEN END OF LINE.
    * Informes de empleados
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(25)  TEXT-LDP USER-COMMAND LDP MODIF ID EM1.
    SELECTION-SCREEN PUSHBUTTON 28(25) TEXT-PDF USER-COMMAND PDF MODIF ID EM1.
    SELECTION-SCREEN PUSHBUTTON 55(25) TEXT-LDT USER-COMMAND LDT MODIF ID EM1.
    SELECTION-SCREEN END OF LINE.
    * Informes de bajas
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(25)  TEXT-BAJ USER-COMMAND BAJ MODIF ID AB1.
    SELECTION-SCREEN PUSHBUTTON 28(25) TEXT-VMA USER-COMMAND VMA MODIF ID AB1.
    SELECTION-SCREEN PUSHBUTTON 55(25) TEXT-SDE USER-COMMAND SDE MODIF ID AB1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN PUSHBUTTON 1(25)  TEXT-LDB USER-COMMAND LDB MODIF ID AB1.
    SELECTION-SCREEN PUSHBUTTON 28(25) TEXT-LDA USER-COMMAND LDA MODIF ID AB1.
    SELECTION-SCREEN PUSHBUTTON 55(25) TEXT-DHT USER-COMMAND DHT MODIF ID AB1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    * Pintamos los botones que necesitemos mostrar según la opción seleccionada
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS-UCOMM.
        WHEN 'DTP'. PROC_TYP = 1.
        WHEN 'EMP'. PROC_TYP = 2.
        WHEN 'ABS'. PROC_TYP = 3.
      ENDCASE.
    AT SELECTION-SCREEN OUTPUT.
      CASE PROC_TYP.
    * Cuando el botón que ha seleccionado es "Datos de tiempo"
        WHEN 1.
          CALL FUNCTION 'ICON_CREATE'
            EXPORTING
              NAME   = ICON_OKAY
              TEXT   = TEXT-DTP
              INFO   = TEXT-AUS
            IMPORTING
              RESULT = DTP.
          EMP = TEXT-EMP.
          ABS = TEXT-ABS.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 EQ 'DT1'.
              SCREEN-INPUT = '1'. SCREEN-INVISIBLE = '0'. MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 EQ 'EM1'.
              SCREEN-INPUT = '0'. SCREEN-INVISIBLE = '1'. MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 EQ 'AB1'.
              SCREEN-INPUT = '0'. SCREEN-INVISIBLE = '1'. MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN 2.
          CALL FUNCTION 'ICON_CREATE'
            EXPORTING
              NAME   = ICON_OKAY
              TEXT   = TEXT-EMP
              INFO   = TEXT-AUS
            IMPORTING
              RESULT = EMP.
          DTP = TEXT-DTP.
          ABS = TEXT-ABS.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 EQ 'DT1'.
              SCREEN-INPUT = '0'. SCREEN-INVISIBLE = '1'. MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 EQ 'EM1'.
              SCREEN-INPUT = '1'. SCREEN-INVISIBLE = '0'. MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 EQ 'AB1'.
              SCREEN-INPUT = '0'. SCREEN-INVISIBLE = '1'. MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN 3.
          CALL FUNCTION 'ICON_CREATE'
            EXPORTING
              NAME   = ICON_OKAY
              TEXT   = TEXT-ABS
              INFO   = TEXT-AUS
            IMPORTING
              RESULT = ABS.
          DTP = TEXT-DTP.
          EMP = TEXT-EMP.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 EQ 'DT1'.
              SCREEN-INPUT = '0'. SCREEN-INVISIBLE = '1'. MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 EQ 'EM1'.
              SCREEN-INPUT = '0'. SCREEN-INVISIBLE = '1'. MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 EQ 'AB1'.
              SCREEN-INPUT = '1'. SCREEN-INVISIBLE = '0'. MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
      ENDCASE.
    Help please... I don't know how can I make this.....
    If I use screen...how can I put this screen in the correct place?
    Thanks a lot
    Regards,
    Rebeca

  • Merge two text overlay layers without losing effect?

    I'm using PS CS4 and I have two text layers on top of each other (they same the same thing) and the layer style for both is set for "overlay". I want to merge (and rasterize) the two layers but keep the look of the doubled up overlay effect.
    Can this be done??
    Thanks...

    So if both are set to overlay, then that means they both depend on the pixels below them for the effect. So you have a choice to make.
    1) You can leave them as is (which would be preferable in my mind). Why do you need to merge them?
    2) You can select the transparency of one of the type layers (command-click on the layer icon in the layer panel), and then copy merged and paste. This should give you the layer you desire. I'd save the old layers for later, just in case.
    3) Something I haven't thought of.

  • I have sent two texts from abroad and all since have failed. Why?

    The first two texts I sent from corfu went ok. All subsequent have failed. Why ? The numbers are in international format 

    Hi 
    Have you tried doing a manual network selection in settings and choosing a different network?
    It may be there is an issue with the network your connected to.
    Or sometimes just a simple reboot of your device can help!
    Thanks. 

  • How to link two text boxes so that text flows from one to the other.

    In Adobe Acrobat XI Pro,  I have managed to link two text boxes with JavaScript.
    I have deselected the "scroll long text" and selected auto text size.
    I have entered the script into the "custom keystroke script"
    if ( event.fieldFull || event.willCommit ) this.getField("Details2").setFocus();
    Now my problem is this works for IE but I can't get it to work with adobe reader or pdf expert on iPad.
    I need my forms to work with both, windows & ios.
    Any suggestions?

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • Problems when I have tried execute two consecutive selects

    Hi,
    I am trying to execute two consecutive selects, when the second sql has been executed, it response "Operation failure of ado2xfa. Imposible find the element in the colection that corresponds with the name" (I have translated the message).
    The error happens when I execute the second DB.open
    In the data conection I have selected "text" in the commandType with "select * from t1"
    First I tried to execute both sqls but, if I try to execute just the "select * from t2" in the first sql command I obtain the same error.
    In the data view I have just one db connection linked with table T1, do I need to create one db connection per table?
    For example if I want to connect with 6 different tables I will need 6 different DB connection objects.
    Somebody know what is the problem?
    Thanks
    Rubén
    var DB;
    var record;
    var i;
    DB = xfa.sourceSet.Oracle
    record = xfa.record.Oracle
    try {
    DB.close();
    } catch (e) {}
    DB.resolveNode("#command").query.select.value = 'Select * from T1';
    DB.open();
    DB.first();
    for (i=0;i <= record.nodes.length;i++)
    console.println(record.nodes.item(0).value);
    DB.next();
    DB.close();
    DB.resolveNode("#command").query.select.value = 'Select * from T2';
    DB.open(); <--------LINE THAT PRODUCE THE ERROR---------

    It's because the data connection has been set up to expect the fields returned from T1. When you query T2 different fields are returned and it doesn't know what to do with them so it throws an error. You would need to 2 data connections, 1 for T1 and 1 for T2.
    Chris
    Adobe Enterprise Developer Support

  • CSS coders: Safari text selection

    Hi,
    Safari seems to handle Text selection differently then every other browser. Every other browser just selects the text. By that, I mean that the highlighting only covers the text, and nothing else.
    In Safari, however, often the text is highlighted and everything to the left and right of it as well! But this does not happen in all pages though.
    Here are two examples:
    (1) http://www.mattheaton.com/
    (2) http://mattheaton.com/?p=50#comments
    Notice that in the first page, if you select and highlight text, it gets highlighted "correctly". However in the second page, the highlighting covers ALL THE horizontal area!
    Can someone tell me the difference in these pages? What is the difference between the HTML/CSS code in (1) and (2)?
    Let's say I had a page like (2), and I wanted to fix it to make it highlight correctly, what exactly would I need to do?
    I've tried reading the code, but I've not found what does the trick. Any CSS/HTML coder out there who knows?
    Dede
    20" Intel iMac   Mac OS X (10.4.6)  

    any1?

  • Less-mouse and text selection

    I needed to scroll man pages with a mouse so I compiled the less-mouse from the AUR .
    Unfortunately the ability to use mouse for text selection is now lost (comparing to regular 'less'). In regular less left-button-drag selects stream of text and ctrl-left-button-drag selects a block of text.
    I tried to look closely at the patch to try to filter back in the text selection but my knowledge of C just isn't up to it.
    Mouse clicks in less-mouse are putting escape sequences in the status line. To get rid of those I managed to add two lines in decode.c, so that the program now processes only wheel events:
    decode.c (patched) at line 934:
    if ((b & 0x60) != 0x60) // only if bit 6 is 1 which means no wheel event
    return (1); // stop processing current mouse event
    // *hoping* that vte or X or whoever parses it further?
    I'd very much like to hear the advice on how to reinstate the ability of 'less-mouse' to select text.
    ps. I tried to use w3m as a pager too, but as far as I could tell it doesn't have the ability to select text either.

    Vimpager allows scrolling man pages with the mouse (its in the repos ( community/vimpager )). Install it and add this to your .zshrc (or .bashrc if you use bash):
    export PAGER=vimpager
    alias less=$PAGER
    alias zless=$PAGER

  • Merge two text files

    Need your help with merging two text source files into single table.  Each text file is single column containing names.  Let's say that file one is list of members in DEPARTMENT A and second file members of DEPARTMENT B.  Text files look
    something as follows:
    Filename: DEPARTMENT_A
    NAME (header)
    Steve
    Joe
    Mary
    Filename: DEPARTMENT_B
    NAME (header)
    Ron
    Joe
    Susie
    Ultimately, I need the resultant table data to look like this:
    NAME     DEPARTMENTS
    Steve     A
    Joe        A, B
    Mary      A 
    Ron        B
    etc.
    I think the solution involves derived columns, pivot, coalesce, but can't figure out how to put them together.  What do you recommend?  Thanks.

    You need a data flow task
    Inside that have two flat file sources connecting to both files. Following that have a derived column task to add department information (A,B). use a union all transform to merge both the inputs and finally use OLEDB destination to dump the result into table
    with two columns Name and Department.
    Then add a execute sql task to do update as below
    UPDATE t
    SET Department = Department + ', B'
    FROM Table t
    WHERE Department = 'A'
    AND EXISTS (SELECT 1
    FROM Table
    WHERE Name = t.Name
    AND Department = 'B'
    DELETE t
    FROM Table t
    WHERE Department = 'B'
    AND EXISTS (SELECT 1
    FROM Table
    WHERE Name = t.Name
    AND Department = 'A, B'
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for