-
March 11th, 2019, 04:35 #1
- Join Date
- Aug 2009
- Posts
- 261
Chat - Auto combine lines (i.e., remove new lines) when pasting from PDF, etc.
Do this instead of using this extension:Attached extension to automatically combine lines when pasting to chat window using new chat command /nnl (for "No New Lines"). Great for pasting text from a PDF.
Paste the text in the chat, then <ctrl><a> to select all, then <ctrl><j> and lines are combined
----
In the chat window, type "/nnl " and paste your text with multiple lines. It replaces new line characters with a space.
example.jpgLast edited by valeros; March 11th, 2019 at 05:01.
-
March 11th, 2019, 04:37 #2
- Join Date
- Aug 2009
- Posts
- 261
Also, is there an easier way to do this without using an extension? It was fun to create the extension, but maybe not even needed if there is a better way. Thanks
-
March 11th, 2019, 04:50 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,548
I believe that you can use Control+J to force lines to be combined. It works in text fields and formatted text fields; so i think it should work in chat entry field too.
Regards,
JPG
-
March 11th, 2019, 04:59 #4
- Join Date
- Aug 2009
- Posts
- 261
Thanks, I just tried and you can do that. Paste the text in the chat, then <ctrl><a> to select all, then <ctrl><j> and lines are combined.
I guess I should have asked first before creating the extension. Still a good learning experience though.
Thanks for the info.
-
March 12th, 2019, 07:27 #5
-
March 12th, 2019, 10:04 #6
I generally paste from pdf into notepad++ and do al the reformatting there before copy pasting that into my stories. This would be if I wanted it all nice and neat with no double spaces and weird character combinations. If I don’t want it pretty I just copy into story and do ctrl+j to get rid of the excess line bepreaks.
If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
March 12th, 2019, 15:59 #7
FYI - the hotkeys available in a formatted text field are listed here: https://www.fantasygrounds.com/wiki/...ed_Text_Fields
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 12th, 2019, 20:56 #8
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks