Commit Graph

1366 Commits

Author SHA1 Message Date
Matthias Beyer 2e6b6b50fa Add ui::build_ui() 2016-03-11 16:20:20 +01:00
Matthias Beyer 17eb59ae29 Add depdendencies 2016-03-11 16:20:01 +01:00
Matthias Beyer 9f5a33f962 imag-view: init 2016-03-11 16:18:17 +01:00
Matthias Beyer 9a918c9252 Merge pull request #242 from matthiasbeyer/libimagstore/revert-id_in_store-check
Revert "Check whether the StoreId is inside the store, before doing a…
2016-03-11 16:02:11 +01:00
Matthias Beyer 086ad0ec69 Add external-link validation before setting 2016-03-11 15:15:02 +01:00
Matthias Beyer 695ee9df9b Add (external) link validation 2016-03-11 15:15:02 +01:00
Matthias Beyer cb288eb868 Rewrite internal linking
* so you need to pass Entry instead of Link
* interal linking does two-way-linking
2016-03-11 15:15:02 +01:00
Matthias Beyer 3b02a30788 Move Link/Links type to external linking code 2016-03-11 15:15:02 +01:00
Matthias Beyer b8766a224e Implement ExternalLinker for Entry for convenience 2016-03-11 15:15:02 +01:00
Matthias Beyer d6029678c7 Implement InternalLinker for Entry, for convenience 2016-03-11 15:15:02 +01:00
Matthias Beyer defec535c8 Refactor internal link helpers into trait 2016-03-11 15:15:02 +01:00
Matthias Beyer 1e17b10568 Refactor external linking into trait 2016-03-11 15:15:02 +01:00
Matthias Beyer 277c31237a lib: Add remove_link() 2016-03-11 15:15:02 +01:00
Matthias Beyer b7a5f57e3a lib: Implement add_link() 2016-03-11 15:15:02 +01:00
Matthias Beyer 339ec08a83 lib: Add Links::{add,remove}() 2016-03-11 15:15:02 +01:00
Matthias Beyer 6480fb515c lib: Derive some traits for Link{,s} type 2016-03-11 15:15:02 +01:00
Matthias Beyer 19322b667a Add helper for processing store result 2016-03-11 15:15:02 +01:00
Matthias Beyer a53d36c23d Implement internal::set_links() 2016-03-11 15:15:02 +01:00
Matthias Beyer 950dce945f Implement internal::get_links() 2016-03-11 15:15:02 +01:00
Matthias Beyer b6168f50a1 Implement: Links::new() 2016-03-11 15:15:02 +01:00
Matthias Beyer e4fae4cfcf Implement: of external::set_link() 2016-03-11 15:15:02 +01:00
Matthias Beyer 18de6b80d5 Implement: external::get_link() 2016-03-11 15:15:02 +01:00
Matthias Beyer e6e9a1a19e Add Error kinds 2016-03-11 15:15:02 +01:00
Matthias Beyer 17daf7c387 Add Link::new() 2016-03-11 15:15:02 +01:00
Matthias Beyer ff3d5dd94b Add initial interface spec 2016-03-11 15:15:02 +01:00
Matthias Beyer 2430e68dc2 Add dependencies 2016-03-11 15:15:02 +01:00
Matthias Beyer e43bfa2c2c init: libimaglink 2016-03-11 15:15:02 +01:00
Matthias Beyer 6c50d88669 Add tag filtering 2016-03-11 15:13:34 +01:00
Matthias Beyer b53f342fb8 Merge pull request #244 from matthiasbeyer/libimagstore/fix-add_implicit_directory_creating
Fix: implicitely create directories on file saving
2016-03-11 10:56:38 +01:00
Matthias Beyer 6d7065d10e Fix test: StoreId does not start with "/" anymore 2016-03-10 19:12:00 +01:00
Matthias Beyer a9a64d4ab6 Fix: implicitely create directories on file saving 2016-03-10 19:06:27 +01:00
Matthias Beyer a3a09ff4ee Fix store creation of libimagstore
The macro may not prefix the StoreId internal PathBuf with '/', so this
path is not absolute. This way we can introduce `storify_id()` which
creates a proper PathBuf into the store out of our StoreId object.

Does not yet do verification whether the path is inside the store,
actually.
2016-03-10 18:46:26 +01:00
Matthias Beyer 3413646934 Revert "Check whether the StoreId is inside the store, before doing anything on the FS"
This reverts commit 373502217e
as this commit was introducing a bug.

The StoreId type says `/test/example` for a store id path, which is
completely valid, as the root (`/`) is the store itself. The
id_in_store() function assumed that the store-id is the full
(file-system) path to the store entry, which is false.

This commit does not introduce a fix but revert the check.
2016-03-10 18:14:53 +01:00
Matthias Beyer 40019b4384 Update {README,CONTRIBUTING}.md to contain more detailed information 2016-03-10 12:40:04 +01:00
Matthias Beyer 19375f2b68 Add clap::ArgGroup to rely on clap for mutually exclusive args 2016-03-08 11:24:50 +01:00
Matthias Beyer 7dde6c2a56 Merge pull request #235 from matthiasbeyer/libimagstore/update-glob
libimagstore: Update glob 0.2.10 -> 0.2.11
2016-03-07 17:58:27 +01:00
Matthias Beyer df1fd31771 libimagstore: Update glob 0.2.10 -> 0.2.11 2016-03-07 17:46:58 +01:00
Matthias Beyer 501f4f3111 Merge pull request #203 from matthiasbeyer/libimagutil/ismatch-util
Add ismatch!() macro
2016-03-07 17:22:13 +01:00
Matthias Beyer 20201d2358 Merge pull request #210 from matthiasbeyer/doc/libimagutil
Doc/libimagutil
2016-03-07 17:18:50 +01:00
Matthias Beyer 637faf2d66 Merge pull request #219 from matthiasbeyer/doc/add-module-files
Add module files for several modules
2016-03-07 17:14:30 +01:00
Matthias Beyer 71d6008105 Merge pull request #231 from matthiasbeyer/libimagrt/config-in-toml
Switch configuration language to TOML
2016-03-07 11:22:23 +01:00
Matthias Beyer 2fa10067fb Configuration is optional 2016-03-07 10:32:10 +01:00
Matthias Beyer 4f935c8ba1 Merge pull request #233 from matthiasbeyer/libimagstore/entry-header-get-header
EntryHeader: Function to get toml object
2016-03-07 10:29:14 +01:00
Matthias Beyer a02a0f2fde Merge pull request #167 from matthiasbeyer/doc/linking
doc: Add chapter on linking
2016-03-06 11:53:18 +01:00
Matthias Beyer 257fe1880e EntryHeader: Function to get toml object 2016-03-06 11:51:09 +01:00
Matthias Beyer fc46f1a8df doc: imag:// prefix should be optional 2016-03-06 11:18:31 +01:00
Matthias Beyer 5b034dc37b doc: Add liblink specification 2016-03-06 11:18:01 +01:00
Matthias Beyer 4b4809571a doc: Add paragraph in section for linking internal content 2016-03-06 11:17:30 +01:00
Matthias Beyer fc7a86ba50 doc: Add initial paragraph 2016-03-06 11:17:30 +01:00
Matthias Beyer a51b68e838 doc: Add chapter on linking 2016-03-06 11:17:26 +01:00