- --- In email@example.com, "fw7oaks" <fw7oaks@...> wrote:
>There are two forms of append
> Probably missing something real simple but how do I get a clip to
> append to an existing file the contents of the clipboard **and leave
> the cursor at the end of the appended text** ???
> Many thanks in advance
Do you mean: ^!AppendToFile or ^!Append
Append To File does just that, it adds your text directly to the end
of the specified ASCII text file, without opening the file.
Append on the other hand appends to the end of a declared variable,
not to the current document
If you mean to append to a file here is the syntax
^!AppendToFile "<explicit path and filename.something>" "Any text that
you want added"
The delimiter between the filename and the added text is a space
character. The quotes in the filename are not necessary, but
advisable. If you use quotes in the added text, they appear in the file.
- --- Sheri <silvermoonwoman@...> wrote:
> Sounds like you want text from the clipboard added at the end of the
> current document. This would do it:
> ^!Jump Doc_End
> ^!InsertText ^$GetClipboard$
Many thanks, I wanted a new file but prefixing your code with ^!Open
"Myfile.tmp" does what I want. I knew it was simple but that simple, I'm
- Apologizes for the delay in replying, Yahoo sent this reply very late and out
--- Dan Gagne <dgagne@...> wrote:
> There are two forms of appendThat was what I meant and results in the cursor being at the start when you
> Do you mean: ^!AppendToFile or ^!Append
> Append To File does just that, it adds your text directly to the end
> of the specified ASCII text file, without opening the file.
open the file and not at the end, which is what I wanted.
My Brain wasn't in 'jump' mode :-)
Thanks for clarifying the various 'Appends'
- fw7oaks wrote:
> and results in the cursor being at the start when youThere's no way around that as such. Appending to file is totally
> open the file and not at the end, which is what I wanted.
separate process and the open is a normal file open that does not know
about anything that might have happened before.
You could wrap that "open" into a clip and follow it with a positioning
command. And you could even include those two into one clip together
with the append. But the append itself and as such will not influence
the file opening in any way.
- why not append the file whichever way you wish, but build a clip to
open the file and then position cursor at 1:1 ?
I use a series of clips to open files and just pick the one I want:
open file > move cursor to start > word wrap on
open file > move cursor to start > word wrap off
open file > move cursor to end > word wrap on
open file > move cursor to end > word wrap off
open file > move cursor to start > word wrap on > find word
open file > move cursor to start > word wrap off > find word
saves me time. You get used to using the clip and not the file > open.
- frank wrote:
> saves me time. You get used to using the clip and not theWell each to his own. I'd say two control sequences are quicker than
> file > open.
always having to choose from among six clips. But one thing I have found
nice is a Bar Icon for Reopen:
^!Keyboard ALT+F R
You need to place this fairly far to the right of the submenu won't open
right. This is a help mainly when the files you're working on (from
different projects) are scattered widely over several directories and
going to the right one in the selectbox gets bothersome.