Comments (5)
Hi,
thanks for enjoying jrnl and your feedback! Interpreting \n
as a carriage return makes sense, I'll implement that right away. Are you writing mostly inline one the command line, using the built-in editor (excuse the exaggeration) or an external editor? I'm thinking that maybe using the built-in editor Shift
+ Return
could be interpreted as a line similar to most IM apps.
from jrnl.
I write the entries mostly inline on the command line. I'm not sure what you mean by the built-in editor...is that the "compose entry" mode that comes up when you just type "jrnl"? Doing something like a Shift-Return would also work for me.
Thanks for your reply.
from jrnl.
Okay, with fb3d7ab, \n
will be converted to new lines. If using from the command line however you must wrap your entry in quotes OR escape the backslash, ie.
jrnl My new \n entry
will not work, but
jrnl "My new \n entry"
will, as will
jrnl My new \\n entry
In all of these cases, everything before the first line break will be interpreted as the entry's title (just as stuff before the first [.?!]
already does)
from jrnl.
Hmmm, running on Windows 7 x64 bit with python 2.7 I don't have to escape the newlines as \\n
. When I did, I got an extra slash on my entries. When I did:
jrnl Title.Line 1 \\nLine 2\\nLine 3
I got an entry like:
2012-07-05 12:18 Title.
Line 1\
Line 2\
Line 3
But if I just do the \n
(with or without quotes), it was interpreting it correctly:
jrnl Title.Line 1 \nLine 2\nLine 3
I ended up with the proper entry:
2012-07-05 12:18 Title.
Line 1
Line 2
Line 3
Entries encapsulated in quotes worked as you described.
Either way, this works great for me and solves my issue perfectly. Thanks for the update!
from jrnl.
Aah, okay, only tested the patch on unix with bash - I suppose different shells treat \n
in the arguments differently. Glad it works for you!
from jrnl.
Related Issues (20)
- How to update jrnl from the version 2.8.4 to the last one (4.1) HOT 2
- Bug Report HOT 1
- Feature Report Add a config option to output any new entries to the terminal after submission.
- Tests failing on develop branch starting with pytest-bdd 7.1.2 HOT 4
- -contains doesn't accept multiple search terms, doesn't work with -and HOT 2
- Tests are failing with pytest 8.1 HOT 3
- [Bug Report] AttributeError: '_PasswordRetriever' object has no attribute 'encode' HOT 10
- Compatibility with VJOURNAL standard HOT 2
- Remove documentation recommendation to install pipx through brew or pip HOT 1
- No module named 'pygments' after pygments upgrade HOT 1
- Recommend pipx as default installation method
- Feature Report : Custom save location HOT 2
- Add Python 3.13 support HOT 2
- Can't write first entry in directory journal when directory doesn't exist HOT 3
- jrnl-org/nostr? HOT 1
- Inject current date at start of a new entry being composed in an editor
- Support Request
- User is always asked to update when config resembles JSON
- Feature Report HOT 1
- Bug Report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrnl.