Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On Mon, 10 Jul 2023, Dave Mielke wrote: > [quoted lines by Nicolas Pitre on 2023/07/10 at 17:37 -0400] > > >By definition, a rectangular copy is a block. It makes no sense for the > >beginning of that block to be merged with the last line of the existing > >clipboard content, otherwise it is no longer a block. > > What about if a rectangular copy is followed by a linear append? Maybe the > end of the last line of a rectangular copy should be protected with a CR. That is arguable, but I'm less clear about that one. If you append a linear copy, you could argue that you want it appended linearly. If you want the appended content to be on the next line, be that even a single line, then you just need to use a rectangular copy. This way you can mix both within the same clipboard. Nicolas ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
hello. What about having the ability to have multiple clip boards? Then, if you want to paste multiple blocks into a text area, youjust paste multiple clip boards into that area. For example, vi (vim) allows you to use up to 10 buffers or clip boards. -thanks -Brian ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
[quoted lines by Nicolas Pitre on 2023/07/10 at 17:37 -0400] >By definition, a rectangular copy is a block. It makes no sense for the >beginning of that block to be merged with the last line of the existing >clipboard content, otherwise it is no longer a block. What about if a rectangular copy is followed by a linear append? Maybe the end of the last line of a rectangular copy should be protected with a CR. -- I believe the Bible to be the very Word of God: http://Mielke.cc/bible/ Dave Mielke| 2213 Fox Crescent | WebHome: http://Mielke.cc/ EMail: d...@mielke.cc | Ottawa, Ontario | Twitter: @Dave_Mielke Phone: +1 613 726 0014 | Canada K2A 1H7 | ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On Mon, 10 Jul 2023, Sébastien Hinderer wrote: > Hello Nicolas and many thanks for your proposed implementation, I think > it's indeed a very good idea! > > I'm just unsure about the separator that shoudl be used when > concatenating. I do understand that '\n' suits your use-case well, but, > after, all, why would ' ' (space) not be considered another legitimate > candidate? If you want a space, you should use a linear copy. By definition, a rectangular copy is a block. It makes no sense for the beginning of that block to be merged with the last line of the existing clipboard content, otherwise it is no longer a block. Nicolas___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
Hello Nicolas and many thanks for your proposed implementation, I think it's indeed a very good idea! I'm just unsure about the separator that shoudl be used when concatenating. I do understand that '\n' suits your use-case well, but, after, all, why would ' ' (space) not be considered another legitimate candidate? Best wishes, Sébastien. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On Sun, 9 Jul 2023, Sébastien Hinderer wrote: > I still think it could be handy to be able to choose filenames from > within a list, the output of ls, say, as as a sighted user can select > files and folders in a folderview to then perform an operation on them. Same idea: I often do "ls -1 ", do a rectangular copy on some or all of them, then "xargs " followed by the paste function. This being said, I just tested appending to the clipboard with a rectangular copy and the result is not what one would expect. The first line of the rectangular block is simply merged on the same line with the existing clipboard content. When concatenating one or multiple lines from a rectangular copy, it makes more sense for all those lines to stand on their own. That's what I implemented here: https://github.com/brltty/brltty/pull/422 This way, you can e.g. append several file names in the clipboard using the rectangular copy multiple times, and when pasted whey'll all be presented on a separate line which makes it ideal with xargs. I think this should be quite close to what you want. Nicolas___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
Hi Nicolas, I will experiment more with rectangular copy and perhaps it will actually be enough, you are right. Same with "git stat --diff". I still think it could be handy to be able to choose filenames from within a list, the output of ls, say, as as a sighted user can select files and folders in a folderview to then perform an operation on them. Sébastien. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On Sun, 9 Jul 2023, Sébastien Hinderer wrote: > I fear things are not always that straightforward, here. Could you elaborate? I use git literally everyday (every work day at least). And I always found the rectangular copy to be pretty good enough. I use "git diff --stat" more than "git status" to generate a list of files to add as you can specify e.g. what subdir you want, etc. Nicolas___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On Sat, 8 Jul 2023, Sébastien Hinderer wrote: > Hello, many thanks for this response! > > Nicolas Pitre (2023/07/03 11:03 -0400): > > Not sure if this fits your use case but I often have such list of > > filenames to be found in a vertical list. What I do in that case is to > > copy them using the rectangular copy function, and then: > > > > $ xargs git add [ENTER] > > [paste clipboard content here] > > [CTRL-D] > > > > You may experiment with "xargs echo" instead to see the result. > > But that works only if the list you want to copy is contiguous, right? Right. If it is not then I do the first copy to clipboard, paste, ENTER, second copy, paste and the filan CTRL_D. Or often enough it is simpler to just repeat the command with UP-ARROW, ENTER. > If it's not, then you'll have to accumulate rectangular cuts and Iam > guessing that no space willbe inserted between the different rectangles, > right? No idea. I actually never used it. > Notto say the rectangles are not a good idea, I think they really > are an improvement, but it feels to me that they do not quite suffice. Well... What is your actual use case? Nicolas___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
Jason White (2023/07/08 17:52 -0400): > > On 8/7/23 12:47, Sébastien Hinderer wrote: > > But if you have modified 10 files and want to commit only 5 of them, > > git has no way to know which ones you want to commit and then I don't > > see how you can avoid having to pick up some names in a list. > > You can always use git add -i to choose the desired files interactively. > > I only ever modify the files that I want to commit. Then I commit them, and > move on to the next change. This avoids the problem altogether. I fear things are not always that straightforward, here. Sébastien. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On 8/7/23 12:47, Sébastien Hinderer wrote: But if you have modified 10 files and want to commit only 5 of them, git has no way to know which ones you want to commit and then I don't see how you can avoid having to pick up some names in a list. You can always use git add -i to choose the desired files interactively. I only ever modify the files that I want to commit. Then I commit them, and move on to the next change. This avoids the problem altogether. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
Jason White (2023/07/08 12:40 -0400): > I can pipe the output perfectly well here. There are also plenty of options > given in the Git status manual page to control that output (e.g., selecting > which file names to show). But if you have modified 10 files and want to commit only 5 of them, git has no way to know which ones you want to commit and then I don't see how you can avoid having to pick up some names in a list. Sébastien. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On 8/7/23 11:34, Sébastien Hinderer wrote: Well the output of git status, for instance, can't be piped to a variable. Especially given that, most of the time, it's not the entire output that I want to re-use but just a selected subset of it. I can pipe the output perfectly well here. There are also plenty of options given in the Git status manual page to control that output (e.g., selecting which file names to show). ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
Hi, Jason White (2023/07/03 08:31 -0400): > Can't you use pipes or shell variables for that? Well the output of git status, for instance, can't be piped to a variable. Especially given that, most of the time, it's not the entire output that I want to re-use but just a selected subset of it. > Have you tried xclip, or wl-copy, etc.? No, first because I only use the Linux console, second because I simply can't imagine how using those can help in the situation I described? > It seems to me that you have better solutions than manually copying and > pasting text from the terminal using BRLTTY. I am definitely interested to hearing about them but at themoment I don not really understandhow the suggestions can help. Apologies if I am missing somethin g here, especially if it's something obvious to everybody else. Sébastien. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
Hello, many thanks for this response! Nicolas Pitre (2023/07/03 11:03 -0400): > Not sure if this fits your use case but I often have such list of > filenames to be found in a vertical list. What I do in that case is to > copy them using the rectangular copy function, and then: > > $ xargs git add [ENTER] > [paste clipboard content here] > [CTRL-D] > > You may experiment with "xargs echo" instead to see the result. But that works only if the list you want to copy is contiguous, right? If it's not, then you'll have to accumulate rectangular cuts and Iam guessing that no space willbe inserted between the different rectangles, right? Notto say the rectangles are not a good idea, I think they really are an improvement, but it feels to me that they do not quite suffice. Please, all, feel free to correct me if I am wrong here. Sébastien. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On Mon, 3 Jul 2023, Sébastien Hinderer wrote: > Dear all, > > I assume that it is a current workflow to have a list of filenames > displayed on screen as output of ls or git status or find etc. and to > accumulate them in the clipboard to then paste them onto another > command-line. Not sure if this fits your use case but I often have such list of filenames to be found in a vertical list. What I do in that case is to copy them using the rectangular copy function, and then: $ xargs git add [ENTER] [paste clipboard content here] [CTRL-D] You may experiment with "xargs echo" instead to see the result. Nicolas___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty
Re: [BRLTTY] Making easier to accumulate filenames in theclipboard
On 2/7/23 18:17, Sébastien Hinderer wrote: I assume that it is a current workflow to have a list of filenames displayed on screen as output of ls or git status or find etc. and to accumulate them in the clipboard to then paste them onto another command-line. Can't you use pipes or shell variables for that? Have you tried xclip, or wl-copy, etc.? It seems to me that you have better solutions than manually copying and pasting text from the terminal using BRLTTY. ___ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@brltty.app For general information, go to: http://brltty.app/mailman/listinfo/brltty