mak

A universal notepad. (WIP)
授权协议 Readme
开发语言
所属分类 企业应用、 LaTeX排版系统
软件类型 开源软件
地区 不详
投 递 者 喻增
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Mak: a universal notepad

mak.ink    Desktop App    Documentation    @shuding_

All you do is sit down at a typewriter and bleed.
— Ernest Hemingway

Please visit https://inns.studio/mak for more information and live demos.

Join Mak User Group (中文用户群) on Telegram.

Table of Contents

Features*

  • a “maximally minimal” design
  • blazing fast
  • multiple files support
  • auto-saving
  • works in offline
  • side by side preview
  • syntax highlighting
  • powerful text editor
  • LaTeX support
  • task lists
  • notepad links
  • quick commands
  • customization
  • line number
  • word counter
  • URL configuration
  • interactive plain text
  • sync via Gists
  • zoom friendly
  • printer friendly
  • PDF generating
  • exporting
  • ...

*Some features such as offline and sync may behave differently in different browsers.

Shortcuts

Click (or click with middle mouse button) on Markdown links to open (open in new tab).
Click on Markdown checkboxes to toggle a task.
Use ⌘ + [ / ⌘ + ] to outdent / indent text.
Use ⌥/Alt + Click to position the cursor, even on links.
Use ⌘/Ctrl + Click to create multiple cursors.
Use ⌥/Alt + Drag to select a rectangle area.
Use ⌘/Ctrl + Drag to select multiple areas.
Use the middle button on mouse to open links in new tab.
Use ⌘/Ctrl + Enter over a link to “click” it.Type set: to open quick commands.
Type go: to open quick jump.

URL / link

