![]() Whenever I publish a gem like doing, howzit, or na, I always suggest that if you have any trouble installing with gem install X, you should use sudo gem install X. Let me know if you have any feature requests! Managing Ruby Gems using Homebrew Hopefully all of this broadens the usefulness of na. If the project isn’t found in the selected target file, it will be created at the top. Just use na add -to PROJECT to add to the named project (case insensitive). One other thing recently added is the ability to add actions to a specific project rather than just “Inbox:”. This can be especially handy if the directory contains multiple TaskPaper files as a quick means of targeting just one project. The -project flag (which can be shortened as -proj) works with next, find, and tagged. If there’s only one Bugs: project in the current directory (or subdirectories if using -depth), you don’t need to specify a path, na next -project bugs will find it. The project matching accepts partial matches, so that example could be na next -project mark/bug. The project can be a simple string or a path separated with / or : to match subprojects, e.g. You can also query specific projects with -project PROJECT. These can be combined with wildcard matching, e.g. You can do string searches with *= (contains), ^= (starts with), and $= (ends with), e.g. When using the tagged command, specify your tag searches as tokens containing, and = to perform a numeric comparison (e.g. You can perform value comparisons with more operators on tag values now, too. Invert any search results with -v/-invert to display all actions not matching the search. You can also use the -regex flag with the find command to interpret the search as a regular expression. You can now use wildcards (* or ?) in text and tag searches. You can now use ! to require that a tag or search term not exist on matched actions, e.g. But by default all matching actions will be shown with find and tagged, not just next actions. You can still query just next actions by adding to the find command or +na to the tagged command. Just run gem install na to install or upgrade.įirst, the find and tagged commands no longer require the next action tag to be present to match. I believe I’ve improved their usefulness in the last couple releases. As your todo file grows, these are handy for narrowing down what you need to work on at any given time. Na has subcommands for searching text ( na find) and for matching tags ( na tagged). Now you can quickly find actions based on project, tag, or text content right from the command line. I’ve made some changes to na that make it a very handy tool for general querying of a TaskPaper file. To get all this goodness, update to the latest version (1.1.23+) using gem upgrade na or brew gem upgrade na.Ī big thanks goes to Ralf Hülsmann, who has brought a lot of especially great feature requests to light. Multiple search terms overriding each other.When adding a project, don’t use Ruby #capitalize, which downcases the rest of the project name.Allow multiple todo queries separated by comma.Allow wildcards (* and ?) when matching todo history.Added -or flag to tagged and find to default to OR boolean combination of search terms/tags.When specifying arguments to next, allow paths separated by / to do more exact matching.na todos will list (and optionally search) known todo files from history.-in todo/path flag for find and tagged commands to specify a todo file from history.find and tagged recognize * and ? as wildcards.Partial matches allowed, works with next, find, and tagged You can use -project X to display only actions within a specific project.na add -d X to allow adding new actions to todo files in subdirectories.If no + or ! tokens are given in search, default to AND search for tokens.Since the last time I wrote about it… like 2 days ago? I’ve not been sleeping well. For example, if you have an tag in your todo file, you can run na tagged "due=yesterday". Natural Date Comparisonsįirst, you can now do natural language date comparisons for tag searches. I’m really aiming to make this a great companion to TaskPaper, and I think it’s coming along nicely. This might be the last big na update for a little while, but it’s got some great stuff in it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |