| View previous topic :: View next topic |
| Author |
Message |
phildow Site Admin
Joined: 11 Dec 2005 Posts: 3407 Location: Berkeley
|
Posted: Wed Aug 22, 2007 5:09 pm Post subject: 2.5.4 Beta 3 - tags fixes, word count improvements |
|
Has it really been a month since the last beta? After installing this update you'll want to reset the search index. Quit Journler, delete the two "Index" files in your ~/Library/Application Support/Journler folder or wherever you keep your journal and launch the update.
Download
http://homepage.mac.com/philipdow/Journler2.5.4beta.zip
(or beta autoupdate)
Beta 3 Changes
- removed the white stripe behind the tags field in the header when the header has a background color
- fixed the keyboard shortcut notice for lockout in advanced preferences, was missing the option modifier
- corrected a long-standing mistranslation in the German stats dialog
- fixed a dragging and copy/paste problem with the new tags fields
- updated the spotlight importer so that it includes the new tags
- fixed a problem with searching introduced into the original 2.5.4 beta -- need to rebuild the search index
- modified the word count method so that it should be significantly faster when working with large entries
Notes
The new word count method is courtesy Keith Blount of Scrivener and Literature & Latte. His code is faster than the code I rolled myself some time ago, so I've switched and let me know. He's cool with it. =) |
|
| Back to top |
|
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Wed Aug 22, 2007 6:22 pm Post subject: |
|
| Downloaded, unzipped, replaced previous version with download in Finder, removed indices from ~/Library/Application Support/Journler/, restarted Journler, and didn't get a dialog asking to rebuild the index, so Lexicon is now empty and there are no indices. Even tried logging out and in again -- no dice. The downloaded beta zip is called: Journler2.5.4beta.1.zip |
|
| Back to top |
|
jkr
Joined: 14 Sep 2006 Posts: 27 Location: New York, NY
|
Posted: Wed Aug 22, 2007 6:37 pm Post subject: |
|
| It worked fine on my end, got the dialog and everything. Thanks for the update, Phil! Hopefully this will free up some time to respond to some of the Lex (and some other) issues on the forum... :-) |
|
| Back to top |
|
justG
Joined: 21 Jan 2007 Posts: 542 Location: LI, NY, US
|
Posted: Wed Aug 22, 2007 7:22 pm Post subject: |
|
The update worked as advertised for me: auto-update > quit > delete "Index" files > restart > prompted to reset search.
However, my Lexicon was empty until I quit and re-launched Journler a second time (that is, once after rebuilding search indices).
Also, there is some graphical weirdness that goes away once a term is selected from the Lexicon. It comes back if the Lexicon is closed and re-opened:
P.S. Yay, updates! :happydance: |
|
| Back to top |
|
shuyi
Joined: 25 Mar 2007 Posts: 29
|
Posted: Wed Aug 22, 2007 7:33 pm Post subject: |
|
Thanks for the update, Phil! The search problems I had in the 2.5.4b2 seem to have been fixed.
| justG wrote: | The update worked as advertised for me: auto-update > quit > delete "Index" files > restart > prompted to reset search.
However, my Lexicon was empty until I quit and re-launched Journler a second time (that is, once after rebuilding search indices). |
Same here. Updating worked for me with no problems that I can see. I also had to relaunch Journler a second time to get the Lexicon to work even after rebuilding the indices, however.
I have noticed one possible problem, however. It seems that there might be a memory leak in the newest beta. After running some searches and creating a couple of test entries, real memory use jumped from 53MB to 281MB. I've left Journler running and run a few more searches since then and it is up to 283MB right now. I don't remember the memory footprint being quite so large in early versions (I think I used to hold steady at around 53MB or so). I've already emailed Phil about this, but I thought I'd throw this out there for others. Anyone else seeing this? |
|
| Back to top |
|
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Wed Aug 22, 2007 8:10 pm Post subject: |
|
Going back to 2.5.3 isn't the answer. Holding shift while it starts gets back your older tagless Journal, but searching and filtering don't work, at least yet. The Lexicon seems to be OK so I can find stuff there.
May be time for an export of everything as RTF, dump all, do a fresh install, import, and reinstall all my smart folders. |
|
| Back to top |
|
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Wed Aug 22, 2007 10:40 pm Post subject: |
|
| Got it working. All seems to be well until I manage to break it again. |
|
| Back to top |
|
Hilko
Joined: 30 Jul 2007 Posts: 18
|
Posted: Thu Aug 23, 2007 11:57 am Post subject: |
|
| Wonderful! Indexing appears to work once again. Thank you, Phil! |
|
| Back to top |
|
phildow Site Admin
Joined: 11 Dec 2005 Posts: 3407 Location: Berkeley
|
Posted: Fri Aug 24, 2007 7:29 pm Post subject: |
|
| justG wrote: | Also, there is some graphical weirdness that goes away once a term is selected from the Lexicon. It comes back if the Lexicon is closed and re-opened:
 |