File (#file)

Files start with a hashtag # in the URL / link.
Files can be accessed via in-document links: [my todos](#todo).
Files can be accessed via quick jump: go:todo and hit enter.

Mode (#file?mode)

A mode is a pre-defined way to view files, so modes must be attached to a file.
Modes start with a question mark ? in the URL / link.
Multiple modes are separated by &s: mak.ink?dark&large.
Modes are defined by the URL, and will override your settings.
For new opened files, modes attached to current file will be gone.
If you want to use a mode as default option, use settings below.

URL Action (?action)

Actions are special modes.
Actions start with a question mark ? in the URL / link,and use = to pass parameters.
Actions will be removed from URL automatically.
Actions might do changes to your content.

Settings (set:<option>)

You can type set:<option> and hit enter in the editor to change settings.
You can create a "set" link and click on it: [dark](set:dark).
Settings change preferences globally and persistently.
Settings can be override (locally) by current modes.

  • View mode settings
    • set:split
    • set:edit
    • set:read
  • Display settings
    • set:dark
    • set:large
  • Other
    • set:print: print / download PDF
    • set:export: export data
  • Other settings
    • Check out the Preferences Page.
    • You can also use the developer console to change settings :)

More Details

LaTeX

LaTeX rendering is powered by KaTeX.

You need to wrap the $ inside an inlined code block to render LaTeX inlined equations, or use $$ inside a multi-line code block to get an equation block:

$\frac{\pi}{2}$

or

$$
\frac{\pi}{2}
$$

Gist

Use ?gist=<gist_id> to load a GitHub Gist. It will be stored to #<gist_id> automatically (and replace the original context, if it exists), and mark this file as a Gist.

Other commands: set:login, set:logout, set:pull, set:push.

Embeding as iframe

Use Gist and read mode:

<iframe width="300" height="200" src="https://mak.ink?gist=5d52fb081b3570c81e3a&read" frameborder="0"></iframe>

You can easily embed Mak in other websites.

Drag and drop

You can drag your file into the editor, and its content will be inserted after your cursor automatically.

Currently all files will be read as plain text files. And the file size limit is 10MB.

Desktop App

Checkout Makmini for macOS and Windows.

Mobile

Currently unavailable.

For now, all basic features are available in mobile browsers. But there’re yet some known limitations:

  • In Safari (macOS or iOS), localStorage is disabled in private browsing mode.
  • In Safari on iOS, the screenshot functionality built on SVG foreignObject is not working dut to the iOS security model. So it’s replaced by another, simpler screenshot strategy.
  • Service Worker is not fully supported on iOS. The offline feature is not working.

Technique details: due to the slow progress of the IME API implementation on contenteditable elements, we are using the native textarea as the input handler on mobile devices to make IME work. But textareas cannot do any styling or customization. So some implementations in CodeMirror (and any other in-browser editors) might be hacky which caused strange behaviours on mobile devices (such as cursor moving and copy-paste experience). The (only) solution is: make a native App.

iOS App

Currently unavailable.

WIP. You can add the Web version to your Home screen as a bookmark.

Open Source

Will do after some code cleanup & refactoring.

Raw Thoughts

@chenglou said this in ReactEurope:

Not about potential power of doing more - it’s about exploiting properties you gain by doing less.

And as I always believe: Text powers editors. Not the opposite.

Share Mak

License & Acknowledgement

Inspired and powered by CodeMirror, RxJS and other awesome open source projects.

By Shu (g@shud.in), SH 2017
https://shud.in

  •  1)KMS是Key Management Services的简称,这种方式采用“客户/服务器方式”,需要在企业内配置KMS管理服务器,为企业中的其他操作系统提供批量激活的服务。KMS的密钥是一对,其中用于KMS服务器端的,称KMS KEY,用于客户端的,则称为VOL KEY。VOL KEY是Microsoft公开的,不需要购买。在安装Windows 7、Windows Server 2008 R

  • 最近在学习的时候,看到了很多的文件格式,这里来做个记录。 .cfg 大多数情况下,很多程序都要保存用户的设置,办法有很多:注册表,日志文件·… 而很多程序都使用了一个专用的文件。 cfg是一个为开发及使用方便而"发明"的一个后缀名,cfg文件是通过各种程序使用的通用配置文件;它包含的设置和配置信息以及不同的程序可以以不同的格式存储这些数据。 为了方便起见,常常命名为*.cfg,有时甚至直接命名为C

  • 旧项目是在Windows7x86/VS2008环境下使用makefile进行编译的纯C项目。 这次要求升级为Windows10环境编译 编译环境有几个关键点,分开组合,进行了调查 1.Windows10 VS2019(Framework4.7.2 这个升级了)         在这个环境下,是找不到Win32.Mak文件的         我想的办法是将旧系统中的文件拷贝到工程目录,然后进行引用

  • 一、.mak文件即makefile,类似于*.dsw和*.dsp文件的和;在VC IDE中tools-->Options-->Build在该tag页面中将Export Makefile打上勾,就能将App生成makefile文件。 二、makefile(.mak)的作用是命令行编译连接命令nmake使用的文件。它以文本的方式规定了nmake要编译那些文件,生成那些文件,要连接那些文件,生成的.ex

  • [FAQ12618]编译错误:MAKE\comp.mak:150:make\\.mak: No such file or directory Module is in DEFALUT mode 当遇到编译错误:make\comp.mak:150: make\\.mak: No such file or directory Module is in DEFALUT mode,这是由于工程配置需要编译

  • 在编译libjpeg的时候,因为我使用的是win10系统,所以没有需要的win32.mak这个文件。一般是可以从win7的机器,甚至是虚拟机上拷一份过来的。不过我很幸运的发现了这个链接,在此记录一下。 https://github.com/nurmi-labs/ms-sdk

 相关资料
  • 我目前正在进行一个简单的模拟,由4个不同加工时间的制造工作站组成,我想测量系统内部的在制品。型号是PennyFab2,以防有人知道。 到目前为止,我已经测量了产量和周期时间,我正在用利特尔定律计算在制品,然而结果与他的预期不符。循环时间是通过使用时间度量开始和时间度量结束代理来测量的,吞吐量是通过简单地计算在模拟结束时流过多少块来测量的。 对于如何不使用利特尔定律直接测量在制品有什么想法吗?

  • 我对任何逻辑都还是新手。我试图用AnyLogic解决一个模拟问题,但我不知道怎么做。这就是问题所在:有一个单一的产品将在两台机器上加工。每台机器都有自己的操作员。此外,在机器的前后都有一些在制品(WIP)。 另外,我想知道我应该用什么块来建模在制品?排队还是延迟? 这些块(队列、延迟和服务)在职责方面到底有什么区别? 使用以下块对这样一个进程建模是否正确:(分别是source、queue、dela

  • 介绍 (Introduction) WipeRight类定义擦除右侧效果。 组件的前或后状态必须是不可见的。 Class 声明 (Class Declaration) 以下是mx.effects.WipeRight类的声明 - public class WipeRight extends MaskEffects 公共方法 (Public Methods) S.No 方法和描述 1 Wipe

  • 介绍 (Introduction) WipeLeft类定义擦除左边效果。 组件的前或后状态必须是不可见的。 Class 声明 (Class Declaration) 以下是mx.effects.WipeLeft类的声明 - public class WipeLeft extends MaskEffect 公共方法 (Public Methods) S.No 方法和描述 1 WipeLeft

  • wipe-modules A little agent that removes the node_modules folder of non-active projects ��️ Why If you're a Javascript developer, you know the node_modules directory holds thousands or even millions o

  • Wipe Slider 是一个 jQuery 插件,它使用背景、背景位置和中心位置来创建旋转滑块效果。

相关阅读

相关文章

相关问答

相关文档