Yup, that's been around awhile. Tables are quircky about the way they display their columns, and it's causing this particular problem. There's a related problem with the top-right corner of the entry table that you may notice sometimes as well. |
|
| Back to top |
|
wyzewoman
Joined: 29 Jan 2007 Posts: 147 Location: Cambridge, MA
|
Posted: Sat Aug 25, 2007 2:59 pm Post subject: tags typing weirdness |
|
I apologize if this has been addressed before (I haven't been around much this summer.)
When I make a new entry and begin typing in the "tags" field, the behavior isn't what I expected. For example: I try to tag an entry with "todo". I click in the tags field, and type "t". A menu drops down of all my "t" tags. Then, continuing to give my name, I type an "o". Journler selects whatever tag was already selected in the "t" list, and begins searching for a new tag beginning with "o".
This doesn't happen all the time - I only see it so far when I type a tag that begins with "t". A possible hint: the first tag that comes up when I type "t" is "tiwo," : that is, the word "tiwo" followed by a comma. (No idea what that means... it got added somehow when I ran the applescript to convert comments to tags.)
So: I think there's a bug involving tags with commas in them. (This isn't something most users would notice, because apart from the applescript I don't think there's any way to create a tag with a comma in it!)
A second bug: when I am in the middle of typing something in the tags field, and I switch away from Journler, I can't switch back via command-tab or clicking on the Journler icon. I need to click on the Journler window itself. This doesn't happen when I'm editing any other fields. |
|
| Back to top |
|
wyzewoman
Joined: 29 Jan 2007 Posts: 147 Location: Cambridge, MA
|
Posted: Sat Aug 25, 2007 3:08 pm Post subject: |
|
A bit more info:
The problem with command-tabbing back into Journler seems to be restricted to the times when I have one of those comma-tags in the tag field, or possibly when I have put one in there and then erased it.
I'm having trouble now with the tag field being invisible when I type in it, even if I'm typing something that doesn't involve a comma. When I click into the main body of the entry, what I've typed appears. This is new; I'm guessing I left Journler in a messed-up state by playing with the comma-tags. |
|
| Back to top |
|
wyzewoman
Joined: 29 Jan 2007 Posts: 147 Location: Cambridge, MA
|
Posted: Sat Aug 25, 2007 4:09 pm Post subject: |
|
In case anybody else is having these problems:
I went through and fixed my tags, getting rid of any commas appearing anywhere in my tags, using the applescript below. Then I erased the index files, restarted Journler, and all seems to be good.
(Except one thing: command-tabbing back to Journler still doesn't work if I am right in the middle of editing a tag.)
| Code: | tell application "Journler"
set en to the entries
repeat with theen in en
set mytags to (the tags of theen)
set outtags to {}
repeat with thistag in mytags
set mytag to my fixtag(thistag)
set the end of outtags to mytag
end repeat
set the tags of theen to outtags
end repeat
end tell
on fixtag(thistag)
set previousDelimiter to AppleScript's text item delimiters
set potentialName to thistag as text
set legalName to {}
set illegalCharacters to {","}
repeat with thisCharacter in the characters of potentialName
set thisCharacter to thisCharacter as text
if thisCharacter is not in illegalCharacters then
set the end of legalName to thisCharacter
end if
end repeat
set AppleScript's text item delimiters to ""
set legalName to legalName as text
--Restore the current TIDs. To be polite to other scripts.
set AppleScript's text item delimiters to previousDelimiter
return legalName
end fixtag |
|
|
| Back to top |
|
jkr
Joined: 14 Sep 2006 Posts: 27 Location: New York, NY
|
Posted: Sat Aug 25, 2007 6:09 pm Post subject: |
|
| Thanks so much for sharing this script - it saved me so much time AND solved my issues with the tags! |
|
| Back to top |
|
MattTomCarl
Joined: 07 Jun 2007 Posts: 20
|
Posted: Thu Aug 30, 2007 2:23 pm Post subject: |
|
I just wanted to say that I just downloaded 2.5.4b3 and used your cool script. I absolutely *love* the "right proper tags"--they're exactly what I wanted. :)
Here's a thought, though (and if there's already a way to do this, great). It would be really cool to be able to view a list of all of your tags and edit them globally. For instance, if I had a tag called "someStuff" and I wanted to rename it to "someThings" (so everything which was previously tagged "someStuff" would now be tagged "someThings" instead). Also, it would be nice to be able to delete tags that are no longer used (mainly so the autocomplete doesn't suggest them anymore.
Just a thought, but to reiterate--the new tags are awesome! |
|
| Back to top |
|
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Thu Aug 30, 2007 4:24 pm Post subject: |
|
I wrote this some time ago and haven't used it lately. It will only work with a 2.5.4 beta (designed for use with "right proper" tags only). It does not change the tags of your folders -- only of the entries; you have to edit the folders yourself (the presumption being that you want to reorganize).
| Code: | -- This script presumes that you are using 2.5.4b3 or later.
-- it will only deal with "contain", but cannot deal with "not contain".
tell application "Journler"
set F to name of folders whose name is not "Journal" -- trash is automatically excluded.
-- present the list of folders for a user's choice
set mF to choose from list F with prompt "Hold Command down to choose multiple folders" with multiple selections allowed -- must make a choice or cancel or "OK" will not work.
if mF is false then return
set tTags to ""
repeat with aFldr in mF
set Cond to conditions of folder aFldr & return
repeat with C in Cond
set I to offset of "in tags" in C
if I > 0 then set tTags to tTags & (rich text 1 thru (I - 1) of C) & return
end repeat
end repeat
set BT to button returned of (display dialog "The current tags settings on these folders are" & return & tTags buttons {"Cancel", "See All Tags", "OK"} default button "OK" with icon 1)
if BT = "See All Tags" then
set allT to {}
set myTags to ""
set E to entries
repeat with I in E
set tTags to tags of I
repeat with tT in tTags
if contents of tT is not in allT then
set end of allT to contents of tT
set myTags to myTags & contents of tT & ", "
end if
end repeat
end repeat
display dialog myTags with icon 1
end if
-- ask for the tag list and whether to add them to current tags or replace the current tags
set {T, B} to {text returned, button returned} of (display dialog "Enter the tag text. To add more than one tag, separate one-word tags with spaces" default answer "" buttons {"Cancel", "Add to Tags", "Replace Tags"})
-- deal with the choice(s)
set rep to false -- changed by button choice if necessary in the following line.
if B contains "Replace" then set rep to true
-- make a list from the tag string submitted (right proper tags are a list)
set T to words of T -- makes a list from the space-delimited words
-- make the changes in the entries within the chosen folder(s)
repeat with someF in mF -- take the folders one at a time
set E to entries of folder someF -- get the entries for each folder
repeat with I in E -- treat each entry's tags
if rep then -- user chose "Replace..."
set tags of I to T -- replace current tags
else -- user chose "Add..."
set oTags to tags of I -- get the old ones (a list)
set tags of I to oTags & T -- concatinate the new list
end if
end repeat
end repeat
save changes -- save the Journal.
end tell |
|
|
| Back to top |
|
|